@arcgis/map-components 5.0.0-next.110 → 5.0.0-next.112

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.
Files changed (421) hide show
  1. package/dist/cdn/{FTVCVXFG.js → 2462SKAR.js} +1 -1
  2. package/dist/cdn/{ULE6CJOD.js → 25TVKQGR.js} +1 -1
  3. package/dist/cdn/{VBBBGRFE.js → 2BAJ2HDE.js} +2 -2
  4. package/dist/cdn/{FP2B4JQJ.js → 2CMS6CKA.js} +2 -2
  5. package/dist/cdn/{PKSIMEQ2.js → 2GXMQR67.js} +2 -2
  6. package/dist/cdn/{EZVNUID7.js → 2HCLJAMJ.js} +2 -2
  7. package/dist/cdn/{ZP5YYDZ2.js → 2HYJW3J7.js} +2 -2
  8. package/dist/cdn/{A2T5JCFL.js → 2OWCMKXP.js} +2 -2
  9. package/dist/cdn/{SXADSHPS.js → 2PPCEXUK.js} +1 -1
  10. package/dist/cdn/{2TZXT57Q.js → 2SHR4KKW.js} +2 -2
  11. package/dist/cdn/{PJ36QTY2.js → 2XQJJYPB.js} +2 -2
  12. package/dist/cdn/{OA5FERZN.js → 36QBY2A7.js} +2 -2
  13. package/dist/cdn/{IT72RLC2.js → 3BMBW4KE.js} +2 -2
  14. package/dist/cdn/{SFOLG75V.js → 3BY7LVIJ.js} +2 -2
  15. package/dist/cdn/{PIO5W5JO.js → 3EP7NW5K.js} +2 -2
  16. package/dist/cdn/{MZVNRN4P.js → 3NLFBEHY.js} +1 -1
  17. package/dist/cdn/{RMHX6WO3.js → 3OLGZN2U.js} +2 -2
  18. package/dist/cdn/{NIIJM5IV.js → 3PMX34FD.js} +2 -2
  19. package/dist/cdn/{RETGY4SG.js → 3SCDBBVW.js} +2 -2
  20. package/dist/cdn/{XWMSRYJY.js → 3SF6VYM4.js} +2 -2
  21. package/dist/cdn/{PX6SVMQH.js → 44N7E3GS.js} +2 -2
  22. package/dist/cdn/{AWB33SKE.js → 45VEYI6V.js} +2 -2
  23. package/dist/cdn/{ECC34CSQ.js → 4ABU4U4Y.js} +2 -2
  24. package/dist/cdn/4OSDK2AV.js +4 -0
  25. package/dist/cdn/{4PA5XO4V.js → 4POX532L.js} +2 -2
  26. package/dist/cdn/{7X4PUGKU.js → 4S7NBKBX.js} +2 -2
  27. package/dist/cdn/{JBATHADW.js → 4SISPQ4E.js} +1 -1
  28. package/dist/cdn/{GZJZZOKY.js → 4SNTXNE5.js} +2 -2
  29. package/dist/cdn/{ZABD6P4G.js → 5IA4B4SD.js} +1 -1
  30. package/dist/cdn/{P53MED2K.js → 5LV3N4YV.js} +2 -2
  31. package/dist/cdn/{PP2EPF73.js → 5OMRUE4C.js} +2 -2
  32. package/dist/cdn/{VTEOLKTW.js → 5UF275BY.js} +2 -2
  33. package/dist/cdn/{23HUP6H4.js → 5W6WOCUZ.js} +2 -2
  34. package/dist/cdn/{GXL4LE42.js → 5ZQAM3ZW.js} +1 -1
  35. package/dist/cdn/{VD53Z7LY.js → 676IW7PA.js} +2 -2
  36. package/dist/cdn/{R77WMDU2.js → 6BGHQDA4.js} +2 -2
  37. package/dist/cdn/{IEMYK25U.js → 6EHIPGCN.js} +2 -2
  38. package/dist/cdn/{SOIDA7GD.js → 6FH3UD5I.js} +2 -2
  39. package/dist/cdn/{WKTE5XSH.js → 6JSXY353.js} +2 -2
  40. package/dist/cdn/{6MBJ4AVS.js → 6V3NLBUA.js} +2 -2
  41. package/dist/cdn/{N6O33TAC.js → 6WI5BQPD.js} +2 -2
  42. package/dist/cdn/{L27O5UYK.js → 73P5VC2Z.js} +2 -2
  43. package/dist/cdn/{JFKZ62NW.js → 7B5JDTDR.js} +2 -2
  44. package/dist/cdn/{43BZNZDD.js → 7BJBNXY2.js} +2 -2
  45. package/dist/cdn/{AFEYOUQS.js → 7C56K5BN.js} +2 -2
  46. package/dist/cdn/{JU5Z5KJF.js → 7JZ3IVF5.js} +2 -2
  47. package/dist/cdn/{GH2FOBM2.js → 7POVO5EC.js} +2 -2
  48. package/dist/cdn/{LMTEQVTY.js → 7S7OAT22.js} +2 -2
  49. package/dist/cdn/{QRTVT3QX.js → 7SVCJ4WQ.js} +2 -2
  50. package/dist/cdn/{5AZ6BQHG.js → 7XSGMD5K.js} +2 -2
  51. package/dist/cdn/{QKOL2BRG.js → A7SBCP3Y.js} +2 -2
  52. package/dist/cdn/{SHPB5CCO.js → AC6PXW6L.js} +2 -2
  53. package/dist/cdn/{OCMKAGN4.js → ACNXENK5.js} +2 -2
  54. package/dist/cdn/{W7USLEFU.js → AM2G5MLW.js} +2 -2
  55. package/dist/cdn/{4DQ52NYE.js → ATJZO2AS.js} +2 -2
  56. package/dist/cdn/{TEQP6WXY.js → AUKTGBHO.js} +2 -2
  57. package/dist/cdn/{7AJW6CTA.js → AWJAC3ZG.js} +2 -2
  58. package/dist/cdn/{G37J3VKW.js → B3BV37T5.js} +2 -2
  59. package/dist/cdn/{MH4WKVP3.js → B6ZO3PQV.js} +2 -2
  60. package/dist/cdn/{2OKID74A.js → B7PZNMWX.js} +2 -2
  61. package/dist/cdn/{K3AXWVZV.js → BEQM47S2.js} +2 -2
  62. package/dist/cdn/{XRZGJ3WZ.js → BFCN4YA5.js} +2 -2
  63. package/dist/cdn/{7VKDS2ZF.js → BFTRJC4C.js} +2 -2
  64. package/dist/cdn/{J3JE23S2.js → BJCM3DBL.js} +2 -2
  65. package/dist/cdn/{VUJGT26Y.js → BJO6IO6J.js} +2 -2
  66. package/dist/cdn/{5CVYBSSZ.js → BU2B7HJE.js} +2 -2
  67. package/dist/cdn/{JRN6ZB25.js → CNJA6MO5.js} +2 -2
  68. package/dist/cdn/{GNJBWDF6.js → CQ6NIQMQ.js} +2 -2
  69. package/dist/cdn/{MS7FFWAJ.js → CWNJBBAC.js} +2 -2
  70. package/dist/cdn/{TTNZ5F2N.js → DBHPOBLO.js} +2 -2
  71. package/dist/cdn/{MTIMXXFL.js → DF3XOYMX.js} +2 -2
  72. package/dist/cdn/{UM6ABQ4M.js → DG76NAEZ.js} +2 -2
  73. package/dist/cdn/{FDB3WLFH.js → DHTDPI44.js} +2 -2
  74. package/dist/cdn/{6F5O5Q4G.js → DQ66WZPX.js} +2 -2
  75. package/dist/cdn/{YYS33TQ4.js → DRVGNETO.js} +2 -2
  76. package/dist/cdn/{AGFEDBSM.js → DT2SI32M.js} +2 -2
  77. package/dist/cdn/{O7RIL42M.js → DTLHQTUZ.js} +2 -2
  78. package/dist/cdn/{FO4SEFMJ.js → DUCOJ7ZJ.js} +2 -2
  79. package/dist/cdn/{GSQU2REJ.js → DZTRRCGX.js} +2 -2
  80. package/dist/cdn/{N7VSLU5R.js → E2AHKJEC.js} +2 -2
  81. package/dist/cdn/{4ZQMNRXP.js → EB6P6V47.js} +2 -2
  82. package/dist/cdn/{4ERPXL5C.js → EIJDFMIZ.js} +2 -2
  83. package/dist/cdn/{KBNDDAUT.js → ELUIJNSD.js} +2 -2
  84. package/dist/cdn/{D3GV4OEK.js → EQH3QF6R.js} +2 -2
  85. package/dist/cdn/{OGYJY4QT.js → F5ORRWHF.js} +2 -2
  86. package/dist/cdn/{RCWVAAYB.js → FOHUY3ON.js} +2 -2
  87. package/dist/cdn/{F2DJWFLO.js → FS77PPPR.js} +2 -2
  88. package/dist/cdn/{4IVHLDI3.js → FVTSXMKW.js} +2 -2
  89. package/dist/cdn/{6HYB4M3B.js → GBEHWQQA.js} +2 -2
  90. package/dist/cdn/{XTC6GUIF.js → GDLFCNKA.js} +2 -2
  91. package/dist/cdn/{S7UEUR3R.js → GNLZ4HML.js} +2 -2
  92. package/dist/cdn/{OCFNAZFY.js → GYCZHQSC.js} +2 -2
  93. package/dist/cdn/{TEGHXZJN.js → GYUSGCGK.js} +2 -2
  94. package/dist/cdn/{4RBHXFY4.js → GZ5DRNXI.js} +2 -2
  95. package/dist/cdn/{5HP4QU2A.js → H44N2MVM.js} +2 -2
  96. package/dist/cdn/{WILJY3HZ.js → H4RSSO4L.js} +2 -2
  97. package/dist/cdn/{3U73JFQ4.js → H5JCNKNX.js} +2 -2
  98. package/dist/cdn/{2GSOWXYW.js → HBJFGGEJ.js} +2 -2
  99. package/dist/cdn/{GAR3FSPV.js → HMV6VR2W.js} +2 -2
  100. package/dist/cdn/{XIRCOM7C.js → HUJ5MU7J.js} +2 -2
  101. package/dist/cdn/{YGZMZWEF.js → HVXSBF72.js} +2 -2
  102. package/dist/cdn/{5QJJGDQY.js → HY74Y7XU.js} +2 -2
  103. package/dist/cdn/{XMTYXYXP.js → I55STFKI.js} +2 -2
  104. package/dist/cdn/{IGQRGFGD.js → IC7WEAOR.js} +2 -2
  105. package/dist/cdn/{KZCZZI43.js → IEXYTN3M.js} +2 -2
  106. package/dist/cdn/{6IC34O2H.js → IJVRBKED.js} +1 -1
  107. package/dist/cdn/{KTZAMBRK.js → IRZUIF6J.js} +2 -2
  108. package/dist/cdn/{BGYFLEOC.js → IXOEH75J.js} +2 -2
  109. package/dist/cdn/{HYVC26H4.js → IYRMQI4G.js} +2 -2
  110. package/dist/cdn/{KSKMXEPU.js → IZM6IFLC.js} +2 -2
  111. package/dist/cdn/{CODG2ENN.js → J3QYAK7E.js} +2 -2
  112. package/dist/cdn/{EA5BIZHW.js → J5EOZ6SQ.js} +2 -2
  113. package/dist/cdn/{6WMEVRFU.js → J673QGJU.js} +1 -1
  114. package/dist/cdn/{CSFWACX6.js → JNAVHESL.js} +2 -2
  115. package/dist/cdn/{G2KKZR4I.js → JY5RZFSK.js} +3 -3
  116. package/dist/cdn/{DPRRCW5P.js → K7TIKTYY.js} +2 -2
  117. package/dist/cdn/{NBHOVBHC.js → KCSMQ2DE.js} +2 -2
  118. package/dist/cdn/{Q25D3O3A.js → KQTZ7EWW.js} +2 -2
  119. package/dist/cdn/{IXGIOATU.js → KYYSWZKG.js} +2 -2
  120. package/dist/cdn/{MNFFN2PC.js → L2MAUYFX.js} +2 -2
  121. package/dist/cdn/{C6TL3VPU.js → L3GBY26H.js} +2 -2
  122. package/dist/cdn/{NCP2EULJ.js → LDIURQAZ.js} +2 -2
  123. package/dist/cdn/{BGYJFCRA.js → LEKYDFHK.js} +2 -2
  124. package/dist/cdn/{X4IDECRM.js → LKERPBBW.js} +1 -1
  125. package/dist/cdn/{I7EBKYZD.js → LPQ74LKF.js} +2 -2
  126. package/dist/cdn/{Q74SK7SV.js → LSTS3Z66.js} +2 -2
  127. package/dist/cdn/{2KICQPEY.js → M4FJ5NOR.js} +2 -2
  128. package/dist/cdn/{PTS6VUNA.js → M7XCKYMQ.js} +2 -2
  129. package/dist/cdn/{AJH2SUYO.js → MAGDX6YE.js} +2 -2
  130. package/dist/cdn/{5JLZGGJ3.js → MCEDEIY2.js} +2 -2
  131. package/dist/cdn/{UUBY2HXK.js → MF2SCGJR.js} +2 -2
  132. package/dist/cdn/{MS6WQOMV.js → MFO2MWAL.js} +2 -2
  133. package/dist/cdn/{G374BNKB.js → MM5JXM3J.js} +2 -2
  134. package/dist/cdn/{RIZSU575.js → MPGIZEHH.js} +2 -2
  135. package/dist/cdn/{FIWLFAWM.js → MRT7QRUE.js} +2 -2
  136. package/dist/cdn/{KIT7WVMV.js → N33Z7OIV.js} +2 -2
  137. package/dist/cdn/{NLMOR5AB.js → NIMMFX7W.js} +2 -2
  138. package/dist/cdn/{F4PTOQET.js → NX6GH7XJ.js} +2 -2
  139. package/dist/cdn/{UAUGESNZ.js → NYR2BJTF.js} +2 -2
  140. package/dist/cdn/{575V4YRI.js → NZ4C2L4C.js} +2 -2
  141. package/dist/cdn/{MJT3D27H.js → O3IKGMUG.js} +2 -2
  142. package/dist/cdn/{RTO6GTVS.js → O4KQWJY5.js} +2 -2
  143. package/dist/cdn/{BWT34TJD.js → OAGOXZ6J.js} +2 -2
  144. package/dist/cdn/{JQIWWUT2.js → OAPQTMJ5.js} +2 -2
  145. package/dist/cdn/{4UGGJAAV.js → OKZQNUJD.js} +2 -2
  146. package/dist/cdn/{O77ONXXD.js → OLWCN4US.js} +2 -2
  147. package/dist/cdn/{M6QTQ35O.js → OQNZ7UDL.js} +2 -2
  148. package/dist/cdn/{G26SGNQH.js → OSOSDDAU.js} +2 -2
  149. package/dist/cdn/{IUGCGL5M.js → PASAZAZ6.js} +2 -2
  150. package/dist/cdn/{GPI4RQIV.js → PB6Q6WJW.js} +2 -2
  151. package/dist/cdn/{MBBHONGQ.js → PDW7WEHF.js} +2 -2
  152. package/dist/cdn/{65CPZ2KZ.js → PHD6BHQ4.js} +2 -2
  153. package/dist/cdn/{QXR4AC33.js → PN7DBKMU.js} +2 -2
  154. package/dist/cdn/{74LS4NAP.js → PRWIHAFS.js} +2 -2
  155. package/dist/cdn/{Z75GPXSZ.js → Q4IZ2VB3.js} +2 -2
  156. package/dist/cdn/{BSISFUMK.js → QC4MAENR.js} +2 -2
  157. package/dist/cdn/{4MXIZ65N.js → QFL2NSB2.js} +2 -2
  158. package/dist/cdn/{EESRNY2T.js → QKMKIWCQ.js} +1 -1
  159. package/dist/cdn/{4D4TXTM7.js → QLWXRLT4.js} +2 -2
  160. package/dist/cdn/{27AX6VAA.js → QW7V5HNE.js} +2 -2
  161. package/dist/cdn/{PPCO4XFA.js → R2GLGQG3.js} +2 -2
  162. package/dist/cdn/{3WR5FNIS.js → RAV6QK2C.js} +2 -2
  163. package/dist/cdn/{XSAOQY5N.js → REUAJT4B.js} +2 -2
  164. package/dist/cdn/{DG2NGS4U.js → RIS6P2XR.js} +2 -2
  165. package/dist/cdn/{4P5BRFD5.js → RJ2UO54I.js} +2 -2
  166. package/dist/cdn/{G4WBNPGM.js → RKWRBQZP.js} +2 -2
  167. package/dist/cdn/{ZLN2LOZI.js → RMVTG3N6.js} +2 -2
  168. package/dist/cdn/{ZKB4YZNZ.js → RN3J7V4V.js} +1 -1
  169. package/dist/cdn/{NFUEZP25.js → SDPRHRZH.js} +2 -2
  170. package/dist/cdn/SRKH3O76.js +4 -0
  171. package/dist/cdn/{ZI2WDP4G.js → SVZP7CO6.js} +2 -2
  172. package/dist/cdn/{PXPHMXKV.js → SWC7LWJY.js} +2 -2
  173. package/dist/cdn/{5NGKK2AB.js → SWIB7SK7.js} +1 -1
  174. package/dist/cdn/{2SBM6RKV.js → SYHOQAFK.js} +2 -2
  175. package/dist/cdn/{NQFMIUBA.js → SZHIAQ7E.js} +2 -2
  176. package/dist/cdn/{FVVY7RMI.js → T2M3BZ6N.js} +2 -2
  177. package/dist/cdn/{PNIDFYQM.js → T3TMOY7Z.js} +2 -2
  178. package/dist/cdn/{OTKMLAAF.js → T4ZXFBNY.js} +2 -2
  179. package/dist/cdn/{QIUQFWNP.js → T5LILKGJ.js} +2 -2
  180. package/dist/cdn/{WYP3P727.js → TAQ7RO6H.js} +2 -2
  181. package/dist/cdn/{UHX67SFQ.js → TBQCN5F7.js} +2 -2
  182. package/dist/cdn/{XSUTMXBZ.js → THIPMCA4.js} +2 -2
  183. package/dist/cdn/{V3UHZHYV.js → TQR7K5IL.js} +2 -2
  184. package/dist/cdn/{BSGZITLJ.js → TTVCQCL3.js} +2 -2
  185. package/dist/cdn/{MK5UCIN5.js → U243RXYQ.js} +2 -2
  186. package/dist/cdn/{FB6W7DFW.js → U24GE4JJ.js} +2 -2
  187. package/dist/cdn/{BAINXG3J.js → U2ZJBEHK.js} +2 -2
  188. package/dist/cdn/{ZFUQVWPZ.js → U7RXMTSV.js} +2 -2
  189. package/dist/cdn/{G7ROEGFH.js → UBFLCINO.js} +1 -1
  190. package/dist/cdn/{X3KOWRFB.js → UG63H4SU.js} +2 -2
  191. package/dist/cdn/{VD4WHRFB.js → UIH2XZ4T.js} +2 -2
  192. package/dist/cdn/{7IAFOQVM.js → UJQ6PF3S.js} +2 -2
  193. package/dist/cdn/UJUPDEDC.js +4 -0
  194. package/dist/cdn/{5BZUXWNM.js → UPHFWPPT.js} +2 -2
  195. package/dist/cdn/{6HPOF4HZ.js → UTJ76JUA.js} +2 -2
  196. package/dist/cdn/{IKYWXNDB.js → UZE5D6HO.js} +2 -2
  197. package/dist/cdn/{UNNGKP7O.js → V2SFJMTS.js} +2 -2
  198. package/dist/cdn/{BHE7AL45.js → VHBES7AQ.js} +2 -2
  199. package/dist/cdn/{TQIRBCDV.js → VNQOTQRJ.js} +2 -2
  200. package/dist/cdn/{422SD5KW.js → VOA7ZJVN.js} +2 -2
  201. package/dist/cdn/{OQHW24K3.js → W4VWTV5O.js} +2 -2
  202. package/dist/cdn/{BXS7RSBQ.js → W6WB6RZ5.js} +2 -2
  203. package/dist/cdn/{NA22QC53.js → WBRG24M6.js} +2 -2
  204. package/dist/cdn/{YF57MQLE.js → WMC46E4D.js} +2 -2
  205. package/dist/cdn/{TV7442I6.js → WMDCD57H.js} +2 -2
  206. package/dist/cdn/{2GWPA3HC.js → WREUUUSY.js} +2 -2
  207. package/dist/cdn/{3Z3W5M6S.js → WTRZH2WJ.js} +2 -2
  208. package/dist/cdn/{GZCBIJGX.js → WWFXN7YB.js} +2 -2
  209. package/dist/cdn/{4XZPUTED.js → WXIQV32T.js} +2 -2
  210. package/dist/cdn/{XGVY56IC.js → XAZWFYEX.js} +2 -2
  211. package/dist/cdn/{GXT4JSC6.js → XE5O2CWI.js} +2 -2
  212. package/dist/cdn/{DHIW653L.js → XEGVC2BB.js} +2 -2
  213. package/dist/cdn/{KB5MBKRP.js → XFFLH5GS.js} +2 -2
  214. package/dist/cdn/{6LZLH5VV.js → XJLMKLXL.js} +1 -1
  215. package/dist/cdn/{RWSRN6WY.js → XKY2QXCL.js} +2 -2
  216. package/dist/cdn/{55DEANOF.js → XSAJ4V34.js} +2 -2
  217. package/dist/cdn/{FUSICPDM.js → XSAWK4SO.js} +2 -2
  218. package/dist/cdn/{MC4QL33W.js → YA6QQBQY.js} +2 -2
  219. package/dist/cdn/{Z7BSDSOP.js → YA75GN3S.js} +2 -2
  220. package/dist/cdn/{OKMGFKAT.js → YD7AZIJ5.js} +2 -2
  221. package/dist/cdn/{WZON6ADW.js → YDBLGHSQ.js} +2 -2
  222. package/dist/cdn/{J2763T3G.js → YGQGUA3J.js} +2 -2
  223. package/dist/cdn/{GNBPPVLP.js → YGY35OTX.js} +1 -1
  224. package/dist/cdn/{HVRSNJDU.js → YL2Q5PYV.js} +2 -2
  225. package/dist/cdn/{XMTPKTTY.js → YLT7I7EZ.js} +2 -2
  226. package/dist/cdn/{YBP7CBSJ.js → YWTX6CRL.js} +2 -2
  227. package/dist/cdn/{FBXYB447.js → Z26OFSTL.js} +2 -2
  228. package/dist/cdn/{CPPHVEEA.js → Z2ORNXHH.js} +2 -2
  229. package/dist/cdn/{XKSA2R6C.js → Z2TSI7BE.js} +1 -1
  230. package/dist/cdn/{NYFKP6RJ.js → Z74DF7VI.js} +2 -2
  231. package/dist/cdn/{LBY2QGM5.js → Z7R7GFWS.js} +2 -2
  232. package/dist/cdn/{MZRPS5BC.js → ZAD2WJPA.js} +2 -2
  233. package/dist/cdn/{HGJ5VCDV.js → ZIJSCW56.js} +2 -2
  234. package/dist/cdn/{NR3MPKW5.js → ZILTBWX3.js} +2 -2
  235. package/dist/cdn/{TOSCC3G5.js → ZKV75NEH.js} +2 -2
  236. package/dist/cdn/{7CYHQ6FD.js → ZN7EIBGI.js} +2 -2
  237. package/dist/cdn/{CP6V62MZ.js → ZONQCDTD.js} +2 -2
  238. package/dist/cdn/{C7JYDN2K.js → ZXT67AGG.js} +2 -2
  239. package/dist/cdn/index.js +2 -2
  240. package/dist/chunks/AnalysisViewModel.js +1 -1
  241. package/dist/chunks/action-utils.js +1 -1
  242. package/dist/chunks/async-utils.js +1 -1
  243. package/dist/chunks/basemap-gallery-resources.js +1 -1
  244. package/dist/chunks/building-layer-utils.js +1 -1
  245. package/dist/chunks/chart-utils.js +1 -1
  246. package/dist/chunks/chartCommon.js +1 -1
  247. package/dist/chunks/component-utils.js +1 -1
  248. package/dist/chunks/component-wrapper.js +1 -1
  249. package/dist/chunks/constants.js +1 -1
  250. package/dist/chunks/createCloseEvent.js +1 -1
  251. package/dist/chunks/esri-main.js +1 -1
  252. package/dist/chunks/feature-utils.js +1 -1
  253. package/dist/chunks/globalCss.js +1 -1
  254. package/dist/chunks/handle.js +1 -1
  255. package/dist/chunks/heading.js +1 -1
  256. package/dist/chunks/layer-list.js +1 -1
  257. package/dist/chunks/legacyIcon.js +1 -1
  258. package/dist/chunks/maybe.js +1 -1
  259. package/dist/chunks/measurementUtils.js +1 -1
  260. package/dist/chunks/runtime.js +1 -1
  261. package/dist/chunks/screenLocation.js +1 -1
  262. package/dist/chunks/slots.js +1 -1
  263. package/dist/chunks/svgUtils.js +1 -1
  264. package/dist/chunks/time-utils.js +1 -1
  265. package/dist/chunks/univariateUtils.js +1 -1
  266. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  267. package/dist/chunks/useHandles.js +1 -1
  268. package/dist/chunks/useT9n.js +1 -1
  269. package/dist/chunks/useView.js +1 -1
  270. package/dist/chunks/useViewModel.js +1 -1
  271. package/dist/chunks/useWidget.js +1 -1
  272. package/dist/chunks/utils.js +1 -1
  273. package/dist/chunks/utils2.js +1 -1
  274. package/dist/chunks/visible-element.js +1 -1
  275. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  276. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  277. package/dist/components/arcgis-attachments/customElement.js +1 -1
  278. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  279. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  280. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  281. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  282. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  283. package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
  284. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  285. package/dist/components/arcgis-building-level-item/customElement.js +1 -1
  286. package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
  287. package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
  288. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  289. package/dist/components/arcgis-color-select/customElement.js +1 -1
  290. package/dist/components/arcgis-compass/customElement.js +1 -1
  291. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  292. package/dist/components/arcgis-daylight/customElement.js +1 -1
  293. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  294. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  295. package/dist/components/arcgis-directions/customElement.js +1 -1
  296. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  297. package/dist/components/arcgis-editor/customElement.js +1 -1
  298. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  299. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  300. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  301. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  302. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  303. package/dist/components/arcgis-expand/customElement.js +1 -1
  304. package/dist/components/arcgis-feature/customElement.js +1 -1
  305. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  306. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  307. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  308. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  309. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  310. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  311. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  312. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  313. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  314. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  315. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  316. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  317. package/dist/components/arcgis-features/customElement.js +1 -1
  318. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  319. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  320. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  321. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  322. package/dist/components/arcgis-home/customElement.js +1 -1
  323. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  324. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  325. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  326. package/dist/components/arcgis-legend/customElement.js +1 -1
  327. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  328. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  329. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  330. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  331. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  332. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  333. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  334. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  335. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  336. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  337. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  338. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  339. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  340. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  341. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  342. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  343. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  344. package/dist/components/arcgis-locate/customElement.js +1 -1
  345. package/dist/components/arcgis-map/customElement.js +1 -1
  346. package/dist/components/arcgis-measurement/customElement.js +1 -1
  347. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  348. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  349. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  350. package/dist/components/arcgis-popup/customElement.js +1 -1
  351. package/dist/components/arcgis-presentation/customElement.js +1 -1
  352. package/dist/components/arcgis-print/customElement.js +1 -1
  353. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  354. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  355. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  356. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  357. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  358. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  359. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  360. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  361. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  362. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  363. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  364. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  365. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  366. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  367. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  368. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  369. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  370. package/dist/components/arcgis-scene/customElement.js +1 -1
  371. package/dist/components/arcgis-search/customElement.js +1 -1
  372. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  373. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  374. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  375. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
  376. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  377. package/dist/components/arcgis-sketch/customElement.js +1 -1
  378. package/dist/components/arcgis-slice/customElement.js +1 -1
  379. package/dist/components/arcgis-spinner/customElement.js +1 -1
  380. package/dist/components/arcgis-swipe/customElement.js +1 -1
  381. package/dist/components/arcgis-table-list/customElement.js +1 -1
  382. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  383. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  384. package/dist/components/arcgis-track/customElement.js +1 -1
  385. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  386. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  387. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  388. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  389. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  390. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  391. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  392. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  393. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  394. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  395. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  396. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  397. package/dist/components/arcgis-version-management/customElement.js +1 -1
  398. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  399. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  400. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  401. package/dist/components/arcgis-video/customElement.js +1 -1
  402. package/dist/components/arcgis-video-player/customElement.js +1 -1
  403. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  404. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  405. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  406. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  407. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  408. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  409. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  410. package/dist/components/arcgis-weather/customElement.js +1 -1
  411. package/dist/components/arcgis-webgl-error/customElement.js +1 -1
  412. package/dist/components/arcgis-zoom/customElement.js +1 -1
  413. package/dist/docs/api.json +2 -2
  414. package/dist/docs/docs.json +2 -2
  415. package/dist/docs/web-types.json +1 -1
  416. package/dist/index.js +1 -1
  417. package/dist/loader.js +1 -1
  418. package/package.json +3 -3
  419. package/dist/cdn/CJQFVW4G.js +0 -4
  420. package/dist/cdn/XNPK5HKI.js +0 -4
  421. package/dist/cdn/YASN6Z3U.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import{a as f}from"./4ZQMNRXP.js";import"./FB6W7DFW.js";import{a as m}from"./ZABD6P4G.js";import{b as h}from"./GNBPPVLP.js";import{N as d,O as a,T as g,a as o,b as i}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([{watch:v},{substitute:_}])=>{var u=o`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel-item[selected]{flex:1;overflow:auto}.arcgis-legend--card__message{padding:.5em 1em}.arcgis-legend--card__service-caption-text{margin:0}.arcgis-legend--card__service-content{display:flex;flex:1}.arcgis-legend--card__service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.arcgis-legend--card__service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);min-width:fit-content;display:flex;flex-direction:column;flex:1}.arcgis-legend--card__service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-spacing-md)}`,n={message:"arcgis-legend--card__message",serviceCaptionText:"arcgis-legend--card__service-caption-text",serviceContent:"arcgis-legend--card__service-content",service:"arcgis-legend--card__service",serviceCaptionContainer:"arcgis-legend--card__service-caption-container"},p=768,c=class extends d{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3,this.layout="auto",this.type="card"}static{this.properties={stacked:16,activeLayerInfos:0,headingLevel:9,messages:0,view:0,layout:1,type:32}}static{this.styles=u}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.layout,this.view.width],()=>{this.stacked=this.layout==="stack"||(!this.layout||this.layout==="auto")&&this.view.width<=p},{initial:!0})])}render(){return(this.stacked?this._renderCarousel():this._renderLayers())||i`<div class=${a(n.message)}>${this.messages.noLegend}</div>`}_renderTitle(e){return i`<div class=${a(n.serviceCaptionContainer)}>${f({class:h(n.serviceCaptionText,m.heading),level:this.headingLevel,children:e})}</div>`}_renderCarousel(){let e=[],t=this.activeLayerInfos;if(t)for(let s of t)this._renderSections(s,e);return e?.length?i`<calcite-carousel .label=${this.messages.carousel??""}>${e.map((s,r)=>i`<calcite-carousel-item .label=${_(this.messages?.pagination?.pageText??"",{index:r+1,total:e.length})}>${s}</calcite-carousel-item>`)}</calcite-carousel>`:null}_renderLayers(){let e=this.activeLayerInfos?.toArray()?.map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?e:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){let t=e.children.toArray().map(this._renderLegendForLayer,this);return i`<section class=${a(n.service)}>${this._renderTitle(e.title)}<div class=${a(n.serviceContent)}>${t}</div></section>`}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let s=t.map(r=>i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`);return i`<section class=${a(n.service)}>${this._renderTitle(e.title)}<div class=${a(n.serviceContent)}>${s}</div></section>`}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(let r of e.children)this._renderSections(r,t);let s=e.legendElements;if(s?.length)for(let r of s){let l=i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`;l&&t.push(l)}}};g("arcgis-legend-card-view",c);return c},"core/reactiveUtils","intl")
3
+ v5.0.0-next.112 */
4
+ import{a as f}from"./EB6P6V47.js";import"./U24GE4JJ.js";import{a as m}from"./5IA4B4SD.js";import{b as h}from"./YGY35OTX.js";import{N as d,O as a,T as g,a as o,b as i}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([{watch:v},{substitute:_}])=>{var u=o`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel-item[selected]{flex:1;overflow:auto}.arcgis-legend--card__message{padding:.5em 1em}.arcgis-legend--card__service-caption-text{margin:0}.arcgis-legend--card__service-content{display:flex;flex:1}.arcgis-legend--card__service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.arcgis-legend--card__service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);min-width:fit-content;display:flex;flex-direction:column;flex:1}.arcgis-legend--card__service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-spacing-md)}`,n={message:"arcgis-legend--card__message",serviceCaptionText:"arcgis-legend--card__service-caption-text",serviceContent:"arcgis-legend--card__service-content",service:"arcgis-legend--card__service",serviceCaptionContainer:"arcgis-legend--card__service-caption-container"},p=768,c=class extends d{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3,this.layout="auto",this.type="card"}static{this.properties={stacked:16,activeLayerInfos:0,headingLevel:9,messages:0,view:0,layout:1,type:32}}static{this.styles=u}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.layout,this.view.width],()=>{this.stacked=this.layout==="stack"||(!this.layout||this.layout==="auto")&&this.view.width<=p},{initial:!0})])}render(){return(this.stacked?this._renderCarousel():this._renderLayers())||i`<div class=${a(n.message)}>${this.messages.noLegend}</div>`}_renderTitle(e){return i`<div class=${a(n.serviceCaptionContainer)}>${f({class:h(n.serviceCaptionText,m.heading),level:this.headingLevel,children:e})}</div>`}_renderCarousel(){let e=[],t=this.activeLayerInfos;if(t)for(let s of t)this._renderSections(s,e);return e?.length?i`<calcite-carousel .label=${this.messages.carousel??""}>${e.map((s,r)=>i`<calcite-carousel-item .label=${_(this.messages?.pagination?.pageText??"",{index:r+1,total:e.length})}>${s}</calcite-carousel-item>`)}</calcite-carousel>`:null}_renderLayers(){let e=this.activeLayerInfos?.toArray()?.map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?e:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){let t=e.children.toArray().map(this._renderLegendForLayer,this);return i`<section class=${a(n.service)}>${this._renderTitle(e.title)}<div class=${a(n.serviceContent)}>${t}</div></section>`}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let s=t.map(r=>i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`);return i`<section class=${a(n.service)}>${this._renderTitle(e.title)}<div class=${a(n.serviceContent)}>${s}</div></section>`}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(let r of e.children)this._renderSections(r,t);let s=e.legendElements;if(s?.length)for(let r of s){let l=i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`;l&&t.push(l)}}};g("arcgis-legend-card-view",c);return c},"core/reactiveUtils","intl")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import{C as V,D as R,K as y,M as k,h as x}from"./43BZNZDD.js";import{N as v,Q as G,d as D,f as O,o as C,q as $,u as w}from"./NBHOVBHC.js";import{a as B}from"./ZKB4YZNZ.js";import{N as E,g as m,o as M}from"./GZCBIJGX.js";var c=class extends R{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e/Math.abs(e),n=t/Math.abs(t),s=0,r=0,l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=i*l,t-=n*l,s+=i*l/2,r+=n*l/2);let a=e,h=t;if(m(a)&&m(h)){let o=Math.min(a,h)/2,d=w(this.get("cornerRadiusTL",8),o),u=w(this.get("cornerRadiusTR",8),o),g=w(this.get("cornerRadiusBR",8),o),f=w(this.get("cornerRadiusBL",8),o),b=Math.min(Math.abs(a/2),Math.abs(h/2));d=x(d,0,b),u=x(u,0,b),g=x(g,0,b),f=x(f,0,b);let p=this._display;p.moveTo(s+d*i,r),p.lineTo(s+a-u*i,r),u>0&&p.arcTo(s+a,r,s+a,r+u*n,u),p.lineTo(s+a,r+h-g*n),g>0&&p.arcTo(s+a,r+h,s+a-g*i,r+h,g),p.lineTo(s+f*i,r+h),f>0&&p.arcTo(s,r+h,s,r+h-f*n,f),p.lineTo(s,r+d*n),d>0&&p.arcTo(s,r,s+d*i,r,d),p.closePath()}}};Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"});Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:R.classNames.concat([c.className])});var _=class extends y{_afterNew(){this._settings.themeTags=v(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",c.new(this._root,{themeTags:v(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){let e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){let e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};Object.defineProperty(_,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});Object.defineProperty(_,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:y.classNames.concat([_.className])});var T=class extends k{constructor(){super(...arguments),Object.defineProperty(this,"_editOnEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew();let e=this.children.push(y.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide(),this.setPrivate("input",e);let t=this.get("background");t?t.set("themeTags",["editablelabel","background"]):t=this.set("background",c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();let e=this.get("editOn","click");e!="none"&&(this._editOnEvents=new E([this.getPrivate("input").events.on(e,t=>{}),this.events.on(e,t=>{this.set("active",!0)})]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){let e=this.get("active",!1);e?this._startEditing():this._stopEditing();let t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){let e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){let i=e.getPrivate("htmlElement").querySelector(".am5-editable-label");i&&(this.setPrivate("textarea",i),i.addEventListener("input",n=>{this.get("multiLine")===!1&&(i.value=i.value.replace(/\n/g," ")),this.set("text",i.value),this._syncStyle()}),i.addEventListener("blur",n=>this.set("active",!1)),O("keyboardevents")&&this._disposers.push(D(document,"keydown",n=>{$(n)=="Escape"&&this.set("active",!1)})),this._disposers.push(D(document,"keydown",n=>{$(n)=="Enter"&&this.get("multiLine")===!1&&(n.preventDefault(),this.set("active",!1))})),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._startEditing()});return}this._text.set("opacity",0);let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.get("text","")==""&&this.set("text"," "),e.show(0),this.setTimeout(()=>{this._syncStyle(),t.focus()},100))}_stopEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._stopEditing()});return}let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){let e=this.getPrivate("input"),t=this.getPrivate("textarea"),i=e.getPrivate("htmlElement");if(t&&i){let n=window.getComputedStyle(t);M(n,u=>{t.style[u]="initial"}),t.style.color=this.get("fill",G(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";let s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?t.style.maxWidth=s+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");let r=this.get("lineHeight");r?r instanceof B?t.style.lineHeight=r.value+"":m(r)&&(t.style.lineHeight=r+""):t.style.lineHeight="1.2";let l=this.get("fontFamily");l||(l=getComputedStyle(i,"font-family").getPropertyValue("font-family")),t.style.fontFamily=l;let a=this.get("fontSize");a?m(a)?a=a+"px":a=a:a=getComputedStyle(i,"font-size").getPropertyValue("font-size"),t.style.fontSize=a;let h=this.get("fontWeight");h?h=h:h=getComputedStyle(i,"font-weight").getPropertyValue("font-weight"),t.style.fontWeight=h;let o=this.get("fontStyle");o?o=o:o=getComputedStyle(i,"font-style").getPropertyValue("font-style"),t.style.fontStyle=o,this.get("oversizedBehavior")=="wrap"?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="nowrap",this._root.events.on("frameended",()=>{t.style.minWidth==""&&(t.style.minWidth=t.scrollWidth+20+"px");let u=this.get("textAlign","start");u=="center"?(t.style.textAlign="center",!i.style.transform.match(/translateX/)&&!this.get("width")&&(i.style.transform+=" translateX(-50%)")):u=="end"?(t.style.textAlign="right",!i.style.transform.match(/translateX/)&&!this.get("width")&&(i.style.transform+=" translateX(-100%)")):t.style.textAlign=u})}}_syncText(){let e=this.getPrivate("textarea"),t=this.get("text","");t==" "&&(t=""),e&&(e.value=t)}};Object.defineProperty(T,"className",{enumerable:!0,configurable:!0,writable:!0,value:"EditableLabel"});Object.defineProperty(T,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:k.classNames.concat([T.className])});var P=class extends y{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:this._makeThumb()}),Object.defineProperty(this,"startGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"endGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"_thumbBusy",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_startDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_endDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_thumbDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_gripDown",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_addOrientationClass(){this._settings.themeTags=v(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=c.new(this._root,{themeTags:v(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(_.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:V.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();let e=this.startGrip,t=this.endGrip,i=this.thumb,n=this.get("background");n&&this._disposers.push(n.events.on("click",s=>{this.setPrivateRaw("isBusy",!0);let r=this._display.toLocal(s.point),l=this.width(),a=this.height(),h=this.get("orientation"),o;h=="vertical"?o=(r.y-i.height()/2)/a:o=(r.x-i.width()/2)/l;let d,u;h=="vertical"?(d=o*a,u="y"):(d=o*l,u="x");let g=this.get("animationDuration",0);g>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:u,to:d,duration:g,easing:this.get("animationEasing")}))):(this.thumb.set(u,d),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))})),this._disposers.push(i.events.on("dblclick",s=>{if(!C(s.originalEvent,this))return;let r=this.get("animationDuration",0),l=this.get("animationEasing");this.animate({key:"start",to:0,duration:r,easing:l}),this.animate({key:"end",to:1,duration:r,easing:l})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(i.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1})),this._disposers.push(i.events.on("globalpointerup",()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(i.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e.set("x",0),t.set("x",0),this._disposers.push(i.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()-i.height()),0))),this._disposers.push(i.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("x",s=>this.width()/2)),this._disposers.push(t.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0))),this._disposers.push(t.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0)))):(e.set("y",0),t.set("y",0),this._disposers.push(i.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()-i.width()),0))),this._disposers.push(i.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("y",s=>this.height()/2)),this._disposers.push(t.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))),this._disposers.push(t.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){let e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){let e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){let e=this.startGrip,t=this.endGrip,i=this.get("orientation"),n=this.height(),s=this.width();i=="vertical"?(e.set("y",n*this.get("start",0)),t.set("y",n*this.get("end",1))):(e.set("x",s*this.get("start",0)),t.set("x",s*this.get("end",1)));let r=this.getPrivate("positionTextFunction"),l=Math.round(this.get("start",0)*100),a=Math.round(this.get("end",0)*100),h,o;r?(h=r.call(this,this.get("start",0)),o=r.call(this,this.get("end",0))):(h=l+"%",o=a+"%"),e.set("ariaLabel",this._t("From %1",void 0,h)),e.set("ariaValueNow",""+l),e.set("ariaValueText",l+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,o)),t.set("ariaValueNow",""+a),t.set("ariaValueText",a+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip,n=this.height(),s=this.width(),r=t.x(),l=i.x(),a=t.y(),h=i.y(),o=0,d=1;this.get("orientation")=="vertical"?m(a)&&m(h)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("height",h-a),e.set("y",a)),o=a/n,d=h/n):m(r)&&m(l)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("width",l-r),e.set("x",r)),o=r/s,d=l/s),this.getPrivate("isBusy")&&(this.get("start")!=o||this.get("end")!=d)&&(this.set("start",o),this.set("end",d));let u=this.getPrivate("positionTextFunction"),g=Math.round(this.get("start",0)*100),f=Math.round(this.get("end",0)*100),b,p;u?(b=u.call(this,this.get("start",0)),p=u.call(this,this.get("end",0))):(b=g+"%",p=f+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,b,p)),e.set("ariaValueNow",""+g),e.set("ariaValueText",g+"%")}_updateGripsByThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip;if(this.get("orientation")=="vertical"){let n=e.height();t.set("y",e.y()),i.set("y",e.y()+n)}else{let n=e.width();t.set("x",e.x()),i.set("x",e.x()+n)}}};Object.defineProperty(P,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Scrollbar"});Object.defineProperty(P,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:y.classNames.concat([P.className])});export{c as a,_ as b,T as c,P as d};
3
+ v5.0.0-next.112 */
4
+ import{C as V,D as R,K as y,M as k,h as x}from"./7BJBNXY2.js";import{N as v,Q as G,d as D,f as O,o as C,q as $,u as w}from"./KCSMQ2DE.js";import{a as B}from"./RN3J7V4V.js";import{N as E,g as m,o as M}from"./WWFXN7YB.js";var c=class extends R{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e/Math.abs(e),n=t/Math.abs(t),s=0,r=0,l=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=i*l,t-=n*l,s+=i*l/2,r+=n*l/2);let a=e,h=t;if(m(a)&&m(h)){let o=Math.min(a,h)/2,d=w(this.get("cornerRadiusTL",8),o),u=w(this.get("cornerRadiusTR",8),o),g=w(this.get("cornerRadiusBR",8),o),f=w(this.get("cornerRadiusBL",8),o),b=Math.min(Math.abs(a/2),Math.abs(h/2));d=x(d,0,b),u=x(u,0,b),g=x(g,0,b),f=x(f,0,b);let p=this._display;p.moveTo(s+d*i,r),p.lineTo(s+a-u*i,r),u>0&&p.arcTo(s+a,r,s+a,r+u*n,u),p.lineTo(s+a,r+h-g*n),g>0&&p.arcTo(s+a,r+h,s+a-g*i,r+h,g),p.lineTo(s+f*i,r+h),f>0&&p.arcTo(s,r+h,s,r+h-f*n,f),p.lineTo(s,r+d*n),d>0&&p.arcTo(s,r,s+d*i,r,d),p.closePath()}}};Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"});Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:R.classNames.concat([c.className])});var _=class extends y{_afterNew(){this._settings.themeTags=v(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",c.new(this._root,{themeTags:v(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){let e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){let e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};Object.defineProperty(_,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});Object.defineProperty(_,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:y.classNames.concat([_.className])});var T=class extends k{constructor(){super(...arguments),Object.defineProperty(this,"_editOnEvents",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew();let e=this.children.push(y.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide(),this.setPrivate("input",e);let t=this.get("background");t?t.set("themeTags",["editablelabel","background"]):t=this.set("background",c.new(this._root,{themeTags:["editablelabel","background"]}))}_beforeChanged(){if(super._beforeChanged(),this.isDirty("editOn")){this._editOnEvents&&this._editOnEvents.dispose();let e=this.get("editOn","click");e!="none"&&(this._editOnEvents=new E([this.getPrivate("input").events.on(e,t=>{}),this.events.on(e,t=>{this.set("active",!0)})]))}}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){let e=this.get("active",!1);e?this._startEditing():this._stopEditing();let t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){let e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){let i=e.getPrivate("htmlElement").querySelector(".am5-editable-label");i&&(this.setPrivate("textarea",i),i.addEventListener("input",n=>{this.get("multiLine")===!1&&(i.value=i.value.replace(/\n/g," ")),this.set("text",i.value),this._syncStyle()}),i.addEventListener("blur",n=>this.set("active",!1)),O("keyboardevents")&&this._disposers.push(D(document,"keydown",n=>{$(n)=="Escape"&&this.set("active",!1)})),this._disposers.push(D(document,"keydown",n=>{$(n)=="Enter"&&this.get("multiLine")===!1&&(n.preventDefault(),this.set("active",!1))})),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._startEditing()});return}this._text.set("opacity",0);let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.get("text","")==""&&this.set("text"," "),e.show(0),this.setTimeout(()=>{this._syncStyle(),t.focus()},100))}_stopEditing(){if(!this._isInited()){this.events.once("inited",()=>{this._stopEditing()});return}let e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){let e=this.getPrivate("input"),t=this.getPrivate("textarea"),i=e.getPrivate("htmlElement");if(t&&i){let n=window.getComputedStyle(t);M(n,u=>{t.style[u]="initial"}),t.style.color=this.get("fill",G(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";let s=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);s>0?t.style.maxWidth=s+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");let r=this.get("lineHeight");r?r instanceof B?t.style.lineHeight=r.value+"":m(r)&&(t.style.lineHeight=r+""):t.style.lineHeight="1.2";let l=this.get("fontFamily");l||(l=getComputedStyle(i,"font-family").getPropertyValue("font-family")),t.style.fontFamily=l;let a=this.get("fontSize");a?m(a)?a=a+"px":a=a:a=getComputedStyle(i,"font-size").getPropertyValue("font-size"),t.style.fontSize=a;let h=this.get("fontWeight");h?h=h:h=getComputedStyle(i,"font-weight").getPropertyValue("font-weight"),t.style.fontWeight=h;let o=this.get("fontStyle");o?o=o:o=getComputedStyle(i,"font-style").getPropertyValue("font-style"),t.style.fontStyle=o,this.get("oversizedBehavior")=="wrap"?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="nowrap",this._root.events.on("frameended",()=>{t.style.minWidth==""&&(t.style.minWidth=t.scrollWidth+20+"px");let u=this.get("textAlign","start");u=="center"?(t.style.textAlign="center",!i.style.transform.match(/translateX/)&&!this.get("width")&&(i.style.transform+=" translateX(-50%)")):u=="end"?(t.style.textAlign="right",!i.style.transform.match(/translateX/)&&!this.get("width")&&(i.style.transform+=" translateX(-100%)")):t.style.textAlign=u})}}_syncText(){let e=this.getPrivate("textarea"),t=this.get("text","");t==" "&&(t=""),e&&(e.value=t)}};Object.defineProperty(T,"className",{enumerable:!0,configurable:!0,writable:!0,value:"EditableLabel"});Object.defineProperty(T,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:k.classNames.concat([T.className])});var P=class extends y{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:this._makeThumb()}),Object.defineProperty(this,"startGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"endGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"_thumbBusy",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_startDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_endDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_thumbDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_gripDown",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_addOrientationClass(){this._settings.themeTags=v(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=c.new(this._root,{themeTags:v(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(_.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:V.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(c.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();let e=this.startGrip,t=this.endGrip,i=this.thumb,n=this.get("background");n&&this._disposers.push(n.events.on("click",s=>{this.setPrivateRaw("isBusy",!0);let r=this._display.toLocal(s.point),l=this.width(),a=this.height(),h=this.get("orientation"),o;h=="vertical"?o=(r.y-i.height()/2)/a:o=(r.x-i.width()/2)/l;let d,u;h=="vertical"?(d=o*a,u="y"):(d=o*l,u="x");let g=this.get("animationDuration",0);g>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:u,to:d,duration:g,easing:this.get("animationEasing")}))):(this.thumb.set(u,d),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))})),this._disposers.push(i.events.on("dblclick",s=>{if(!C(s.originalEvent,this))return;let r=this.get("animationDuration",0),l=this.get("animationEasing");this.animate({key:"start",to:0,duration:r,easing:l}),this.animate({key:"end",to:1,duration:r,easing:l})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(i.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1})),this._disposers.push(i.events.on("globalpointerup",()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(i.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e.set("x",0),t.set("x",0),this._disposers.push(i.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()-i.height()),0))),this._disposers.push(i.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("x",s=>this.width()/2)),this._disposers.push(t.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0))),this._disposers.push(t.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0)))):(e.set("y",0),t.set("y",0),this._disposers.push(i.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()-i.width()),0))),this._disposers.push(i.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("y",s=>this.height()/2)),this._disposers.push(t.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))),this._disposers.push(t.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){let e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){let e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){let e=this.startGrip,t=this.endGrip,i=this.get("orientation"),n=this.height(),s=this.width();i=="vertical"?(e.set("y",n*this.get("start",0)),t.set("y",n*this.get("end",1))):(e.set("x",s*this.get("start",0)),t.set("x",s*this.get("end",1)));let r=this.getPrivate("positionTextFunction"),l=Math.round(this.get("start",0)*100),a=Math.round(this.get("end",0)*100),h,o;r?(h=r.call(this,this.get("start",0)),o=r.call(this,this.get("end",0))):(h=l+"%",o=a+"%"),e.set("ariaLabel",this._t("From %1",void 0,h)),e.set("ariaValueNow",""+l),e.set("ariaValueText",l+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,o)),t.set("ariaValueNow",""+a),t.set("ariaValueText",a+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip,n=this.height(),s=this.width(),r=t.x(),l=i.x(),a=t.y(),h=i.y(),o=0,d=1;this.get("orientation")=="vertical"?m(a)&&m(h)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("height",h-a),e.set("y",a)),o=a/n,d=h/n):m(r)&&m(l)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("width",l-r),e.set("x",r)),o=r/s,d=l/s),this.getPrivate("isBusy")&&(this.get("start")!=o||this.get("end")!=d)&&(this.set("start",o),this.set("end",d));let u=this.getPrivate("positionTextFunction"),g=Math.round(this.get("start",0)*100),f=Math.round(this.get("end",0)*100),b,p;u?(b=u.call(this,this.get("start",0)),p=u.call(this,this.get("end",0))):(b=g+"%",p=f+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,b,p)),e.set("ariaValueNow",""+g),e.set("ariaValueText",g+"%")}_updateGripsByThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip;if(this.get("orientation")=="vertical"){let n=e.height();t.set("y",e.y()),i.set("y",e.y()+n)}else{let n=e.width();t.set("x",e.x()),i.set("x",e.x()+n)}}};Object.defineProperty(P,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Scrollbar"});Object.defineProperty(P,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:y.classNames.concat([P.className])});export{c as a,_ as b,T as c,P as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import i from"./Q25D3O3A.js";import{a as c,c as b}from"./BAINXG3J.js";import{a as f}from"./GAR3FSPV.js";import e from"./2SBM6RKV.js";import"./DG2NGS4U.js";import"./PJ36QTY2.js";import{c as d,d as g,e as u,f as y}from"./6IC34O2H.js";import"./GNBPPVLP.js";import{L as n,M as h,N as l,O as o,T as p,b as a,x as r}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([A,{watch:s},P,D,R,{a:t,b:w,f:v},{a:V,b:_,c:C}])=>{var L=w(R,{}),I=w(D,{}),m=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new V(this),this._cameraProperties={},this.arcgisLoadError=_(this),this.arcgisViewReadyError=C(this),this._map=L(this),this.view=I(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:0,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:0,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupDisabled:5,qualityProfile:1,ready:4,resolution:32,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,updating:4,viewingMode:1,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[f,b]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get camera(){return this.view.camera}set camera(i){d(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new P(e):void 0}set cameraPosition(i){let e=y(this.view.camera?.position,i);e&&this._mutateCamera(E=>{E.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){let e=u(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async addTable(i){this.map?.tables.add(i)}async addTables(i,e){this.map?.tables.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new A;i(e),this.camera=e}renderMain(){return a`<div class=${o(c.base)} ${h(this._mapRef)}></div>`}render(){return a`<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>${this.renderMain()}`}};p("arcgis-scene",m);return m},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",e,i)
3
+ v5.0.0-next.112 */
4
+ import i from"./KQTZ7EWW.js";import{a as c,c as b}from"./U2ZJBEHK.js";import{a as f}from"./HMV6VR2W.js";import e from"./SYHOQAFK.js";import"./RIS6P2XR.js";import"./2XQJJYPB.js";import{c as d,d as g,e as u,f as y}from"./IJVRBKED.js";import"./YGY35OTX.js";import{L as n,M as h,N as l,O as o,T as p,b as a,x as r}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([A,{watch:s},P,D,R,{a:t,b:w,f:v},{a:V,b:_,c:C}])=>{var L=w(R,{}),I=w(D,{}),m=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new V(this),this._cameraProperties={},this.arcgisLoadError=_(this),this.arcgisViewReadyError=C(this),this._map=L(this),this.view=I(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:0,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:0,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupDisabled:5,qualityProfile:1,ready:4,resolution:32,scale:9,spatialReference:0,stationary:32,suspended:7,theme:0,timeExtent:0,updating:4,viewingMode:1,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[f,b]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get camera(){return this.view.camera}set camera(i){d(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new P(e):void 0}set cameraPosition(i){let e=y(this.view.camera?.position,i);e&&this._mutateCamera(E=>{E.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){let e=u(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async addTable(i){this.map?.tables.add(i)}async addTables(i,e){this.map?.tables.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new A;i(e),this.camera=e}renderMain(){return a`<div class=${o(c.base)} ${h(this._mapRef)}></div>`}render(){return a`<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>${this.renderMain()}`}};p("arcgis-scene",m);return m},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",e,i)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
3
+ v5.0.0-next.112 */
4
4
  Intl.DateTimeFormat().resolvedOptions().timeZone;var o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function r(e,n,i){return e===0?0:e*o[n]/o[i]}function u(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function l(e,n,i="hours"){let t=new Date(e.getTime()),s=r(n,i,"milliseconds");return t.setTime(t.getTime()+s),t}function a(e,n){let i=r(n,"hours","milliseconds"),t=new Date(e.getTime()+i),s=t.toISOString().slice(0,10),c=t.getUTCHours()*60+t.getUTCMinutes();return{localDate:s,minutesSinceMidnight:c}}function f(e){let n=e?.environment?.lighting;if(m(n)){let i=n.displayUTCOffset??0,t=n.date;if(u(t)){let{localDate:s}=a(t,i);return s}}}function m(e){return e?.type==="sun"}export{r as a,u as b,l as c,a as d,f as e,m as f};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import a from"./XWMSRYJY.js";import{a as h}from"./JBATHADW.js";import{p as c}from"./6LZLH5VV.js";export default $arcgis.t(([{forceInteractive:m},f,{property:r,subclass:g},{ignoreAbortErrors:A},{when:I,watch:v,on:O,whenOnce:F},{a:u,b:d,c:_,d:y}])=>{var b=Object.defineProperty,T=Object.getOwnPropertyDescriptor,a=(s,i,e,n)=>{for(var o=n>1?void 0:n?T(i,e):i,l=s.length-1,p;l>=0;l--)(p=s[l])&&(o=(n?p(i,e,o):p(o))||o);return n&&o&&b(i,e,o),o},w=Symbol("interactiveHandle"),t=class extends f{constructor(){super({}),this.operationState="inactive",this._ownsAnalysis=!1,this.shouldForceInteractive=!0,this._changeFromReconnect=!1,this._userOperationInfo=null,this._loggedUnsupportedErrorMessage=!1}initialize(){this._set("analysis",this.constructAnalysis()),this._ownsAnalysis=!0;let s=()=>{!this._changeFromReconnect&&!this._viewHasAnalysis&&(this._ownsAnalysis=!1);let i=!this._changeFromReconnect;this._changeFromReconnect=!1,i&&this._scheduleViewReconnect()};this.addHandles([I(()=>this.view?.ready&&!this.supported,()=>{this._loggedUnsupportedErrorMessage||c("error",this,this.unsupportedErrorMessage)},{sync:!0,initial:!0}),v(()=>[this.analysis,this._viewHasAnalysis],s,{sync:!0}),O(()=>this.view,"analysis-view-destroy",i=>{i.analysis===this.analysis&&s()}),v(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:i},e)=>{let n=e?.view;i!==n&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(n)),this._scheduleViewReconnect()},{sync:!0,initial:!0})])}destroy(){this._reconnectViewTask=h(this._reconnectViewTask),this._userOperationInfo=h(this._userOperationInfo),this.analysisView!=null&&(this.analysisView.visible=void 0),this._disconnectFromView(this.view),this._set("view",null),this._ownsAnalysis&&this.analysis?.destroy()}get active(){return this._userOperationInfo?.state==="running"}set analysis(s){s!==this._get("analysis")&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(this.view),this._setExternalAnalysis(s),this._scheduleViewReconnect())}get connectingToView(){return!!this._reconnectViewTask}get disabled(){return!this.view?.ready||!this.supported}set hideVisualization(s){this._set("hideVisualization",s),this.analysisView&&(this.analysisView.visible=!s)}get ready(){return!!this.analysisView&&!this.connectingToView}get supported(){return!this.view||this.supportedViewType==="both"||this.view.type===this.supportedViewType}get _viewHasAnalysis(){let{view:s}=this;return s?.analyses.includes(this.analysis)===!0}clear(){this._userOperationInfo=h(this._userOperationInfo),this.clearAnalysis()}async start(s){if(this.hideVisualization){c("warn",this,"Cannot start analysis when not visible");return}s?.clear!==!1&&this.clear();let i={task:null,abort:null,state:"pending"},e=y(async n=>{if(i.state="wait-for-view-ready",await F(()=>this.ready,n),i.state="running",!this.analysisView||!this.view)return;this.operationState="active";let o=s?.operation?.({signal:n})??this.place({signal:n});await A(o)});return e.promise.finally(()=>{(this._userOperationInfo===i||!this._userOperationInfo)&&(this.operationState="inactive")}),i.task=e,i.abort=()=>e.abort(),this._userOperationInfo=i,await e.promise}stop(){this._userOperationInfo=h(this._userOperationInfo)}place(s){throw new Error("place() not implemented for this analysis view model")}clearAnalysis(){}onConnectToAnalysisView(s){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=h(this._reconnectViewTask);let s=y(async i=>{try{await this._reconnectView(i)}catch(e){if(u(i),!_(e)){c("warn",this,`Failed to use analysis in view model. ${String(e)}`);return}throw e}finally{s===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=s}async _reconnectView(s){let{view:i}=this,e=i?.ready&&this.supported,n=this.analysis;if(this._userOperationInfo=V(this._userOperationInfo),this._disconnectFromView(i),!e||!i||!n)return;this._ownsAnalysis&&(this._changeFromReconnect=!0,i.analyses.add(n));let o=await i.whenAnalysisView(n);if(this.analysisView=o,d(s)){this._userOperationInfo=V(this._userOperationInfo);return}o.visible=!this.hideVisualization,this.shouldForceInteractive&&this.addHandles(m(o),w),this.onConnectToAnalysisView(o)}_disconnectFromView(s){this._ownsAnalysis&&s?.analyses.includes(this.analysis)&&(this._changeFromReconnect=!0,this.clearAnalysis(),s.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this.removeHandles(w),this.analysisView=void 0}_setExternalAnalysis(s){this.analysisView&&!this._ownsAnalysis&&(this.analysisView.visible=void 0,this.removeHandles(w)),this.analysisView=void 0,this._ownsAnalysis=!1,this._set("analysis",s),this._changeFromReconnect=!1}};a([r()],t.prototype,"active",1);a([r()],t.prototype,"analysis",1);a([r()],t.prototype,"connectingToView",1);a([r()],t.prototype,"disabled",1);a([r()],t.prototype,"hideVisualization",1);a([r()],t.prototype,"operationState",2);a([r()],t.prototype,"ready",1);a([r()],t.prototype,"supported",1);a([r()],t.prototype,"view",2);a([r()],t.prototype,"_ownsAnalysis",2);a([r()],t.prototype,"_viewHasAnalysis",1);a([r()],t.prototype,"_reconnectViewTask",2);a([r()],t.prototype,"analysisView",2);a([r()],t.prototype,"shouldForceInteractive",2);t=a([g("esri.components.support.AnalysisViewModel")],t);function V(s){return s?.state==="running"?(s.abort(),null):s}return t},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils",a)
3
+ v5.0.0-next.112 */
4
+ import a from"./3SF6VYM4.js";import{a as h}from"./4SISPQ4E.js";import{p as c}from"./XJLMKLXL.js";export default $arcgis.t(([{forceInteractive:m},f,{property:r,subclass:g},{ignoreAbortErrors:A},{when:I,watch:v,on:O,whenOnce:F},{a:u,b:d,c:_,d:y}])=>{var b=Object.defineProperty,T=Object.getOwnPropertyDescriptor,a=(s,i,e,n)=>{for(var o=n>1?void 0:n?T(i,e):i,l=s.length-1,p;l>=0;l--)(p=s[l])&&(o=(n?p(i,e,o):p(o))||o);return n&&o&&b(i,e,o),o},w=Symbol("interactiveHandle"),t=class extends f{constructor(){super({}),this.operationState="inactive",this._ownsAnalysis=!1,this.shouldForceInteractive=!0,this._changeFromReconnect=!1,this._userOperationInfo=null,this._loggedUnsupportedErrorMessage=!1}initialize(){this._set("analysis",this.constructAnalysis()),this._ownsAnalysis=!0;let s=()=>{!this._changeFromReconnect&&!this._viewHasAnalysis&&(this._ownsAnalysis=!1);let i=!this._changeFromReconnect;this._changeFromReconnect=!1,i&&this._scheduleViewReconnect()};this.addHandles([I(()=>this.view?.ready&&!this.supported,()=>{this._loggedUnsupportedErrorMessage||c("error",this,this.unsupportedErrorMessage)},{sync:!0,initial:!0}),v(()=>[this.analysis,this._viewHasAnalysis],s,{sync:!0}),O(()=>this.view,"analysis-view-destroy",i=>{i.analysis===this.analysis&&s()}),v(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:i},e)=>{let n=e?.view;i!==n&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(n)),this._scheduleViewReconnect()},{sync:!0,initial:!0})])}destroy(){this._reconnectViewTask=h(this._reconnectViewTask),this._userOperationInfo=h(this._userOperationInfo),this.analysisView!=null&&(this.analysisView.visible=void 0),this._disconnectFromView(this.view),this._set("view",null),this._ownsAnalysis&&this.analysis?.destroy()}get active(){return this._userOperationInfo?.state==="running"}set analysis(s){s!==this._get("analysis")&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(this.view),this._setExternalAnalysis(s),this._scheduleViewReconnect())}get connectingToView(){return!!this._reconnectViewTask}get disabled(){return!this.view?.ready||!this.supported}set hideVisualization(s){this._set("hideVisualization",s),this.analysisView&&(this.analysisView.visible=!s)}get ready(){return!!this.analysisView&&!this.connectingToView}get supported(){return!this.view||this.supportedViewType==="both"||this.view.type===this.supportedViewType}get _viewHasAnalysis(){let{view:s}=this;return s?.analyses.includes(this.analysis)===!0}clear(){this._userOperationInfo=h(this._userOperationInfo),this.clearAnalysis()}async start(s){if(this.hideVisualization){c("warn",this,"Cannot start analysis when not visible");return}s?.clear!==!1&&this.clear();let i={task:null,abort:null,state:"pending"},e=y(async n=>{if(i.state="wait-for-view-ready",await F(()=>this.ready,n),i.state="running",!this.analysisView||!this.view)return;this.operationState="active";let o=s?.operation?.({signal:n})??this.place({signal:n});await A(o)});return e.promise.finally(()=>{(this._userOperationInfo===i||!this._userOperationInfo)&&(this.operationState="inactive")}),i.task=e,i.abort=()=>e.abort(),this._userOperationInfo=i,await e.promise}stop(){this._userOperationInfo=h(this._userOperationInfo)}place(s){throw new Error("place() not implemented for this analysis view model")}clearAnalysis(){}onConnectToAnalysisView(s){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=h(this._reconnectViewTask);let s=y(async i=>{try{await this._reconnectView(i)}catch(e){if(u(i),!_(e)){c("warn",this,`Failed to use analysis in view model. ${String(e)}`);return}throw e}finally{s===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=s}async _reconnectView(s){let{view:i}=this,e=i?.ready&&this.supported,n=this.analysis;if(this._userOperationInfo=V(this._userOperationInfo),this._disconnectFromView(i),!e||!i||!n)return;this._ownsAnalysis&&(this._changeFromReconnect=!0,i.analyses.add(n));let o=await i.whenAnalysisView(n);if(this.analysisView=o,d(s)){this._userOperationInfo=V(this._userOperationInfo);return}o.visible=!this.hideVisualization,this.shouldForceInteractive&&this.addHandles(m(o),w),this.onConnectToAnalysisView(o)}_disconnectFromView(s){this._ownsAnalysis&&s?.analyses.includes(this.analysis)&&(this._changeFromReconnect=!0,this.clearAnalysis(),s.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this.removeHandles(w),this.analysisView=void 0}_setExternalAnalysis(s){this.analysisView&&!this._ownsAnalysis&&(this.analysisView.visible=void 0,this.removeHandles(w)),this.analysisView=void 0,this._ownsAnalysis=!1,this._set("analysis",s),this._changeFromReconnect=!1}};a([r()],t.prototype,"active",1);a([r()],t.prototype,"analysis",1);a([r()],t.prototype,"connectingToView",1);a([r()],t.prototype,"disabled",1);a([r()],t.prototype,"hideVisualization",1);a([r()],t.prototype,"operationState",2);a([r()],t.prototype,"ready",1);a([r()],t.prototype,"supported",1);a([r()],t.prototype,"view",2);a([r()],t.prototype,"_ownsAnalysis",2);a([r()],t.prototype,"_viewHasAnalysis",1);a([r()],t.prototype,"_reconnectViewTask",2);a([r()],t.prototype,"analysisView",2);a([r()],t.prototype,"shouldForceInteractive",2);t=a([g("esri.components.support.AnalysisViewModel")],t);function V(s){return s?.state==="running"?(s.abort(),null):s}return t},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils",a)
@@ -1,5 +1,5 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import a from"./4D4TXTM7.js";import{a as W}from"./OQHW24K3.js";import{d as G,e as K}from"./DG2NGS4U.js";import"./PJ36QTY2.js";import{e as O}from"./GNBPPVLP.js";import{M as H,N as j,O as y,Q as b,T as D,a as B,b as C}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([{getColorsFromRenderer:se},{substitute:oe},{watch:le},de,ee,{renderingSanitizer:te},{f:$,g:q,h:F,i:J,j:Q,k:Z,m:z,o:N,p:P,q:L}])=>{var ce=B`.arcgis-feature-media__container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.arcgis-feature-media__container .arcgis-feature-media__pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.arcgis-feature-media__container .arcgis-feature-media__pagination-button:hover,.arcgis-feature-media__container .arcgis-feature-media__pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.arcgis-feature-media__item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.arcgis-feature-media__item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.arcgis-feature-media__item-text{margin-inline-end:var(--calcite-spacing-xs)}.arcgis-feature-media__pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.arcgis-feature-media__pagination:only-child{margin-inline-start:auto}.arcgis-feature-media__pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.arcgis-feature-media__item-container{flex:0 1 auto;width:100%}.arcgis-feature-media__item-container img{max-width:100%}.arcgis-feature-media__item-container img[src$=".SVG"],.arcgis-feature-media__item-container img[src$=".svg"]{width:100%}.arcgis-feature-media__chart{width:100%;height:155px}`;function X(V){if(!$(V))return null;let[e,t]=V.split("/").slice(1);return{layerId:e,fieldName:t}}var M="arcgis-feature-media",v={base:M,mediaContainer:`${M}__container`,mediaItemContainer:`${M}__item-container`,mediaItem:`${M}__item`,mediaItemText:`${M}__item-text`,mediaItemTitle:`${M}__item-title`,mediaItemCaption:`${M}__item-caption`,mediaNavigation:`${M}__item-navigation`,mediaPagination:`${M}__pagination`,mediaPaginationText:`${M}__pagination-text`,mediaChart:`${M}__chart`,mediaPaginationButton:`${M}__pagination-button`,mediaPaginationIcon:`${M}__pagination-icon`,mediaChartRendered:`${M}__chart--rendered`},Y=15,w="category",T="value",me="rgba(50, 50, 50, 1)",he=250,ue=500,fe=200,E=class extends j{constructor(){super(...arguments),this._direction=K(),this._prefersReducedMotion=G("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=ce}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[le(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,a=(e+t)%t;this.activeMediaInfoIndex=a}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,a=t+e;this._setContentElementMedia(a)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,a=this.values??{},i=this.formattedValues??{},r=this.fieldInfoMap??new Map;return e?.map(s=>{let n=s?.clone();if(!n)return null;if(n.title=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.title}),n.caption=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.caption}),n.altText=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let o=n.value;return this._setImageValue({value:o,formattedValues:i,layer:t}),o.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let o=n.value;return this._setChartValue({value:o,chartType:n.type,values:a,formattedValues:i,layer:t}),n}return null}).filter(s=>s!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:a,formattedValues:i,layer:r}=e,{linkURL:s,sourceURL:n}=a;if(n){let o=P(n,r);a.sourceURL=N({formattedValues:i,template:o,fieldInfoMap:t})}if(s){let o=P(s,r);a.linkURL=N({formattedValues:i,template:o,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:a,formattedValues:i,chartType:r,layer:s}=e,{popupTemplate:n,relatedInfos:o}=this,{fields:d,normalizeField:g}=t,m=s;if(t.fields=J(d,m),g&&(t.normalizeField=F(g,m)),!d.some(c=>!!(i[c]!=null||$(c)&&o?.size)))return;let l=n?.fieldInfos??[];t.series=[],d.forEach((c,u)=>{let h=t.colors?.[u];if($(c)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:l,fieldName:c,formattedValues:i,chartType:r,value:t,color:h})];return}let f=this._getChartOption({value:t,values:a,chartType:r,formattedValues:i,fieldName:c,fieldInfos:l,color:h});t.series.push(f)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:a,formattedValues:i,chartType:r,value:s,color:n}=e,o=[],d=X(a),g=d&&this.relatedInfos?.get(d.layerId);if(!g)return o;let{relatedFeatures:m,relation:l}=g;if(!l||!m)return o;let{cardinality:c}=l;return m.forEach(u=>{let h=u.attributes;h&&Object.keys(h).forEach(f=>{f===d.fieldName&&o.push(this._getChartOption({value:s,values:h,formattedValues:i,fieldName:a,chartType:r,relatedFieldName:f,hasMultipleRelatedFeatures:m?.length>1,fieldInfos:t,color:n}))})}),c&&(c==="one-to-many"||c==="many-to-many")?o:[o[0]]}_getTooltip({label:e,value:t,chartType:a}){return a==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:a,formattedValues:i,fieldName:r,relatedFieldName:s,fieldInfos:n,chartType:o,hasMultipleRelatedFeatures:d,color:g}=e,{layer:m,graphic:l}=this,c=this.fieldInfoMap??new Map,{normalizeField:u,tooltipField:h}=t,f=u?$(u)?a[X(u).fieldName]:a[u]:null,_=Q(r)&&i?.[r]!==void 0?i[r]:s&&a[s]!==void 0?a[s]:a[r]!==void 0?a[r]:i[r],I=_===void 0?null:_&&f&&typeof _=="number"&&typeof f=="number"?_/f:_,x=Z(n,r),p=F(r,m),A=(h&&i[h]!==void 0?i[h]:z({fieldInfo:x||new de({fieldName:p}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:l,layer:m}))??"",R=i[p]??"",U=I!=null?typeof I=="number"?I:Number(I):null;if($(r)){let S=c.get(r.toLowerCase()),ae=h?c.get(h.toLowerCase()):null,ie=S?.fieldName??r,k=d&&h?X(h).fieldName:ae?.fieldName??h,re=(d&&k?a[k]:i[k]??(S&&z({fieldInfo:S,layer:m,graphic:l}))??S?.fieldName??s)??"",ne=(d&&s?a[s]:i[ie])??"";return new ee({fieldName:r,tooltip:this._getTooltip({label:re,value:ne,chartType:o}),color:g,value:U})}return new ee({fieldName:r,tooltip:this._getTooltip({label:A,value:R,chartType:o}),color:g,value:U})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./W7USLEFU.js"),a=new Map;return e.forEach(i=>{i.color&&a.set(i,t(i.color.toCss(!0)))}),a}async _getRendererColors(){let{color:e}=await import("./W7USLEFU.js"),t=new Map,a=this._getRenderer(),i="default";if(!a)return t;let r=await se(a);return r.delete(i),Array.from(r.values()).every(s=>s?.length===1)&&Array.from(r.keys()).forEach(s=>{let n=r.get(s)?.[0]?.toCss(!0);n&&t.set(s,e(n))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:a}=await import("./YASN6Z3U.js").then(m=>m.default.then(e=>({createRoot:e}))),i=await a(e);this._chartRoot=i,this._renderChart({mediaInfo:t,root:i})}_handleMediaKeyup(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?he:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?ue:0}async _customizeChartTooltip(e,t="horizontal"){let{color:a}=await import("./W7USLEFU.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:a(me)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:fe})}async _createPieChart(e,t){let[{Tooltip:a},{PieChart:i,PieSeries:r}]=await Promise.all([import("./W7USLEFU.js"),import("./O7RIL42M.js")]),{mediaInfo:s,root:n}=e,{title:o}=s,d=5,g=s?.altText||s?.title||"",m=n.container.children.push(i.new(n,{role:"figure",ariaLabel:g,focusable:!0,paddingBottom:d,paddingTop:d,paddingLeft:d,paddingRight:d})),l=`{category}: {valuePercentTotal.formatNumber('0.00')}%
5
- ({value})`,c=a.new(n,{labelText:l}),u=m.series.push(r.new(n,{name:o,valueField:T,categoryField:w,tooltip:c}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:d}),this._customizeChartTooltip(c),u.slices.template.setAll({ariaLabel:l,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),m.appear(this._getChartAnimationMS()),m.root.dom.classList.toggle(v.mediaChartRendered,!0)}_getMinSeriesValue(e){let t=0;return e.forEach(a=>t=Math.min(a.value,t)),t}async _createColumnChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./W7USLEFU.js"),import("./HYVC26H4.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(l,{renderer:n.new(l,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(l,{renderer:o.new(l,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:x}));this._customizeChartTooltip(x),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarX",r.new(l,{orientation:"horizontal"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./W7USLEFU.js"),import("./HYVC26H4.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let f=e.yAxes.push(s.new(l,{renderer:o.new(l,{inversed:!0}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.xAxes.push(d.new(l,{renderer:n.new(l,{inside:!1,inversed:h==="rtl"}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryY}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:_,yAxis:f,valueXField:T,categoryYField:w,tooltip:x}));this._customizeChartTooltip(x,"vertical"),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarY",r.new(l,{orientation:"vertical"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,LineSeries:g}]=await Promise.all([import("./W7USLEFU.js"),import("./HYVC26H4.js")]),{root:m,mediaInfo:l}=t,{value:c,title:u}=l,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(m,{renderer:n.new(m,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(m,{renderer:o.new(m,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=a[0]?.lineSettings?.stroke,p=i.new(m,{getFillFromSprite:!x,labelText:I});x&&p.get("background")?.setAll({fill:x});let A=e.series.push(g.new(m,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:p}));A.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(p,"vertical"),c.series.length>Y&&e.set("scrollbarX",r.new(m,{orientation:"horizontal"})),f.data.setAll(a),A.data.setAll(a),A.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:a,XYCursor:i}=await import("./HYVC26H4.js"),{root:r,mediaInfo:s}=e,{type:n}=s,o=s?.altText||s?.title||"",d=r.container.children.push(a.new(r,{role:"figure",ariaLabel:o,focusable:!0,panX:!0,panY:!0}));d.set("cursor",i.new(r,{})),n==="column-chart"&&await this._createColumnChart(d,e,t),n==="bar-chart"&&await this._createBarChart(d,e,t),n==="line-chart"&&await this._createLineChart(d,e,t),d.root.dom.classList.toggle(v.mediaChartRendered,!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:a}=e,i=t*6e4;this._updateMediaInfoTimestamp(a.sourceURL);let r=window.setInterval(()=>{this._updateMediaInfoTimestamp(a.sourceURL)},i);this._refreshTimer=r}_getImageSource(e,t){let a=e.includes("?")?"&":"?",[i,r=""]=e.split("#");return`${i}${a}timestamp=${t}${r?"#":""}${r}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return C`<div class=${y(v.base)} @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,a=this._renderMediaText();return e?C`<div class=${y(v.mediaContainer)}>${this._renderMediaInfo()}<div class=${y(v.mediaNavigation)}>${a}${e>1?C`<div class=${y(v.mediaPagination)}>${this._renderMediaPageButton("previous")}<span class=${y(v.mediaPaginationText)}>${oe(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?C`<div class=${y(v.mediaItemTitle)} .innerHTML=${te.sanitize(e.title)??""}></div>`:null,a=e?.caption?C`<div class=${y(v.mediaItemCaption)} .innerHTML=${te.sanitize(e.caption)??""}></div>`:null;return t||a?C`<div class=${y(v.mediaItemText)}>${t}${a}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:a,refreshInterval:i,altText:r,title:s}=e,{sourceURL:n,linkURL:o}=a,d=q(o??void 0)?"_blank":"_self",g=d==="_blank"?"noreferrer":"",m=i?t:null,l=m?m.sourceURL:n,c=C`<img alt=${(r||s)??b} src=${l??void 0??b}>`;return(o?C`<a href=${o??b} rel=${g??b} target=${d} title=${s??b}>${c}</a>`:null)??c}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:a}=this;return W(`media-${e.type}-${t}-${a}`,C`<div class=${y(v.mediaChart)} ${H(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?C`<div class=${y(v.mediaItemContainer)}><div class=${y(v.mediaItem)}>${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",a=t?this.messages?.previous??"":this.messages?.next??"",i=t?"chevron-left":"chevron-right",r=t?this.previous:this.next;return C`<button .ariaLabel=${a} class=${y(v.mediaPaginationButton)} @click=${r} tabindex=0 title=${a??b} type=button><calcite-icon flip-rtl class=${y(v.mediaPaginationIcon)} .icon=${i} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:a}=e,{value:i,type:r}=a,[{default:s},{default:n},{default:o},{esriChartColorSet:d},{ColorSet:g,Theme:m}]=await Promise.all([import("./7VKDS2ZF.js"),import("./KTZAMBRK.js"),import("./GZJZZOKY.js"),import("./PX6SVMQH.js"),import("./W7USLEFU.js")]),l=m.new(t);l.rule("ColorSet").set("colors",d),l.rule("ColorSet").set("reuse",!0);let c=[o.new(t),l];O(this.el)==="dark"&&c.push(n.new(t)),this._canAnimateChart()&&c.push(s.new(t)),t.setThemes(c);let u=await this._getRendererColors(),h=await this._getSeriesColors(i.series),f=g.new(t,{}),_=h.get(i.series[0]),I=_?{lineSettings:{stroke:_}}:void 0,x=i.series.map((p,A)=>{let R=h.get(p)||u.get(p.fieldName)||f.getIndex(A);return{[w]:p.tooltip,[T]:p.value,columnSettings:{fill:R,stroke:R},...I}}).filter(p=>r==="pie-chart"?p.value!=null&&p.value>0:!0);r==="pie-chart"?this._createPieChart(e,x):this._createXYChart(e,x)}};D("arcgis-feature-media",E);return E},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a)
3
+ v5.0.0-next.112 */
4
+ import a from"./QLWXRLT4.js";import{a as W}from"./W4VWTV5O.js";import{d as G,e as K}from"./RIS6P2XR.js";import"./2XQJJYPB.js";import{e as O}from"./YGY35OTX.js";import{M as H,N as j,O as y,Q as b,T as D,a as B,b as C}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([{getColorsFromRenderer:se},{substitute:oe},{watch:le},de,ee,{renderingSanitizer:te},{f:$,g:q,h:F,i:J,j:Q,k:Z,m:z,o:N,p:P,q:L}])=>{var ce=B`.arcgis-feature-media__container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.arcgis-feature-media__container .arcgis-feature-media__pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.arcgis-feature-media__container .arcgis-feature-media__pagination-button:hover,.arcgis-feature-media__container .arcgis-feature-media__pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.arcgis-feature-media__item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.arcgis-feature-media__item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.arcgis-feature-media__item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.arcgis-feature-media__item-text{margin-inline-end:var(--calcite-spacing-xs)}.arcgis-feature-media__pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.arcgis-feature-media__pagination:only-child{margin-inline-start:auto}.arcgis-feature-media__pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.arcgis-feature-media__item-container{flex:0 1 auto;width:100%}.arcgis-feature-media__item-container img{max-width:100%}.arcgis-feature-media__item-container img[src$=".SVG"],.arcgis-feature-media__item-container img[src$=".svg"]{width:100%}.arcgis-feature-media__chart{width:100%;height:155px}`;function X(V){if(!$(V))return null;let[e,t]=V.split("/").slice(1);return{layerId:e,fieldName:t}}var M="arcgis-feature-media",v={base:M,mediaContainer:`${M}__container`,mediaItemContainer:`${M}__item-container`,mediaItem:`${M}__item`,mediaItemText:`${M}__item-text`,mediaItemTitle:`${M}__item-title`,mediaItemCaption:`${M}__item-caption`,mediaNavigation:`${M}__item-navigation`,mediaPagination:`${M}__pagination`,mediaPaginationText:`${M}__pagination-text`,mediaChart:`${M}__chart`,mediaPaginationButton:`${M}__pagination-button`,mediaPaginationIcon:`${M}__pagination-icon`,mediaChartRendered:`${M}__chart--rendered`},Y=15,w="category",T="value",me="rgba(50, 50, 50, 1)",he=250,ue=500,fe=200,E=class extends j{constructor(){super(...arguments),this._direction=K(),this._prefersReducedMotion=G("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=ce}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[le(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,a=(e+t)%t;this.activeMediaInfoIndex=a}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,a=t+e;this._setContentElementMedia(a)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,a=this.values??{},i=this.formattedValues??{},r=this.fieldInfoMap??new Map;return e?.map(s=>{let n=s?.clone();if(!n)return null;if(n.title=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.title}),n.caption=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.caption}),n.altText=L({values:a,fieldInfoMap:r,globalValues:i,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let o=n.value;return this._setImageValue({value:o,formattedValues:i,layer:t}),o.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let o=n.value;return this._setChartValue({value:o,chartType:n.type,values:a,formattedValues:i,layer:t}),n}return null}).filter(s=>s!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:a,formattedValues:i,layer:r}=e,{linkURL:s,sourceURL:n}=a;if(n){let o=P(n,r);a.sourceURL=N({formattedValues:i,template:o,fieldInfoMap:t})}if(s){let o=P(s,r);a.linkURL=N({formattedValues:i,template:o,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:a,formattedValues:i,chartType:r,layer:s}=e,{popupTemplate:n,relatedInfos:o}=this,{fields:d,normalizeField:g}=t,m=s;if(t.fields=J(d,m),g&&(t.normalizeField=F(g,m)),!d.some(c=>!!(i[c]!=null||$(c)&&o?.size)))return;let l=n?.fieldInfos??[];t.series=[],d.forEach((c,u)=>{let h=t.colors?.[u];if($(c)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:l,fieldName:c,formattedValues:i,chartType:r,value:t,color:h})];return}let f=this._getChartOption({value:t,values:a,chartType:r,formattedValues:i,fieldName:c,fieldInfos:l,color:h});t.series.push(f)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:a,formattedValues:i,chartType:r,value:s,color:n}=e,o=[],d=X(a),g=d&&this.relatedInfos?.get(d.layerId);if(!g)return o;let{relatedFeatures:m,relation:l}=g;if(!l||!m)return o;let{cardinality:c}=l;return m.forEach(u=>{let h=u.attributes;h&&Object.keys(h).forEach(f=>{f===d.fieldName&&o.push(this._getChartOption({value:s,values:h,formattedValues:i,fieldName:a,chartType:r,relatedFieldName:f,hasMultipleRelatedFeatures:m?.length>1,fieldInfos:t,color:n}))})}),c&&(c==="one-to-many"||c==="many-to-many")?o:[o[0]]}_getTooltip({label:e,value:t,chartType:a}){return a==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:a,formattedValues:i,fieldName:r,relatedFieldName:s,fieldInfos:n,chartType:o,hasMultipleRelatedFeatures:d,color:g}=e,{layer:m,graphic:l}=this,c=this.fieldInfoMap??new Map,{normalizeField:u,tooltipField:h}=t,f=u?$(u)?a[X(u).fieldName]:a[u]:null,_=Q(r)&&i?.[r]!==void 0?i[r]:s&&a[s]!==void 0?a[s]:a[r]!==void 0?a[r]:i[r],I=_===void 0?null:_&&f&&typeof _=="number"&&typeof f=="number"?_/f:_,x=Z(n,r),p=F(r,m),A=(h&&i[h]!==void 0?i[h]:z({fieldInfo:x||new de({fieldName:p}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:l,layer:m}))??"",R=i[p]??"",U=I!=null?typeof I=="number"?I:Number(I):null;if($(r)){let S=c.get(r.toLowerCase()),ae=h?c.get(h.toLowerCase()):null,ie=S?.fieldName??r,k=d&&h?X(h).fieldName:ae?.fieldName??h,re=(d&&k?a[k]:i[k]??(S&&z({fieldInfo:S,layer:m,graphic:l}))??S?.fieldName??s)??"",ne=(d&&s?a[s]:i[ie])??"";return new ee({fieldName:r,tooltip:this._getTooltip({label:re,value:ne,chartType:o}),color:g,value:U})}return new ee({fieldName:r,tooltip:this._getTooltip({label:A,value:R,chartType:o}),color:g,value:U})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./AM2G5MLW.js"),a=new Map;return e.forEach(i=>{i.color&&a.set(i,t(i.color.toCss(!0)))}),a}async _getRendererColors(){let{color:e}=await import("./AM2G5MLW.js"),t=new Map,a=this._getRenderer(),i="default";if(!a)return t;let r=await se(a);return r.delete(i),Array.from(r.values()).every(s=>s?.length===1)&&Array.from(r.keys()).forEach(s=>{let n=r.get(s)?.[0]?.toCss(!0);n&&t.set(s,e(n))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:a}=await import("./4OSDK2AV.js").then(m=>m.default.then(e=>({createRoot:e}))),i=await a(e);this._chartRoot=i,this._renderChart({mediaInfo:t,root:i})}_handleMediaKeyup(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this.previous()),t==="ArrowRight"&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?he:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?ue:0}async _customizeChartTooltip(e,t="horizontal"){let{color:a}=await import("./AM2G5MLW.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:a(me)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:fe})}async _createPieChart(e,t){let[{Tooltip:a},{PieChart:i,PieSeries:r}]=await Promise.all([import("./AM2G5MLW.js"),import("./DTLHQTUZ.js")]),{mediaInfo:s,root:n}=e,{title:o}=s,d=5,g=s?.altText||s?.title||"",m=n.container.children.push(i.new(n,{role:"figure",ariaLabel:g,focusable:!0,paddingBottom:d,paddingTop:d,paddingLeft:d,paddingRight:d})),l=`{category}: {valuePercentTotal.formatNumber('0.00')}%
5
+ ({value})`,c=a.new(n,{labelText:l}),u=m.series.push(r.new(n,{name:o,valueField:T,categoryField:w,tooltip:c}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:d}),this._customizeChartTooltip(c),u.slices.template.setAll({ariaLabel:l,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),m.appear(this._getChartAnimationMS()),m.root.dom.classList.toggle(v.mediaChartRendered,!0)}_getMinSeriesValue(e){let t=0;return e.forEach(a=>t=Math.min(a.value,t)),t}async _createColumnChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./AM2G5MLW.js"),import("./IYRMQI4G.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(l,{renderer:n.new(l,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(l,{renderer:o.new(l,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:x}));this._customizeChartTooltip(x),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarX",r.new(l,{orientation:"horizontal"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,ColumnSeries:g}]=await Promise.all([import("./AM2G5MLW.js"),import("./IYRMQI4G.js")]),{mediaInfo:m,root:l}=t,{value:c,title:u}=m,{_direction:h}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let f=e.yAxes.push(s.new(l,{renderer:o.new(l,{inversed:!0}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.xAxes.push(d.new(l,{renderer:n.new(l,{inside:!1,inversed:h==="rtl"}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryY}",x=i.new(l,{labelText:I}),p=e.series.push(g.new(l,{name:u,xAxis:_,yAxis:f,valueXField:T,categoryYField:w,tooltip:x}));this._customizeChartTooltip(x,"vertical"),p.columns.template.setAll({ariaLabel:I,focusable:!0,templateField:"columnSettings"}),c.series.length>Y&&e.set("scrollbarY",r.new(l,{orientation:"vertical"})),f.data.setAll(a),p.data.setAll(a),p.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,a){let[{Tooltip:i,Scrollbar:r},{CategoryAxis:s,AxisRendererX:n,AxisRendererY:o,ValueAxis:d,LineSeries:g}]=await Promise.all([import("./AM2G5MLW.js"),import("./IYRMQI4G.js")]),{root:m,mediaInfo:l}=t,{value:c,title:u}=l,{_direction:h}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let f=e.xAxes.push(s.new(m,{renderer:n.new(m,{inversed:h==="rtl"}),categoryField:w}));f.get("renderer").labels.template.setAll({forceHidden:!0});let _=e.yAxes.push(d.new(m,{renderer:o.new(m,{inside:!1}),min:this._getMinSeriesValue(c.series)}));_.get("renderer").labels.template.setAll({direction:h});let I="{categoryX}",x=a[0]?.lineSettings?.stroke,p=i.new(m,{getFillFromSprite:!x,labelText:I});x&&p.get("background")?.setAll({fill:x});let A=e.series.push(g.new(m,{name:u,xAxis:f,yAxis:_,valueYField:T,categoryXField:w,tooltip:p}));A.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(p,"vertical"),c.series.length>Y&&e.set("scrollbarX",r.new(m,{orientation:"horizontal"})),f.data.setAll(a),A.data.setAll(a),A.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:a,XYCursor:i}=await import("./IYRMQI4G.js"),{root:r,mediaInfo:s}=e,{type:n}=s,o=s?.altText||s?.title||"",d=r.container.children.push(a.new(r,{role:"figure",ariaLabel:o,focusable:!0,panX:!0,panY:!0}));d.set("cursor",i.new(r,{})),n==="column-chart"&&await this._createColumnChart(d,e,t),n==="bar-chart"&&await this._createBarChart(d,e,t),n==="line-chart"&&await this._createLineChart(d,e,t),d.root.dom.classList.toggle(v.mediaChartRendered,!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:a}=e,i=t*6e4;this._updateMediaInfoTimestamp(a.sourceURL);let r=window.setInterval(()=>{this._updateMediaInfoTimestamp(a.sourceURL)},i);this._refreshTimer=r}_getImageSource(e,t){let a=e.includes("?")?"&":"?",[i,r=""]=e.split("#");return`${i}${a}timestamp=${t}${r?"#":""}${r}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return C`<div class=${y(v.base)} @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,a=this._renderMediaText();return e?C`<div class=${y(v.mediaContainer)}>${this._renderMediaInfo()}<div class=${y(v.mediaNavigation)}>${a}${e>1?C`<div class=${y(v.mediaPagination)}>${this._renderMediaPageButton("previous")}<span class=${y(v.mediaPaginationText)}>${oe(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?C`<div class=${y(v.mediaItemTitle)} .innerHTML=${te.sanitize(e.title)??""}></div>`:null,a=e?.caption?C`<div class=${y(v.mediaItemCaption)} .innerHTML=${te.sanitize(e.caption)??""}></div>`:null;return t||a?C`<div class=${y(v.mediaItemText)}>${t}${a}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:a,refreshInterval:i,altText:r,title:s}=e,{sourceURL:n,linkURL:o}=a,d=q(o??void 0)?"_blank":"_self",g=d==="_blank"?"noreferrer":"",m=i?t:null,l=m?m.sourceURL:n,c=C`<img alt=${(r||s)??b} src=${l??void 0??b}>`;return(o?C`<a href=${o??b} rel=${g??b} target=${d} title=${s??b}>${c}</a>`:null)??c}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:a}=this;return W(`media-${e.type}-${t}-${a}`,C`<div class=${y(v.mediaChart)} ${H(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?C`<div class=${y(v.mediaItemContainer)}><div class=${y(v.mediaItem)}>${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",a=t?this.messages?.previous??"":this.messages?.next??"",i=t?"chevron-left":"chevron-right",r=t?this.previous:this.next;return C`<button .ariaLabel=${a} class=${y(v.mediaPaginationButton)} @click=${r} tabindex=0 title=${a??b} type=button><calcite-icon flip-rtl class=${y(v.mediaPaginationIcon)} .icon=${i} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:a}=e,{value:i,type:r}=a,[{default:s},{default:n},{default:o},{esriChartColorSet:d},{ColorSet:g,Theme:m}]=await Promise.all([import("./BFTRJC4C.js"),import("./IRZUIF6J.js"),import("./4SNTXNE5.js"),import("./44N7E3GS.js"),import("./AM2G5MLW.js")]),l=m.new(t);l.rule("ColorSet").set("colors",d),l.rule("ColorSet").set("reuse",!0);let c=[o.new(t),l];O(this.el)==="dark"&&c.push(n.new(t)),this._canAnimateChart()&&c.push(s.new(t)),t.setThemes(c);let u=await this._getRendererColors(),h=await this._getSeriesColors(i.series),f=g.new(t,{}),_=h.get(i.series[0]),I=_?{lineSettings:{stroke:_}}:void 0,x=i.series.map((p,A)=>{let R=h.get(p)||u.get(p.fieldName)||f.getIndex(A);return{[w]:p.tooltip,[T]:p.value,columnSettings:{fill:R,stroke:R},...I}}).filter(p=>r==="pie-chart"?p.value!=null&&p.value>0:!0);r==="pie-chart"?this._createPieChart(e,x):this._createXYChart(e,x)}};D("arcgis-feature-media",E);return E},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import b from"./G37J3VKW.js";import a from"./X4IDECRM.js";import{e as F}from"./DG2NGS4U.js";import"./PJ36QTY2.js";import{b as c}from"./GNBPPVLP.js";import{N as W,O as r,P as _,Q as t,T as A,a as z,b as f,c as H}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([{getBoundingBox:P,computeBBox:Q,getTransformMatrix:D},,{a:U,b:X,c:Y,d:j}])=>{var V=z`.arcgis-relationship-ramp--diamond__container{display:flex;font-size:var(--calcite-font-size-sm)}.arcgis-relationship-ramp--diamond__left-column{align-self:center;padding-right:5px;max-width:85px;text-align:right}.arcgis-relationship-ramp--diamond__right-column{align-self:center;padding-left:5px;max-width:85px;text-align:left}.arcgis-relationship-ramp--diamond__middle-column{display:flex;flex-direction:column;text-align:center}.arcgis-relationship-ramp--diamond__middle-column--label{align-self:center;max-width:85px}.arcgis-relationship-ramp--diamond__middle-column--ramp{width:85px;height:85px}.arcgis-relationship-ramp--square__table{display:table;font-size:var(--calcite-font-size-sm)}.arcgis-relationship-ramp--square__table-row{display:table-row}.arcgis-relationship-ramp--square__table-cell{display:table-cell}.arcgis-relationship-ramp--square__table-label{max-width:95px}.arcgis-relationship-ramp--square__table-label--left-bottom{vertical-align:bottom;text-align:left}.arcgis-relationship-ramp--square__table-label--right-bottom{vertical-align:bottom;text-align:right}.arcgis-relationship-ramp--square__table-label--left-top{vertical-align:top;text-align:left}.arcgis-relationship-ramp--square__table-label--right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",a={diamondContainer:"arcgis-relationship-ramp--diamond__container",diamondLeftCol:"arcgis-relationship-ramp--diamond__left-column",diamondRightCol:"arcgis-relationship-ramp--diamond__right-column",diamondMidCol:"arcgis-relationship-ramp--diamond__middle-column",diamondMidColLabel:"arcgis-relationship-ramp--diamond__middle-column--label",diamondMidColRamp:"arcgis-relationship-ramp--diamond__middle-column--ramp",squareTable:"arcgis-relationship-ramp--square__table",squareTableRow:"arcgis-relationship-ramp--square__table-row",squareTableCell:"arcgis-relationship-ramp--square__table-cell",squareTableLabel:"arcgis-relationship-ramp--square__table-label",squareTableLabelLeftBottom:"arcgis-relationship-ramp--square__table-label--left-bottom",squareTableLabelRightBottom:"arcgis-relationship-ramp--square__table-label--right-bottom",squareTableLabelLeftTop:"arcgis-relationship-ramp--square__table-label--left-top",squareTableLabelRightTop:"arcgis-relationship-ramp--square__table-label--right-top"},$=class extends W{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=V}_getLineMarkers(m,s){let e="arrowStart",o="arrowEnd",n=m==="left",i={markerStart:null,markerEnd:null};switch(s){case"HL":n?i.markerStart=`url(#${o})`:i.markerEnd=`url(#${e})`;break;case"LL":i.markerStart=`url(#${o})`;break;case"LH":n?i.markerEnd=`url(#${e})`:i.markerStart=`url(#${o})`;break;default:i.markerEnd=`url(#${e})`;break}return i}render(){let m=this.legendElement,{focus:s,labels:e}=m,o=!!s,n=this._renderRamp(m),i={justifyContent:"center"},l=this._direction==="rtl";return o?f`<div class=${r(a.diamondContainer)} style=${_(i)}><div class=${r(a.diamondLeftCol)}>${l?e.right:e.left}</div><div class=${r(a.diamondMidCol)}><div class=${r(a.diamondMidColLabel)}>${e.top}</div>${n}<div class=${r(a.diamondMidColLabel)}>${e.bottom}</div></div><div class=${r(a.diamondRightCol)}>${l?e.left:e.right}</div></div>`:f`<div class=${r(a.squareTable)}><div class=${r(a.squareTableRow)}><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelRightBottom))}>${l?e.top:e.left}</div><div class=${r(a.squareTableCell)}></div><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelLeftBottom))}>${l?e.left:e.top}</div></div><div class=${r(a.squareTableRow)}><div class=${r(a.squareTableCell)}></div>${n}<div class=${r(a.squareTableCell)}></div></div><div class=${r(a.squareTableRow)}><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelRightTop))}>${l?e.right:e.bottom}</div><div class=${r(a.squareTableCell)}></div><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelLeftTop))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(m){let{focus:s,numClasses:e,colors:o,rotation:n}=m,i=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,d=60,g=!!s,p=Math.sqrt(d**2+d**2)+(g?0:5),v=[],q=[],k=[],h=d/e;for(let b=0;b<e;b++){let K=b*h;for(let u=0;u<e;u++){let N=u*h,E=X(o[b][u]),O=Y(null),M={type:"rect",x:N,y:K,width:h,height:h},S=U(E);S&&v.push(S);let B=j(M,E.fill,O,null);B&&q.push(B),k.push(P(M))}}let x=15,T=15,L=10,w;g||(w="margin: -15px -15px -18px -15px");let C=this._getLineMarkers("left",s),y=this._getLineMarkers("right",s),R=Q(k),G=D(R,p,p,0,!1,n,!1),I=D(R,p,p,0,!1,g?-45:null,!1),J={filter:this.cssEffectFilter,opacity:i==null?"":`${i}`};return f`<div class=${r(g?a.diamondMidColRamp:a.squareTableCell)} style=${_(J)}><svg .ariaLabel=${l} height=${p??t} role=img style=${_(w)} width=${p??t} xmlns=${Z}>${H`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${v}</defs><g transform=${G??t}>${q}</g><g transform=${I??t}><line fill=none marker-end=${C.markerEnd??void 0??t} marker-start=${C.markerStart??void 0??t} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${d-x} y2=${x} /><line fill=none marker-end=${y.markerEnd??void 0??t} marker-start=${y.markerStart??void 0??t} stroke=#555555 stroke-width=1 x1=${T} x2=${d-T} y1=${d+L} y2=${d+L} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",$);return $},"applications/Components/svgUtils",a,b)
3
+ v5.0.0-next.112 */
4
+ import b from"./B3BV37T5.js";import a from"./LKERPBBW.js";import{e as F}from"./RIS6P2XR.js";import"./2XQJJYPB.js";import{b as c}from"./YGY35OTX.js";import{N as W,O as r,P as _,Q as t,T as A,a as z,b as f,c as H}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([{getBoundingBox:P,computeBBox:Q,getTransformMatrix:D},,{a:U,b:X,c:Y,d:j}])=>{var V=z`.arcgis-relationship-ramp--diamond__container{display:flex;font-size:var(--calcite-font-size-sm)}.arcgis-relationship-ramp--diamond__left-column{align-self:center;padding-right:5px;max-width:85px;text-align:right}.arcgis-relationship-ramp--diamond__right-column{align-self:center;padding-left:5px;max-width:85px;text-align:left}.arcgis-relationship-ramp--diamond__middle-column{display:flex;flex-direction:column;text-align:center}.arcgis-relationship-ramp--diamond__middle-column--label{align-self:center;max-width:85px}.arcgis-relationship-ramp--diamond__middle-column--ramp{width:85px;height:85px}.arcgis-relationship-ramp--square__table{display:table;font-size:var(--calcite-font-size-sm)}.arcgis-relationship-ramp--square__table-row{display:table-row}.arcgis-relationship-ramp--square__table-cell{display:table-cell}.arcgis-relationship-ramp--square__table-label{max-width:95px}.arcgis-relationship-ramp--square__table-label--left-bottom{vertical-align:bottom;text-align:left}.arcgis-relationship-ramp--square__table-label--right-bottom{vertical-align:bottom;text-align:right}.arcgis-relationship-ramp--square__table-label--left-top{vertical-align:top;text-align:left}.arcgis-relationship-ramp--square__table-label--right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",a={diamondContainer:"arcgis-relationship-ramp--diamond__container",diamondLeftCol:"arcgis-relationship-ramp--diamond__left-column",diamondRightCol:"arcgis-relationship-ramp--diamond__right-column",diamondMidCol:"arcgis-relationship-ramp--diamond__middle-column",diamondMidColLabel:"arcgis-relationship-ramp--diamond__middle-column--label",diamondMidColRamp:"arcgis-relationship-ramp--diamond__middle-column--ramp",squareTable:"arcgis-relationship-ramp--square__table",squareTableRow:"arcgis-relationship-ramp--square__table-row",squareTableCell:"arcgis-relationship-ramp--square__table-cell",squareTableLabel:"arcgis-relationship-ramp--square__table-label",squareTableLabelLeftBottom:"arcgis-relationship-ramp--square__table-label--left-bottom",squareTableLabelRightBottom:"arcgis-relationship-ramp--square__table-label--right-bottom",squareTableLabelLeftTop:"arcgis-relationship-ramp--square__table-label--left-top",squareTableLabelRightTop:"arcgis-relationship-ramp--square__table-label--right-top"},$=class extends W{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=V}_getLineMarkers(m,s){let e="arrowStart",o="arrowEnd",n=m==="left",i={markerStart:null,markerEnd:null};switch(s){case"HL":n?i.markerStart=`url(#${o})`:i.markerEnd=`url(#${e})`;break;case"LL":i.markerStart=`url(#${o})`;break;case"LH":n?i.markerEnd=`url(#${e})`:i.markerStart=`url(#${o})`;break;default:i.markerEnd=`url(#${e})`;break}return i}render(){let m=this.legendElement,{focus:s,labels:e}=m,o=!!s,n=this._renderRamp(m),i={justifyContent:"center"},l=this._direction==="rtl";return o?f`<div class=${r(a.diamondContainer)} style=${_(i)}><div class=${r(a.diamondLeftCol)}>${l?e.right:e.left}</div><div class=${r(a.diamondMidCol)}><div class=${r(a.diamondMidColLabel)}>${e.top}</div>${n}<div class=${r(a.diamondMidColLabel)}>${e.bottom}</div></div><div class=${r(a.diamondRightCol)}>${l?e.left:e.right}</div></div>`:f`<div class=${r(a.squareTable)}><div class=${r(a.squareTableRow)}><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelRightBottom))}>${l?e.top:e.left}</div><div class=${r(a.squareTableCell)}></div><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelLeftBottom))}>${l?e.left:e.top}</div></div><div class=${r(a.squareTableRow)}><div class=${r(a.squareTableCell)}></div>${n}<div class=${r(a.squareTableCell)}></div></div><div class=${r(a.squareTableRow)}><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelRightTop))}>${l?e.right:e.bottom}</div><div class=${r(a.squareTableCell)}></div><div class=${r(c(a.squareTableCell,a.squareTableLabel,a.squareTableLabelLeftTop))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(m){let{focus:s,numClasses:e,colors:o,rotation:n}=m,i=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,d=60,g=!!s,p=Math.sqrt(d**2+d**2)+(g?0:5),v=[],q=[],k=[],h=d/e;for(let b=0;b<e;b++){let K=b*h;for(let u=0;u<e;u++){let N=u*h,E=X(o[b][u]),O=Y(null),M={type:"rect",x:N,y:K,width:h,height:h},S=U(E);S&&v.push(S);let B=j(M,E.fill,O,null);B&&q.push(B),k.push(P(M))}}let x=15,T=15,L=10,w;g||(w="margin: -15px -15px -18px -15px");let C=this._getLineMarkers("left",s),y=this._getLineMarkers("right",s),R=Q(k),G=D(R,p,p,0,!1,n,!1),I=D(R,p,p,0,!1,g?-45:null,!1),J={filter:this.cssEffectFilter,opacity:i==null?"":`${i}`};return f`<div class=${r(g?a.diamondMidColRamp:a.squareTableCell)} style=${_(J)}><svg .ariaLabel=${l} height=${p??t} role=img style=${_(w)} width=${p??t} xmlns=${Z}>${H`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${v}</defs><g transform=${G??t}>${q}</g><g transform=${I??t}><line fill=none marker-end=${C.markerEnd??void 0??t} marker-start=${C.markerStart??void 0??t} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${d-x} y2=${x} /><line fill=none marker-end=${y.markerEnd??void 0??t} marker-start=${y.markerStart??void 0??t} stroke=#555555 stroke-width=1 x1=${T} x2=${d-T} y1=${d+L} y2=${d+L} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",$);return $},"applications/Components/svgUtils",a,b)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import{a as m}from"./ZKB4YZNZ.js";import{H as _,K as T,L as A,f as L,g as y,m as U,o as I}from"./GZCBIJGX.js";import{a as q}from"./ULE6CJOD.js";var W={};q(W,{StyleRule:()=>P,StyleSheet:()=>O,addClass:()=>ge,addEventListener:()=>N,addSpacing:()=>Pe,alternativeColor:()=>R,blur:()=>ne,brighten:()=>F,capitalizeFirst:()=>Le,cleanFormat:()=>Se,contains:()=>k,decimalPlaces:()=>we,escapeForRgex:()=>Ee,focus:()=>oe,get12Hours:()=>Fe,getBrightnessStep:()=>Ae,getDayFromWeek:()=>Me,getEventKey:()=>pe,getEventTarget:()=>ce,getFormat:()=>ve,getLightnessStep:()=>g,getMonthWeek:()=>Ce,getPointerId:()=>re,getRendererEvent:()=>ie,getSafeResolution:()=>me,getShadowRoot:()=>he,getStyle:()=>ae,getTimeZone:()=>$e,getTimezoneOffset:()=>Re,getWeek:()=>D,getWeekYear:()=>De,getYearDay:()=>je,hslToHsv:()=>Ie,hslToRgb:()=>x,hsvToHsl:()=>Ue,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>le,isTouchEvent:()=>se,lighten:()=>M,mergeTags:()=>He,onZoom:()=>te,padString:()=>b,plainText:()=>Te,ready:()=>X,relativeToValue:()=>_e,removeClass:()=>be,removeElement:()=>ee,rgbToHsl:()=>v,sameBounds:()=>Ne,saturate:()=>$,setInteractive:()=>fe,setStyle:()=>ue,splitString:()=>Oe,stripTags:()=>Y,supports:()=>w,trim:()=>j,trimLeft:()=>z,trimRight:()=>G,truncateTextWithEllipsis:()=>xe});function X(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function N(e,t,r,n){return e.addEventListener(t,r,n||!1),new A(()=>{e.removeEventListener(t,r,n||!1)})}function te(e){return N(window,"resize",t=>{e()})}function w(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function re(e){return e.pointerId||0}function ne(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function oe(e){e&&e.focus()}function ie(e){if(w("pointerevents"))return e;if(w("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(w("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function se(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function ue(e,t,r){e.style[t]=r}function ae(e,t){return e.style[t]}function ce(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function k(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function le(e,t){return e.target&&k(t.root.dom,e.target)}function fe(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function pe(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function he(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var E;function de(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function ye(e,t=""){if(e===null){if(E==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function H(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var P=class extends T{constructor(t,r,n,o=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=ye(t,o);try{this._rule=H(this._root,r)}catch{this._rule=H(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=U(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},O=class extends T{constructor(t,r,n=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=de(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function ge(e,t){if(e)if(e.classList){let r=t.split(" ");I(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function be(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function me(){return B()?1:void 0}function _e(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function we(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function z(e){return e.replace(/^[\s]*/,"")}function G(e){return e.replace(/[\s]*$/,"")}function j(e){return z(G(e))}function xe(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+"...":e.substring(0,t)+n}else return e}function ve(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Se(e){return e.replace(/\/(date|number|duration)$/i,"")}function Y(e){return e&&e.replace(/<[^>]*>/g,"")}function Te(e){return e&&Y((""+e).replace(/[\n\r]+/g,". "))}function Ee(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Pe(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Oe(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function je(e,t=!1){let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function D(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function De(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function Ce(e,t=!1){let r=D(new Date(e.getFullYear(),e.getMonth(),1),t),n=D(e,t);return n==1&&(n=53),n-r+1}function Me(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Fe(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function $e(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let u=e.toLocaleString("en-US",{timeZone:o}),c=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return j(c.substr(u.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),j(s)}function Re(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;t=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-t)/a+2;break;case n:s=(t-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function Ue(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function Ie(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function M(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+g(e.r,t))),g:Math.max(0,Math.min(255,e.g+g(e.g,t))),b:Math.max(0,Math.min(255,e.b+g(e.b,t))),a:e.a}}function g(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function F(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=g(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ae(e,t){return Math.round(255*t)}function C(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function $(e,t){if(e===void 0||t==1)return e;let r=v(e);return r.s=t,x(r)}function R(e,t={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=t,o=r;return C(r)&&(n=r,o=t),C(e)?o:n}function He(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ne(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function Z(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}function Je(e){return Z(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function p(e,t,r){return t+e*(r-t)}function ke(e,t,r){return e>=1?r:t}function Be(e,t,r){return new m(p(e,t.percent,r.percent))}function ze(e,t,r){return d.interpolate(e,t,r)}function Qe(e,t){return typeof e=="number"&&typeof t=="number"?p:e instanceof m&&t instanceof m?Be:e instanceof d&&t instanceof d?ze:ke}var V;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(V||(V={}));function K(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function Ge(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return K(r)}function tt(e){return d.fromAny(e)}var d=class e{constructor(t){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return v({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=x({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(K(t))}static fromCSS(t){return new e(Ge(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(p(t,i.h,s.h),p(t,i.s,s.s),p(t,i.l,s.l))}else return e.fromRGB(p(t,r.r,n.r),p(t,r.g,n.g),p(t,r.b,n.b))}static lighten(t,r){let n=M({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{Z as a,X as b,ee as c,N as d,te as e,w as f,re as g,ne as h,oe as i,ie as j,se as k,ue as l,ae as m,ce as n,le as o,fe as p,pe as q,he as r,P as s,me as t,_e as u,we as v,b as w,j as x,xe as y,ve as z,Se as A,Y as B,Ee as C,Oe as D,je as E,D as F,De as G,Ce as H,Me as I,Fe as J,$e as K,Re as L,Le as M,He as N,Ne as O,W as P,tt as Q,d as R,Je as S,Be as T,Qe as U,V};
3
+ v5.0.0-next.112 */
4
+ import{a as m}from"./RN3J7V4V.js";import{H as _,K as T,L as A,f as L,g as y,m as U,o as I}from"./WWFXN7YB.js";import{a as q}from"./25TVKQGR.js";var W={};q(W,{StyleRule:()=>P,StyleSheet:()=>O,addClass:()=>ge,addEventListener:()=>N,addSpacing:()=>Pe,alternativeColor:()=>R,blur:()=>ne,brighten:()=>F,capitalizeFirst:()=>Le,cleanFormat:()=>Se,contains:()=>k,decimalPlaces:()=>we,escapeForRgex:()=>Ee,focus:()=>oe,get12Hours:()=>Fe,getBrightnessStep:()=>Ae,getDayFromWeek:()=>Me,getEventKey:()=>pe,getEventTarget:()=>ce,getFormat:()=>ve,getLightnessStep:()=>g,getMonthWeek:()=>Ce,getPointerId:()=>re,getRendererEvent:()=>ie,getSafeResolution:()=>me,getShadowRoot:()=>he,getStyle:()=>ae,getTimeZone:()=>$e,getTimezoneOffset:()=>Re,getWeek:()=>D,getWeekYear:()=>De,getYearDay:()=>je,hslToHsv:()=>Ie,hslToRgb:()=>x,hsvToHsl:()=>Ue,iOS:()=>B,isLight:()=>C,isLocalEvent:()=>le,isTouchEvent:()=>se,lighten:()=>M,mergeTags:()=>He,onZoom:()=>te,padString:()=>b,plainText:()=>Te,ready:()=>X,relativeToValue:()=>_e,removeClass:()=>be,removeElement:()=>ee,rgbToHsl:()=>v,sameBounds:()=>Ne,saturate:()=>$,setInteractive:()=>fe,setStyle:()=>ue,splitString:()=>Oe,stripTags:()=>Y,supports:()=>w,trim:()=>j,trimLeft:()=>z,trimRight:()=>G,truncateTextWithEllipsis:()=>xe});function X(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function ee(e){e.parentNode&&e.parentNode.removeChild(e)}function N(e,t,r,n){return e.addEventListener(t,r,n||!1),new A(()=>{e.removeEventListener(t,r,n||!1)})}function te(e){return N(window,"resize",t=>{e()})}function w(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function re(e){return e.pointerId||0}function ne(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function oe(e){e&&e.focus()}function ie(e){if(w("pointerevents"))return e;if(w("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(w("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function se(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function ue(e,t,r){e.style[t]=r}function ae(e,t){return e.style[t]}function ce(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function k(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function le(e,t){return e.target&&k(t.root.dom,e.target)}function fe(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function pe(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function he(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var E;function de(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function ye(e,t=""){if(e===null){if(E==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),E=r.sheet}return E}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function H(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var P=class extends T{constructor(t,r,n,o=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=ye(t,o);try{this._rule=H(this._root,r)}catch{this._rule=H(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=U(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},O=class extends T{constructor(t,r,n=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=de(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function ge(e,t){if(e)if(e.classList){let r=t.split(" ");I(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function be(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function B(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function me(){return B()?1:void 0}function _e(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function we(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function z(e){return e.replace(/^[\s]*/,"")}function G(e){return e.replace(/[\s]*$/,"")}function j(e){return z(G(e))}function xe(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+"...":e.substring(0,t)+n}else return e}function ve(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Se(e){return e.replace(/\/(date|number|duration)$/i,"")}function Y(e){return e&&e.replace(/<[^>]*>/g,"")}function Te(e){return e&&Y((""+e).replace(/[\n\r]+/g,". "))}function Ee(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Pe(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Oe(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))(i=" ")&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(u=>u!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function je(e,t=!1){let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function D(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function De(e,t=!1){let r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),new Date(Date.UTC(r.getUTCFullYear(),0,1)).getFullYear()}function Ce(e,t=!1){let r=D(new Date(e.getFullYear(),e.getMonth(),1),t),n=D(e,t);return n==1&&(n=53),n-r+1}function Me(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Fe(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function $e(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let u=e.toLocaleString("en-US",{timeZone:o}),c=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return j(c.substr(u.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),j(s)}function Re(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Le(e){return e.charAt(0).toUpperCase()+e.slice(1)}function x(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let u=function(l,S,f){return f<0&&(f+=1),f>1&&(f-=1),f<.16666666666666666?l+(S-l)*6*f:f<.5?S:f<.6666666666666666?l+(S-l)*(.6666666666666666-f)*6:l},c=s<.5?s*(1+i):s+i-s*i,a=2*s-c;t=u(a,c,o+1/3),r=u(a,c,o),n=u(a,c,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function v(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,u=0,c=(o+i)/2;if(o===i)s=u=0;else{let a=o-i;switch(u=c>.5?a/(2-o-i):a/(o+i),o){case t:s=(r-n)/a+(r<n?6:0);break;case r:s=(n-t)/a+2;break;case n:s=(t-r)/a+4;break}s/=6}return{h:s,s:u,l:c}}function Ue(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function Ie(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function M(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+g(e.r,t))),g:Math.max(0,Math.min(255,e.g+g(e.g,t))),b:Math.max(0,Math.min(255,e.b+g(e.b,t))),a:e.a}}function g(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function F(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=g(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ae(e,t){return Math.round(255*t)}function C(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function $(e,t){if(e===void 0||t==1)return e;let r=v(e);return r.s=t,x(r)}function R(e,t={r:255,g:255,b:255},r={r:255,g:255,b:255}){let n=t,o=r;return C(r)&&(n=r,o=t),C(e)?o:n}function He(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ne(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function Z(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(h){try{a(n.next(h))}catch(l){s(l)}}function c(h){try{a(n.throw(h))}catch(l){s(l)}}function a(h){h.done?i(h.value):o(h.value).then(u,c)}a((n=n.apply(e,t||[])).next())})}function Je(e){return Z(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function p(e,t,r){return t+e*(r-t)}function ke(e,t,r){return e>=1?r:t}function Be(e,t,r){return new m(p(e,t.percent,r.percent))}function ze(e,t,r){return d.interpolate(e,t,r)}function Qe(e,t){return typeof e=="number"&&typeof t=="number"?p:e instanceof m&&t instanceof m?Be:e instanceof d&&t instanceof d?ze:ke}var V;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(V||(V={}));function K(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function Ge(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return K(r)}function tt(e){return d.fromAny(e)}var d=class e{constructor(t){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return v({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=x({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(K(t))}static fromCSS(t){return new e(Ge(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(p(t,i.h,s.h),p(t,i.s,s.s),p(t,i.l,s.l))}else return e.fromRGB(p(t,r.r,n.r),p(t,r.g,n.g),p(t,r.b,n.b))}static lighten(t,r){let n=M({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{Z as a,X as b,ee as c,N as d,te as e,w as f,re as g,ne as h,oe as i,ie as j,se as k,ue as l,ae as m,ce as n,le as o,fe as p,pe as q,he as r,P as s,me as t,_e as u,we as v,b as w,j as x,xe as y,ve as z,Se as A,Y as B,Ee as C,Oe as D,je as E,D as F,De as G,Ce as H,Me as I,Fe as J,$e as K,Re as L,Le as M,He as N,Ne as O,W as P,tt as Q,d as R,Je as S,Be as T,Qe as U,V};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import{b as c}from"./BAINXG3J.js";import{b as s,e as u}from"./DG2NGS4U.js";import{a as l}from"./GNBPPVLP.js";import{b as a,x as n,z as h}from"./6LZLH5VV.js";export default $arcgis.t(([{when:g,watch:d}])=>{var m=class extends h{constructor(t){super(t),this.direction=u(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[g(()=>this.component.view.popup?.visible,()=>{this.popupRef?.visible&&(this.popupRef.visible=!1)})]}openPopup(t){this.popupRef?this.popupRef.open(t):this.component.view.openPopup(t)}closePopup(){this.popupRef?this.popupRef.visible=!1:this.component.view.closePopup()}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this.popupRef&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupRef?.handleViewClick(t);e?.length&&(this.component.view.closePopup(),this.popupRef?.open({location:o,promises:e}))}}_handlePopupSlotChange(t){let o=l(t.target,"arcgis-popup");!this.popupRef&&o.length?this.popupRef=o[0]:o.length||(this.popupRef=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return c(this.direction,t=>this._handlePopupSlotChange(t),this._webGLErrorAlert())}},v=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>{let{map:e}=i;if(!e||e.destroyed)return[];let r=[];return e.loadError&&r.push(e),e.basemap?.loadError&&r.push(e.basemap),e.ground.loadError&&r.push(e.ground),[...e.allLayers,...e.allTables].forEach(p=>{p.loadError&&r.push(p)}),r},e=>{e.length&&(i.loadErrorSources=e,o.emit())})),o}),y=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>i.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:m,b:v,c:y}},"core/reactiveUtils")
3
+ v5.0.0-next.112 */
4
+ import{b as c}from"./U2ZJBEHK.js";import{b as s,e as u}from"./RIS6P2XR.js";import{a as l}from"./YGY35OTX.js";import{b as a,x as n,z as h}from"./XJLMKLXL.js";export default $arcgis.t(([{when:g,watch:d}])=>{var m=class extends h{constructor(t){super(t),this.direction=u(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[g(()=>this.component.view.popup?.visible,()=>{this.popupRef?.visible&&(this.popupRef.visible=!1)})]}openPopup(t){this.popupRef?this.popupRef.open(t):this.component.view.openPopup(t)}closePopup(){this.popupRef?this.popupRef.visible=!1:this.component.view.closePopup()}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this.popupRef&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupRef?.handleViewClick(t);e?.length&&(this.component.view.closePopup(),this.popupRef?.open({location:o,promises:e}))}}_handlePopupSlotChange(t){let o=l(t.target,"arcgis-popup");!this.popupRef&&o.length?this.popupRef=o[0]:o.length||(this.popupRef=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return c(this.direction,t=>this._handlePopupSlotChange(t),this._webGLErrorAlert())}},v=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>{let{map:e}=i;if(!e||e.destroyed)return[];let r=[];return e.loadError&&r.push(e),e.basemap?.loadError&&r.push(e.basemap),e.ground.loadError&&r.push(e.ground),[...e.allLayers,...e.allTables].forEach(p=>{p.loadError&&r.push(p)}),r},e=>{e.length&&(i.loadErrorSources=e,o.emit())})),o}),y=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>i.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:m,b:v,c:y}},"core/reactiveUtils")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import b from"./HVRSNJDU.js";import{a as d}from"./OQHW24K3.js";import{O as g,R as h,T as f,a as m,b as a}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([{stripHTML:w},{formatNumber:$,substitute:_},y])=>{var b=m`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`,A="nested",u=class extends y{constructor(){super(...arguments),this.displayCount=3,this.flowType="feature-utility-network-association-type"}static{this.properties={description:1,displayCount:9,endIndex:32,flowItems:0,flowType:1,heading:1,map:0,spatialReference:0,timeZone:1,view:0}}static{this.styles=b}get endIndex(){let{currentFeaturePage:t,featuresPerPage:e,maxFeatureCount:s}=this;return Math.min(t*e,s)}_featureViewModelMatch(t,e){let s=t.graphic,i=s?.layer,o=null;i?.type==="subtype-sublayer"&&i.parent?o=i.parent.globalIdField??null:i&&"globalIdField"in i&&(o=i.globalIdField);let l=o?s?.attributes[o]:null,r=e.graphic,n=r?.layer,c=null;n?.type==="subtype-sublayer"&&n.parent?c=n.parent.globalIdField??null:n&&"globalIdField"in n&&(c=n.globalIdField);let p=c?r?.attributes[c]:null;return l&&p&&l===p}_findFlowItem(t){return this.flowItems?.findIndex(e=>{if(e.flowType!=="feature-association")return!1;let s=e.viewModel;return this._featureViewModelMatch(s,t)})??-1}_formatPercentAlong(t){let{percentAlong:e}=t;return e==null?"":$(e,{style:"percent",maximumFractionDigits:2})}async _handleFeatureClick(t,e,s){let{flowItems:i}=this;if(t){i?.removeAll();return}if(e<0||!i){await this._selectAssociation(s);return}for(;i.length>e+1;)i.pop()}_isConnectivityAssociation(t){let{associationType:e}=t;return e==="connectivity"||e==="junction-junction-connectivity"||e==="junction-edge-from-connectivity"||e==="junction-edge-midspan-connectivity"||e==="junction-edge-to-connectivity"}_isConnectivityMidspanAssociation(t){return t.associationType==="junction-edge-midspan-connectivity"}_isParentFeature(t){let e=this.flowItems?.getItemAt(0);if(!e)return!1;let s=e.parentFeatureViewModel;return this._featureViewModelMatch(s,t)}async _selectAssociation(t){let{flowItems:e}=this;e&&e.push(h(d(this.parentFeatureViewModel,a`<arcgis-feature .flowItems=${e} .flowType=${"feature-utility-network-associations"} .graphic=${t.graphic} .map=${this.map} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_showAllAssociations(t){let{flowItems:e,description:s}=this;if(!e||!t)return;this.showAllEnabled=!0;let i=t?.title??"";e.push(h(a`<arcgis-feature-utility-network-association-list .associationViewModels=${this.associationViewModels} .description=${s} .flowItems=${e} .flowType=${this.flowType} .heading=${i} .messages=${this.messages} .parentFeatureViewModel=${this.parentFeatureViewModel} .selectedLayer=${t} .showAllEnabled=${this.showAllEnabled}></arcgis-feature-utility-network-association-list>`))}render(){let{associationViewModels:t,state:e}=this,s=this.selectedLayer?.title??this.messages?.noTitle??"";return a`<div>${e==="loading"||e==="querying"?this._renderLoading():a`<calcite-list .displayMode=${A} .filterEnabled=${this.showAllEnabled&&!!this.selectedLayer} .filterLabel=${this.messages?.associationFilterPlaceholder} .filterPlaceholder=${this.messages?.associationFilterPlaceholder} .label=${s}>${this.showAllEnabled&&this.selectedLayer?a`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}`:Array.from(t.keys(),i=>this._renderTypeList(i))}</calcite-list>`}</div>`}_renderAssociatedFeature(t){let{featureViewModel:e,title:s}=t,i=this.state==="loading",o=this._findFlowItem(e),l=o<0&&this._isParentFeature(e),r=l||o>=0,n=`associated-feature-${t.association.globalId}`;return a`<calcite-list-item class=${g(i?"list-item--hidden":"")} .description=${w(t.terminalName??"")} .label=${w(s)} @calciteListItemSelect=${async()=>await this._handleFeatureClick(l,o,e)}>${this._isConnectivityAssociation(t.association)?this._renderConnectivityIcon(t.association.associationType,n):null}${this._isConnectivityMidspanAssociation(t.association)?a`<calcite-chip .label=${this._formatPercentAlong(t.association)} scale=s slot=content-end>${this._formatPercentAlong(t.association)}</calcite-chip>`:null}${this._renderChevronIconNode(r)}</calcite-list-item>`}_renderAssociatedFeatureList(t){return t.toArray().map(e=>this._renderAssociatedFeature(e))}_renderAssociatedFeatureListPage(){let t=this.associationViewModels.get(this.selectedLayer).slice(0,this.endIndex);return[...this._renderTooltips(t),...this._renderAssociatedFeatureList(t)]}_renderChevronIconNode(t){return a`<calcite-icon flip-rtl .icon=${t?"move-up":"chevron-right"} scale=s slot=content-end></calcite-icon>`}_renderItemTooltip(t){let{tooltipReferenceMap:e}=this,s=`associated-feature-${t.association.globalId}`;return this._isConnectivityAssociation(t.association)?a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${e.get(s)}>${this.getConnectivityTooltip(t.association.associationType)}</calcite-tooltip>`:null}_renderTypeList(t){let{messages:e}=this,{displayCount:s}=this,i=this.associationViewModels.get(t),o=i.slice(0,s),l=o.length<i.length,r=_(e?.numberRecords??"",{number:i.length.toString()}),n=e?.showAll??"";return d("show-all",a`<calcite-list-item expanded .label=${t.title} .value=${t.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${t.id} .label=${t.title??""}>${[this._renderTooltips(o),this._renderAssociatedFeatureList(o)]}${l?d("show-all-item",a`<calcite-list-item .description=${r} .label=${n} @calciteListItemSelect=${()=>this._showAllAssociations(t)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`):null}</calcite-list></calcite-list-item>`)}_renderTooltips(t){return t.toArray().map(e=>this._renderItemTooltip(e))}};f("arcgis-feature-utility-network-association-list",u);return u},"applications/Components/stringUtils","intl",b)
3
+ v5.0.0-next.112 */
4
+ import b from"./YL2Q5PYV.js";import{a as d}from"./W4VWTV5O.js";import{O as g,R as h,T as f,a as m,b as a}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([{stripHTML:w},{formatNumber:$,substitute:_},y])=>{var b=m`:host{position:relative;flex:1 1 auto}.list-item--hidden{display:none}.feature-observer{bottom:var(--calcite-spacing-xxl);position:relative;text-align:center;z-index:2}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.notice-container{margin-bottom:var(--calcite-spacing-xs)}`,A="nested",u=class extends y{constructor(){super(...arguments),this.displayCount=3,this.flowType="feature-utility-network-association-type"}static{this.properties={description:1,displayCount:9,endIndex:32,flowItems:0,flowType:1,heading:1,map:0,spatialReference:0,timeZone:1,view:0}}static{this.styles=b}get endIndex(){let{currentFeaturePage:t,featuresPerPage:e,maxFeatureCount:s}=this;return Math.min(t*e,s)}_featureViewModelMatch(t,e){let s=t.graphic,i=s?.layer,o=null;i?.type==="subtype-sublayer"&&i.parent?o=i.parent.globalIdField??null:i&&"globalIdField"in i&&(o=i.globalIdField);let l=o?s?.attributes[o]:null,r=e.graphic,n=r?.layer,c=null;n?.type==="subtype-sublayer"&&n.parent?c=n.parent.globalIdField??null:n&&"globalIdField"in n&&(c=n.globalIdField);let p=c?r?.attributes[c]:null;return l&&p&&l===p}_findFlowItem(t){return this.flowItems?.findIndex(e=>{if(e.flowType!=="feature-association")return!1;let s=e.viewModel;return this._featureViewModelMatch(s,t)})??-1}_formatPercentAlong(t){let{percentAlong:e}=t;return e==null?"":$(e,{style:"percent",maximumFractionDigits:2})}async _handleFeatureClick(t,e,s){let{flowItems:i}=this;if(t){i?.removeAll();return}if(e<0||!i){await this._selectAssociation(s);return}for(;i.length>e+1;)i.pop()}_isConnectivityAssociation(t){let{associationType:e}=t;return e==="connectivity"||e==="junction-junction-connectivity"||e==="junction-edge-from-connectivity"||e==="junction-edge-midspan-connectivity"||e==="junction-edge-to-connectivity"}_isConnectivityMidspanAssociation(t){return t.associationType==="junction-edge-midspan-connectivity"}_isParentFeature(t){let e=this.flowItems?.getItemAt(0);if(!e)return!1;let s=e.parentFeatureViewModel;return this._featureViewModelMatch(s,t)}async _selectAssociation(t){let{flowItems:e}=this;e&&e.push(h(d(this.parentFeatureViewModel,a`<arcgis-feature .flowItems=${e} .flowType=${"feature-utility-network-associations"} .graphic=${t.graphic} .map=${this.map} show-utility-network-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_showAllAssociations(t){let{flowItems:e,description:s}=this;if(!e||!t)return;this.showAllEnabled=!0;let i=t?.title??"";e.push(h(a`<arcgis-feature-utility-network-association-list .associationViewModels=${this.associationViewModels} .description=${s} .flowItems=${e} .flowType=${this.flowType} .heading=${i} .messages=${this.messages} .parentFeatureViewModel=${this.parentFeatureViewModel} .selectedLayer=${t} .showAllEnabled=${this.showAllEnabled}></arcgis-feature-utility-network-association-list>`))}render(){let{associationViewModels:t,state:e}=this,s=this.selectedLayer?.title??this.messages?.noTitle??"";return a`<div>${e==="loading"||e==="querying"?this._renderLoading():a`<calcite-list .displayMode=${A} .filterEnabled=${this.showAllEnabled&&!!this.selectedLayer} .filterLabel=${this.messages?.associationFilterPlaceholder} .filterPlaceholder=${this.messages?.associationFilterPlaceholder} .label=${s}>${this.showAllEnabled&&this.selectedLayer?a`${this._renderFeatureCountWarning()}${this._renderAssociatedFeatureListPage()}${this._renderFeatureObserver()}`:Array.from(t.keys(),i=>this._renderTypeList(i))}</calcite-list>`}</div>`}_renderAssociatedFeature(t){let{featureViewModel:e,title:s}=t,i=this.state==="loading",o=this._findFlowItem(e),l=o<0&&this._isParentFeature(e),r=l||o>=0,n=`associated-feature-${t.association.globalId}`;return a`<calcite-list-item class=${g(i?"list-item--hidden":"")} .description=${w(t.terminalName??"")} .label=${w(s)} @calciteListItemSelect=${async()=>await this._handleFeatureClick(l,o,e)}>${this._isConnectivityAssociation(t.association)?this._renderConnectivityIcon(t.association.associationType,n):null}${this._isConnectivityMidspanAssociation(t.association)?a`<calcite-chip .label=${this._formatPercentAlong(t.association)} scale=s slot=content-end>${this._formatPercentAlong(t.association)}</calcite-chip>`:null}${this._renderChevronIconNode(r)}</calcite-list-item>`}_renderAssociatedFeatureList(t){return t.toArray().map(e=>this._renderAssociatedFeature(e))}_renderAssociatedFeatureListPage(){let t=this.associationViewModels.get(this.selectedLayer).slice(0,this.endIndex);return[...this._renderTooltips(t),...this._renderAssociatedFeatureList(t)]}_renderChevronIconNode(t){return a`<calcite-icon flip-rtl .icon=${t?"move-up":"chevron-right"} scale=s slot=content-end></calcite-icon>`}_renderItemTooltip(t){let{tooltipReferenceMap:e}=this,s=`associated-feature-${t.association.globalId}`;return this._isConnectivityAssociation(t.association)?a`<calcite-tooltip overlay-positioning=fixed .referenceElement=${e.get(s)}>${this.getConnectivityTooltip(t.association.associationType)}</calcite-tooltip>`:null}_renderTypeList(t){let{messages:e}=this,{displayCount:s}=this,i=this.associationViewModels.get(t),o=i.slice(0,s),l=o.length<i.length,r=_(e?.numberRecords??"",{number:i.length.toString()}),n=e?.showAll??"";return d("show-all",a`<calcite-list-item expanded .label=${t.title} .value=${t.id}><calcite-chip .label=${String(i.length)} scale=s slot=content-end>${i.length}</calcite-chip><calcite-list .group=${t.id} .label=${t.title??""}>${[this._renderTooltips(o),this._renderAssociatedFeatureList(o)]}${l?d("show-all-item",a`<calcite-list-item .description=${r} .label=${n} @calciteListItemSelect=${()=>this._showAllAssociations(t)}><calcite-icon icon=list scale=s slot=content-end></calcite-icon></calcite-list-item>`):null}</calcite-list></calcite-list-item>`)}_renderTooltips(t){return t.toArray().map(e=>this._renderItemTooltip(e))}};f("arcgis-feature-utility-network-association-list",u);return u},"applications/Components/stringUtils","intl",b)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import{N as o,T as v,a as l,b as n,x as c}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([p])=>{var h=l`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-columns: 1;--internal-icon-size: 16px;container-type:inline-size}.container{display:grid;isolation:isolate;grid-template-columns:repeat(var(--internal-columns, 1),1fr);gap:var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.statistic{display:block;width:max-content;text-align:start;white-space:nowrap}.statistic-label,.statistic-value,.slope-values{font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-bold)}.statistic-label{font-weight:var(--calcite-font-weight-regular)}.statistic-value{margin-top:-.15em}.slope-values{display:flex;align-items:center;calcite-icon{width:var(--internal-icon-size);height:var(--internal-icon-size)}}@container (width > 200px){.container{--internal-columns: 2}}@container (width > 400px){.container{--internal-columns: 4}}@container (width > 800px){.container{--internal-columns: 8}}`,r=class extends o{constructor(){super(...arguments),this._formatter=new p,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,messages:0,result:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}async load(){await this._formatter.when()}render(){let t=this.messages?.statistics;if(t)return n`<div class="container">${this._renderDistance("maxDistance",t.maxDistance)}${this._renderElevation("elevationGain",t.gain)}${this._renderElevation("elevationLoss",t.loss)}${this._renderElevation("minElevation",t.minElevation)}${this._renderElevation("maxElevation",t.maxElevation)}${this._renderElevation("avgElevation",t.avgElevation)}${this._renderSlope("maxPositiveSlope","maxNegativeSlope",t.maxSlope)}${this._renderSlope("avgPositiveSlope","avgNegativeSlope",t.avgSlope)}</div>`}_renderDistance(t,i){let a=this._renderValue(t,e=>{let s=this.effectiveDisplayUnits?.distance;return s?this._formatter.formatLength({type:"length",value:e,unit:s},d):""});return this._renderStatistic(i,a)}_renderElevation(t,i){let a=this._renderValue(t,e=>{let s=this.effectiveDisplayUnits?.elevation;return s?this._formatter.formatVerticalLength({type:"length",value:e,unit:s},d):""});return this._renderStatistic(i,a)}_renderSlope(t,i,a){return this._renderStatistic(a,n`<div class="slope-values"><calcite-icon icon=arrow-up scale=s></calcite-icon>${this._renderValue(t,e=>e.toFixed(1))}<calcite-icon icon=arrow-down scale=s></calcite-icon>${this._renderValue(i,e=>e.toFixed(1))}</div>`)}_renderStatistic(t,i){return n`<div class="statistic"><label class="statistic-label">${t}</label><div class="statistic-value">${i}</div></div>`}_renderValue(t,i){let{result:a}=this,e=a?.progress===1?a.statistics?.[t]:void 0;return e==null?" \u2015 ":i(e)}},d=1;v("arcgis-elevation-profile-statistics",r);return r},"applications/Components/QuantityFormatter")
3
+ v5.0.0-next.112 */
4
+ import{N as o,T as v,a as l,b as n,x as c}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([p])=>{var h=l`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-columns: 1;--internal-icon-size: 16px;container-type:inline-size}.container{display:grid;isolation:isolate;grid-template-columns:repeat(var(--internal-columns, 1),1fr);gap:var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.statistic{display:block;width:max-content;text-align:start;white-space:nowrap}.statistic-label,.statistic-value,.slope-values{font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-bold)}.statistic-label{font-weight:var(--calcite-font-weight-regular)}.statistic-value{margin-top:-.15em}.slope-values{display:flex;align-items:center;calcite-icon{width:var(--internal-icon-size);height:var(--internal-icon-size)}}@container (width > 200px){.container{--internal-columns: 2}}@container (width > 400px){.container{--internal-columns: 4}}@container (width > 800px){.container{--internal-columns: 8}}`,r=class extends o{constructor(){super(...arguments),this._formatter=new p,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,messages:0,result:0}}static{this.styles=h}async destroy(){await this.manager.destroy()}async load(){await this._formatter.when()}render(){let t=this.messages?.statistics;if(t)return n`<div class="container">${this._renderDistance("maxDistance",t.maxDistance)}${this._renderElevation("elevationGain",t.gain)}${this._renderElevation("elevationLoss",t.loss)}${this._renderElevation("minElevation",t.minElevation)}${this._renderElevation("maxElevation",t.maxElevation)}${this._renderElevation("avgElevation",t.avgElevation)}${this._renderSlope("maxPositiveSlope","maxNegativeSlope",t.maxSlope)}${this._renderSlope("avgPositiveSlope","avgNegativeSlope",t.avgSlope)}</div>`}_renderDistance(t,i){let a=this._renderValue(t,e=>{let s=this.effectiveDisplayUnits?.distance;return s?this._formatter.formatLength({type:"length",value:e,unit:s},d):""});return this._renderStatistic(i,a)}_renderElevation(t,i){let a=this._renderValue(t,e=>{let s=this.effectiveDisplayUnits?.elevation;return s?this._formatter.formatVerticalLength({type:"length",value:e,unit:s},d):""});return this._renderStatistic(i,a)}_renderSlope(t,i,a){return this._renderStatistic(a,n`<div class="slope-values"><calcite-icon icon=arrow-up scale=s></calcite-icon>${this._renderValue(t,e=>e.toFixed(1))}<calcite-icon icon=arrow-down scale=s></calcite-icon>${this._renderValue(i,e=>e.toFixed(1))}</div>`)}_renderStatistic(t,i){return n`<div class="statistic"><label class="statistic-label">${t}</label><div class="statistic-value">${i}</div></div>`}_renderValue(t,i){let{result:a}=this,e=a?.progress===1?a.statistics?.[t]:void 0;return e==null?" \u2015 ":i(e)}},d=1;v("arcgis-elevation-profile-statistics",r);return r},"applications/Components/QuantityFormatter")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.110 */
4
- import c from"./X4IDECRM.js";import{b as d}from"./GNBPPVLP.js";import{N as f,O as i,P as v,Q as g,T as $,a as b,b as a}from"./6LZLH5VV.js";import"./ULE6CJOD.js";export default $arcgis.t(([{a:m,b:w,d:u,g:y,h:p}])=>{var z=b`.arcgis-legend__layer-table{display:flex;flex-flow:column;margin-bottom:var(--calcite-spacing-md);width:100%}.arcgis-legend__layer-table--size-ramp{display:table}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-cell{display:table-cell}.arcgis-legend__layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:flex;align-items:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend__imagery-layer-info--stretched{padding:0 2px;vertical-align:top}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__symbol{display:flex;justify-content:center}`,s={layerTable:"arcgis-legend__layer-table",layerTableSizeRamp:"arcgis-legend__layer-table--size-ramp",layerCaption:"arcgis-legend__layer-caption",layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",imageryLayerStretchedImage:"arcgis-legend__imagery-layer-image--stretched",imageryLayerInfoStretched:"arcgis-legend__imagery-layer-info--stretched",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",symbol:"arcgis-legend__symbol"},h=class extends f{static{this.properties={cssEffectFilter:1,layer:0,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=w(this.legendElement,this.messages),r=l?a`<div class=${i(s.layerCaption)}>${l}</div>`:null,t={[s.layerTableSizeRamp]:this.legendElement.type==="size-ramp"};return a`<section class=${i(d(s.layerTable,t))}>${r}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return a`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return a`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return a`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return p(e,this.messages.previewPieChartAriaLabel),a`<div>${e}</div>`}case"univariate-above-and-below-ramp":return a`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return a`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=e.infos.map(r=>this._renderElementInfo(r,e.legendType)).filter(Boolean);return l.length?a`<div class=${i(s.layerBody)}>${l}</div>`:null}_renderElementInfo(e,l){let{layer:r}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?a`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${r} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let n=u(r,l),c={[s.imageryLayerInfoStretched]:n},o={[s.imageryLayerInfoStretched]:n};return a`<div class=${i(s.layerRow)}><div class=${i(d(s.symbolContainer,o))}>${this._renderPreview(e,n)}</div><div class=${i(d(s.layerInfo,c))}>${m(this.messages,t,!1)||""}</div></div>`}_renderPreview(e,l){let{layer:r}=this;if("preview"in e&&e.preview){let{preview:t}=e,n="previewAriaLabel"in e?e.previewAriaLabel:null,c="label"in e?m(this.messages,e.label,!1):null;return p(t,y(this.messages,n||c)),a`<div class=${i(s.symbol)}>${t}</div>`}return"src"in e&&e.src?this._renderImage(e,r,l):null}_renderImage(e,l,r){let{previewAriaLabel:t,src:n,opacity:c}=e,o=m(this.messages,e.label,!1),E={[s.imageryLayerStretchedImage]:r,[s.symbol]:!r},x={opacity:`${c??l.opacity}`},_=y(this.messages,t||o);return a`<img alt=${_??g} .ariaLabel=${_} class=${i(d(E))} height=${e.height??void 0??g} src=${n??g} style=${v(x)} width=${e.width??void 0??g}>`}};$("arcgis-legend-classic-element",h);return h},c)
3
+ v5.0.0-next.112 */
4
+ import c from"./LKERPBBW.js";import{b as d}from"./YGY35OTX.js";import{N as f,O as i,P as v,Q as g,T as $,a as b,b as a}from"./XJLMKLXL.js";import"./25TVKQGR.js";export default $arcgis.t(([{a:m,b:w,d:u,g:y,h:p}])=>{var z=b`.arcgis-legend__layer-table{display:flex;flex-flow:column;margin-bottom:var(--calcite-spacing-md);width:100%}.arcgis-legend__layer-table--size-ramp{display:table}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-cell{display:table-cell}.arcgis-legend__layer-caption{display:table-caption;padding:var(--calcite-spacing-sm) 0;word-break:break-word}.arcgis-legend__layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .arcgis-legend__layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.arcgis-legend__layer-row{display:flex}.arcgis-legend__layer-table--size-ramp .arcgis-legend__layer-row{display:table-row}.arcgis-legend__layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:flex;align-items:center}.arcgis-legend__layer-cell--info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.arcgis-legend__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend__imagery-layer-info--stretched{padding:0 2px;vertical-align:top}.arcgis-legend__layer-cell--symbols{min-width:10px;text-align:center}.arcgis-legend__symbol{display:flex;justify-content:center}`,s={layerTable:"arcgis-legend__layer-table",layerTableSizeRamp:"arcgis-legend__layer-table--size-ramp",layerCaption:"arcgis-legend__layer-caption",layerBody:"arcgis-legend__layer-body",layerRow:"arcgis-legend__layer-row",layerInfo:"arcgis-legend__layer-cell arcgis-legend__layer-cell--info",imageryLayerStretchedImage:"arcgis-legend__imagery-layer-image--stretched",imageryLayerInfoStretched:"arcgis-legend__imagery-layer-info--stretched",symbolContainer:"arcgis-legend__layer-cell arcgis-legend__layer-cell--symbols",symbol:"arcgis-legend__symbol"},h=class extends f{static{this.properties={cssEffectFilter:1,layer:0,legendElement:0,messages:0}}static{this.styles=z}render(){let e=this._renderLegendElement(),l=w(this.legendElement,this.messages),r=l?a`<div class=${i(s.layerCaption)}>${l}</div>`:null,t={[s.layerTableSizeRamp]:this.legendElement.type==="size-ramp"};return a`<section class=${i(d(s.layerTable,t))}>${r}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return a`<arcgis-legend-classic-size-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-classic-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return a`<arcgis-legend-classic-color-ramp .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-color-ramp>`;case"relationship-ramp":return a`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return p(e,this.messages.previewPieChartAriaLabel),a`<div>${e}</div>`}case"univariate-above-and-below-ramp":return a`<arcgis-legend-classic-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return a`<arcgis-legend-classic-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-classic-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let l=e.infos.map(r=>this._renderElementInfo(r,e.legendType)).filter(Boolean);return l.length?a`<div class=${i(s.layerBody)}>${l}</div>`:null}_renderElementInfo(e,l){let{layer:r}=this,t="label"in e?e.label:null;if("type"in e&&e.type)return e?a`<arcgis-legend-classic-element .cssEffectFilter=${this.cssEffectFilter} .layer=${r} .legendElement=${e} .messages=${this.messages}></arcgis-legend-classic-element>`:null;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let n=u(r,l),c={[s.imageryLayerInfoStretched]:n},o={[s.imageryLayerInfoStretched]:n};return a`<div class=${i(s.layerRow)}><div class=${i(d(s.symbolContainer,o))}>${this._renderPreview(e,n)}</div><div class=${i(d(s.layerInfo,c))}>${m(this.messages,t,!1)||""}</div></div>`}_renderPreview(e,l){let{layer:r}=this;if("preview"in e&&e.preview){let{preview:t}=e,n="previewAriaLabel"in e?e.previewAriaLabel:null,c="label"in e?m(this.messages,e.label,!1):null;return p(t,y(this.messages,n||c)),a`<div class=${i(s.symbol)}>${t}</div>`}return"src"in e&&e.src?this._renderImage(e,r,l):null}_renderImage(e,l,r){let{previewAriaLabel:t,src:n,opacity:c}=e,o=m(this.messages,e.label,!1),E={[s.imageryLayerStretchedImage]:r,[s.symbol]:!r},x={opacity:`${c??l.opacity}`},_=y(this.messages,t||o);return a`<img alt=${_??g} .ariaLabel=${_} class=${i(d(E))} height=${e.height??void 0??g} src=${n??g} style=${v(x)} width=${e.width??void 0??g}>`}};$("arcgis-legend-classic-element",h);return h},c)