@arcgis/map-components 4.29.0-beta.7 → 4.29.0-beta.72

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 (936) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/arcgis-map-components/arcgis-map-components.esm.js +2 -1
  3. package/dist/arcgis-map-components/arcgis-map-components.esm.js.map +1 -0
  4. package/dist/arcgis-map-components/index.esm.js +2 -0
  5. package/dist/arcgis-map-components/index.esm.js.map +1 -0
  6. package/dist/arcgis-map-components/p-001bdcc9.entry.js +2 -0
  7. package/dist/arcgis-map-components/p-001bdcc9.entry.js.map +1 -0
  8. package/dist/arcgis-map-components/p-03d91445.entry.js +2 -0
  9. package/dist/arcgis-map-components/p-03d91445.entry.js.map +1 -0
  10. package/dist/arcgis-map-components/p-05742a90.entry.js +2 -0
  11. package/dist/arcgis-map-components/p-05742a90.entry.js.map +1 -0
  12. package/dist/arcgis-map-components/p-061ad510.entry.js +2 -0
  13. package/dist/arcgis-map-components/p-061ad510.entry.js.map +1 -0
  14. package/dist/arcgis-map-components/p-0780b907.entry.js +2 -0
  15. package/dist/arcgis-map-components/p-0780b907.entry.js.map +1 -0
  16. package/dist/arcgis-map-components/p-08e60b1d.entry.js +2 -0
  17. package/dist/arcgis-map-components/p-08e60b1d.entry.js.map +1 -0
  18. package/dist/arcgis-map-components/p-0c37d8a7.entry.js +2 -0
  19. package/dist/arcgis-map-components/p-0c37d8a7.entry.js.map +1 -0
  20. package/dist/arcgis-map-components/p-0dedc4d2.entry.js +2 -0
  21. package/dist/arcgis-map-components/p-0dedc4d2.entry.js.map +1 -0
  22. package/dist/arcgis-map-components/p-0e2bdde5.entry.js +2 -0
  23. package/dist/arcgis-map-components/p-0e2bdde5.entry.js.map +1 -0
  24. package/dist/arcgis-map-components/p-137103ec.entry.js +2 -0
  25. package/dist/arcgis-map-components/p-137103ec.entry.js.map +1 -0
  26. package/dist/arcgis-map-components/p-13be3f42.entry.js +2 -0
  27. package/dist/arcgis-map-components/p-13be3f42.entry.js.map +1 -0
  28. package/dist/arcgis-map-components/p-143b6bbd.entry.js +2 -0
  29. package/dist/arcgis-map-components/p-143b6bbd.entry.js.map +1 -0
  30. package/dist/arcgis-map-components/p-1561977d.entry.js +2 -0
  31. package/dist/arcgis-map-components/p-1561977d.entry.js.map +1 -0
  32. package/dist/arcgis-map-components/p-165c4658.entry.js +2 -0
  33. package/dist/arcgis-map-components/p-165c4658.entry.js.map +1 -0
  34. package/dist/arcgis-map-components/p-1688ad49.entry.js +2 -0
  35. package/dist/arcgis-map-components/p-1688ad49.entry.js.map +1 -0
  36. package/dist/arcgis-map-components/p-1753d3d2.entry.js +2 -0
  37. package/dist/arcgis-map-components/p-1753d3d2.entry.js.map +1 -0
  38. package/dist/arcgis-map-components/p-1c1eb1ae.entry.js +2 -0
  39. package/dist/arcgis-map-components/p-1c1eb1ae.entry.js.map +1 -0
  40. package/dist/arcgis-map-components/p-1e1e95d3.entry.js +2 -0
  41. package/dist/arcgis-map-components/p-1e1e95d3.entry.js.map +1 -0
  42. package/dist/arcgis-map-components/p-224824b1.entry.js +2 -0
  43. package/dist/arcgis-map-components/p-224824b1.entry.js.map +1 -0
  44. package/dist/arcgis-map-components/p-24eb3355.entry.js +2 -0
  45. package/dist/arcgis-map-components/p-24eb3355.entry.js.map +1 -0
  46. package/dist/arcgis-map-components/p-2513e252.entry.js +2 -0
  47. package/dist/arcgis-map-components/p-2513e252.entry.js.map +1 -0
  48. package/dist/arcgis-map-components/p-2644c693.entry.js +2 -0
  49. package/dist/arcgis-map-components/p-2644c693.entry.js.map +1 -0
  50. package/dist/arcgis-map-components/p-269e4018.entry.js +2 -0
  51. package/dist/arcgis-map-components/p-269e4018.entry.js.map +1 -0
  52. package/dist/arcgis-map-components/p-26c8efa0.entry.js +2 -0
  53. package/dist/arcgis-map-components/p-26c8efa0.entry.js.map +1 -0
  54. package/dist/arcgis-map-components/p-272ac305.entry.js +2 -0
  55. package/dist/arcgis-map-components/p-272ac305.entry.js.map +1 -0
  56. package/dist/arcgis-map-components/p-27c595e3.entry.js +2 -0
  57. package/dist/arcgis-map-components/p-27c595e3.entry.js.map +1 -0
  58. package/dist/arcgis-map-components/p-2b8dde05.entry.js +2 -0
  59. package/dist/arcgis-map-components/p-2b8dde05.entry.js.map +1 -0
  60. package/dist/arcgis-map-components/p-2d6106fe.entry.js +2 -0
  61. package/dist/arcgis-map-components/p-2d6106fe.entry.js.map +1 -0
  62. package/dist/arcgis-map-components/p-2f7311c6.entry.js +2 -0
  63. package/dist/arcgis-map-components/p-2f7311c6.entry.js.map +1 -0
  64. package/dist/arcgis-map-components/p-2fc4cdcb.entry.js +2 -0
  65. package/dist/arcgis-map-components/p-2fc4cdcb.entry.js.map +1 -0
  66. package/dist/arcgis-map-components/p-308de68b.entry.js +2 -0
  67. package/dist/arcgis-map-components/p-308de68b.entry.js.map +1 -0
  68. package/dist/arcgis-map-components/p-343f5803.entry.js +2 -0
  69. package/dist/arcgis-map-components/p-343f5803.entry.js.map +1 -0
  70. package/dist/arcgis-map-components/p-34e517d7.entry.js +2 -0
  71. package/dist/arcgis-map-components/p-34e517d7.entry.js.map +1 -0
  72. package/dist/arcgis-map-components/p-34e78eb3.entry.js +2 -0
  73. package/dist/arcgis-map-components/p-34e78eb3.entry.js.map +1 -0
  74. package/dist/arcgis-map-components/p-37b0fd31.entry.js +2 -0
  75. package/dist/arcgis-map-components/p-37b0fd31.entry.js.map +1 -0
  76. package/dist/arcgis-map-components/p-386d1ce1.entry.js +2 -0
  77. package/dist/arcgis-map-components/p-386d1ce1.entry.js.map +1 -0
  78. package/dist/arcgis-map-components/p-3932a1f3.entry.js +2 -0
  79. package/dist/arcgis-map-components/p-3932a1f3.entry.js.map +1 -0
  80. package/dist/arcgis-map-components/p-3e8971dd.entry.js +2 -0
  81. package/dist/arcgis-map-components/p-3e8971dd.entry.js.map +1 -0
  82. package/dist/arcgis-map-components/p-3f28745b.entry.js +2 -0
  83. package/dist/arcgis-map-components/p-3f28745b.entry.js.map +1 -0
  84. package/dist/arcgis-map-components/p-3ff2b626.entry.js +2 -0
  85. package/dist/arcgis-map-components/p-3ff2b626.entry.js.map +1 -0
  86. package/dist/arcgis-map-components/p-4055fed1.entry.js +2 -0
  87. package/dist/arcgis-map-components/p-4055fed1.entry.js.map +1 -0
  88. package/dist/arcgis-map-components/p-426be2ef.entry.js +2 -0
  89. package/dist/arcgis-map-components/p-426be2ef.entry.js.map +1 -0
  90. package/dist/arcgis-map-components/p-42f250a9.entry.js +2 -0
  91. package/dist/arcgis-map-components/p-42f250a9.entry.js.map +1 -0
  92. package/dist/arcgis-map-components/p-46fed3c4.entry.js +2 -0
  93. package/dist/arcgis-map-components/p-46fed3c4.entry.js.map +1 -0
  94. package/dist/arcgis-map-components/p-4885d650.entry.js +2 -0
  95. package/dist/arcgis-map-components/p-4885d650.entry.js.map +1 -0
  96. package/dist/arcgis-map-components/p-48b9a905.entry.js +2 -0
  97. package/dist/arcgis-map-components/p-48b9a905.entry.js.map +1 -0
  98. package/dist/arcgis-map-components/p-4a115abd.entry.js +2 -0
  99. package/dist/arcgis-map-components/p-4a115abd.entry.js.map +1 -0
  100. package/dist/arcgis-map-components/p-4af7e760.entry.js +2 -0
  101. package/dist/arcgis-map-components/p-4af7e760.entry.js.map +1 -0
  102. package/dist/arcgis-map-components/p-4c6dce4b.entry.js +2 -0
  103. package/dist/arcgis-map-components/p-4c6dce4b.entry.js.map +1 -0
  104. package/dist/arcgis-map-components/p-4d5979ea.entry.js +2 -0
  105. package/dist/arcgis-map-components/p-4d5979ea.entry.js.map +1 -0
  106. package/dist/arcgis-map-components/p-5098a5d9.entry.js +2 -0
  107. package/dist/arcgis-map-components/p-5098a5d9.entry.js.map +1 -0
  108. package/dist/arcgis-map-components/p-5183adfb.entry.js +2 -0
  109. package/dist/arcgis-map-components/p-5183adfb.entry.js.map +1 -0
  110. package/dist/arcgis-map-components/p-518d76f9.entry.js +2 -0
  111. package/dist/arcgis-map-components/p-518d76f9.entry.js.map +1 -0
  112. package/dist/arcgis-map-components/p-5268198b.entry.js +2 -0
  113. package/dist/arcgis-map-components/p-5268198b.entry.js.map +1 -0
  114. package/dist/arcgis-map-components/p-540f33c1.entry.js +2 -0
  115. package/dist/arcgis-map-components/p-540f33c1.entry.js.map +1 -0
  116. package/dist/arcgis-map-components/p-55014fec.entry.js +2 -0
  117. package/dist/arcgis-map-components/p-55014fec.entry.js.map +1 -0
  118. package/dist/arcgis-map-components/p-557c9d64.entry.js +2 -0
  119. package/dist/arcgis-map-components/p-557c9d64.entry.js.map +1 -0
  120. package/dist/arcgis-map-components/p-58544c5b.entry.js +2 -0
  121. package/dist/arcgis-map-components/p-58544c5b.entry.js.map +1 -0
  122. package/dist/arcgis-map-components/p-591e7b46.entry.js +2 -0
  123. package/dist/arcgis-map-components/p-591e7b46.entry.js.map +1 -0
  124. package/dist/arcgis-map-components/p-5bfc118c.entry.js +2 -0
  125. package/dist/arcgis-map-components/p-5bfc118c.entry.js.map +1 -0
  126. package/dist/arcgis-map-components/p-60a3aa5a.entry.js +2 -0
  127. package/dist/arcgis-map-components/p-60a3aa5a.entry.js.map +1 -0
  128. package/dist/arcgis-map-components/p-60b5fe3c.entry.js +2 -0
  129. package/dist/arcgis-map-components/p-60b5fe3c.entry.js.map +1 -0
  130. package/dist/arcgis-map-components/p-62716f0f.entry.js +2 -0
  131. package/dist/arcgis-map-components/p-62716f0f.entry.js.map +1 -0
  132. package/dist/arcgis-map-components/p-630f5870.entry.js +2 -0
  133. package/dist/arcgis-map-components/p-630f5870.entry.js.map +1 -0
  134. package/dist/arcgis-map-components/p-66056cc4.entry.js +2 -0
  135. package/dist/arcgis-map-components/p-66056cc4.entry.js.map +1 -0
  136. package/dist/arcgis-map-components/p-669bffd2.entry.js +2 -0
  137. package/dist/arcgis-map-components/p-669bffd2.entry.js.map +1 -0
  138. package/dist/arcgis-map-components/p-66bb84ae.entry.js +2 -0
  139. package/dist/arcgis-map-components/p-66bb84ae.entry.js.map +1 -0
  140. package/dist/arcgis-map-components/p-698d9777.entry.js +2 -0
  141. package/dist/arcgis-map-components/p-698d9777.entry.js.map +1 -0
  142. package/dist/arcgis-map-components/p-69da0de3.entry.js +2 -0
  143. package/dist/arcgis-map-components/p-69da0de3.entry.js.map +1 -0
  144. package/dist/arcgis-map-components/p-6ba0245e.entry.js +2 -0
  145. package/dist/arcgis-map-components/p-6ba0245e.entry.js.map +1 -0
  146. package/dist/arcgis-map-components/p-6eddf41d.js +2 -0
  147. package/dist/arcgis-map-components/p-6eddf41d.js.map +1 -0
  148. package/dist/arcgis-map-components/p-74c5b057.entry.js +2 -0
  149. package/dist/arcgis-map-components/p-74c5b057.entry.js.map +1 -0
  150. package/dist/arcgis-map-components/p-7567ad29.entry.js +2 -0
  151. package/dist/arcgis-map-components/p-7567ad29.entry.js.map +1 -0
  152. package/dist/arcgis-map-components/p-758f6c5a.js +2 -0
  153. package/dist/arcgis-map-components/p-758f6c5a.js.map +1 -0
  154. package/dist/arcgis-map-components/p-7614761b.entry.js +2 -0
  155. package/dist/arcgis-map-components/p-7614761b.entry.js.map +1 -0
  156. package/dist/arcgis-map-components/p-77c5c931.entry.js +2 -0
  157. package/dist/arcgis-map-components/p-77c5c931.entry.js.map +1 -0
  158. package/dist/arcgis-map-components/p-7ac37e26.entry.js +2 -0
  159. package/dist/arcgis-map-components/p-7ac37e26.entry.js.map +1 -0
  160. package/dist/arcgis-map-components/p-7b88c67c.entry.js +2 -0
  161. package/dist/arcgis-map-components/p-7b88c67c.entry.js.map +1 -0
  162. package/dist/arcgis-map-components/p-7cb578f1.entry.js +2 -0
  163. package/dist/arcgis-map-components/p-7cb578f1.entry.js.map +1 -0
  164. package/dist/arcgis-map-components/p-7e1bbdc6.entry.js +2 -0
  165. package/dist/arcgis-map-components/p-7e1bbdc6.entry.js.map +1 -0
  166. package/dist/arcgis-map-components/p-7e898828.entry.js +2 -0
  167. package/dist/arcgis-map-components/p-7e898828.entry.js.map +1 -0
  168. package/dist/arcgis-map-components/p-7ef9da29.entry.js +2 -0
  169. package/dist/arcgis-map-components/p-7ef9da29.entry.js.map +1 -0
  170. package/dist/arcgis-map-components/p-7f849ee5.js +2 -0
  171. package/dist/arcgis-map-components/p-7f849ee5.js.map +1 -0
  172. package/dist/arcgis-map-components/p-7fc50f12.entry.js +2 -0
  173. package/dist/arcgis-map-components/p-7fc50f12.entry.js.map +1 -0
  174. package/dist/arcgis-map-components/p-82a12245.entry.js +2 -0
  175. package/dist/arcgis-map-components/p-82a12245.entry.js.map +1 -0
  176. package/dist/arcgis-map-components/p-8319cf1a.entry.js +2 -0
  177. package/dist/arcgis-map-components/p-8319cf1a.entry.js.map +1 -0
  178. package/dist/arcgis-map-components/p-83685046.entry.js +2 -0
  179. package/dist/arcgis-map-components/p-83685046.entry.js.map +1 -0
  180. package/dist/arcgis-map-components/p-852d81d1.entry.js +2 -0
  181. package/dist/arcgis-map-components/p-852d81d1.entry.js.map +1 -0
  182. package/dist/arcgis-map-components/p-853e5058.entry.js +2 -0
  183. package/dist/arcgis-map-components/p-853e5058.entry.js.map +1 -0
  184. package/dist/arcgis-map-components/p-8896b456.js +3 -0
  185. package/dist/arcgis-map-components/p-8896b456.js.map +1 -0
  186. package/dist/arcgis-map-components/p-8965ef38.entry.js +2 -0
  187. package/dist/arcgis-map-components/p-8965ef38.entry.js.map +1 -0
  188. package/dist/arcgis-map-components/p-8bf4b85e.entry.js +2 -0
  189. package/dist/arcgis-map-components/p-8bf4b85e.entry.js.map +1 -0
  190. package/dist/arcgis-map-components/p-8c3fb263.entry.js +2 -0
  191. package/dist/arcgis-map-components/p-8c3fb263.entry.js.map +1 -0
  192. package/dist/arcgis-map-components/p-8cd5e748.js +2 -0
  193. package/dist/arcgis-map-components/p-8cd5e748.js.map +1 -0
  194. package/dist/arcgis-map-components/p-8ebf6849.entry.js +2 -0
  195. package/dist/arcgis-map-components/p-8ebf6849.entry.js.map +1 -0
  196. package/dist/arcgis-map-components/p-922c8429.entry.js +2 -0
  197. package/dist/arcgis-map-components/p-922c8429.entry.js.map +1 -0
  198. package/dist/arcgis-map-components/p-92d452b1.entry.js +2 -0
  199. package/dist/arcgis-map-components/p-92d452b1.entry.js.map +1 -0
  200. package/dist/arcgis-map-components/p-9386190b.entry.js +2 -0
  201. package/dist/arcgis-map-components/p-9386190b.entry.js.map +1 -0
  202. package/dist/arcgis-map-components/p-93d69b82.entry.js +2 -0
  203. package/dist/arcgis-map-components/p-93d69b82.entry.js.map +1 -0
  204. package/dist/arcgis-map-components/p-9564dff9.entry.js +2 -0
  205. package/dist/arcgis-map-components/p-9564dff9.entry.js.map +1 -0
  206. package/dist/arcgis-map-components/p-98576162.entry.js +2 -0
  207. package/dist/arcgis-map-components/p-98576162.entry.js.map +1 -0
  208. package/dist/arcgis-map-components/p-990f0bed.entry.js +2 -0
  209. package/dist/arcgis-map-components/p-990f0bed.entry.js.map +1 -0
  210. package/dist/arcgis-map-components/p-99437e5b.entry.js +2 -0
  211. package/dist/arcgis-map-components/p-99437e5b.entry.js.map +1 -0
  212. package/dist/arcgis-map-components/p-9c956ae1.entry.js +2 -0
  213. package/dist/arcgis-map-components/p-9c956ae1.entry.js.map +1 -0
  214. package/dist/arcgis-map-components/p-a0642b39.entry.js +2 -0
  215. package/dist/arcgis-map-components/p-a0642b39.entry.js.map +1 -0
  216. package/dist/arcgis-map-components/p-a25ef588.entry.js +2 -0
  217. package/dist/arcgis-map-components/p-a25ef588.entry.js.map +1 -0
  218. package/dist/arcgis-map-components/p-a4f29634.entry.js +2 -0
  219. package/dist/arcgis-map-components/p-a4f29634.entry.js.map +1 -0
  220. package/dist/arcgis-map-components/p-ae00ccbd.entry.js +2 -0
  221. package/dist/arcgis-map-components/p-ae00ccbd.entry.js.map +1 -0
  222. package/dist/arcgis-map-components/p-af6b52cb.entry.js +2 -0
  223. package/dist/arcgis-map-components/p-af6b52cb.entry.js.map +1 -0
  224. package/dist/arcgis-map-components/p-b0abd711.entry.js +2 -0
  225. package/dist/arcgis-map-components/p-b0abd711.entry.js.map +1 -0
  226. package/dist/arcgis-map-components/p-b5127ca2.entry.js +2 -0
  227. package/dist/arcgis-map-components/p-b5127ca2.entry.js.map +1 -0
  228. package/dist/arcgis-map-components/p-b5cd3df9.entry.js +2 -0
  229. package/dist/arcgis-map-components/p-b5cd3df9.entry.js.map +1 -0
  230. package/dist/arcgis-map-components/p-b711ec87.entry.js +2 -0
  231. package/dist/arcgis-map-components/p-b711ec87.entry.js.map +1 -0
  232. package/dist/arcgis-map-components/p-b9043526.entry.js +2 -0
  233. package/dist/arcgis-map-components/p-b9043526.entry.js.map +1 -0
  234. package/dist/arcgis-map-components/p-b97b5ab8.entry.js +2 -0
  235. package/dist/arcgis-map-components/p-b97b5ab8.entry.js.map +1 -0
  236. package/dist/arcgis-map-components/p-ba0290ba.entry.js +2 -0
  237. package/dist/arcgis-map-components/p-ba0290ba.entry.js.map +1 -0
  238. package/dist/arcgis-map-components/p-bbe42bba.entry.js +2 -0
  239. package/dist/arcgis-map-components/p-bbe42bba.entry.js.map +1 -0
  240. package/dist/arcgis-map-components/p-bc1bbb01.entry.js +2 -0
  241. package/dist/arcgis-map-components/p-bc1bbb01.entry.js.map +1 -0
  242. package/dist/arcgis-map-components/p-bef2916b.entry.js +2 -0
  243. package/dist/arcgis-map-components/p-bef2916b.entry.js.map +1 -0
  244. package/dist/arcgis-map-components/p-c0be22a4.entry.js +2 -0
  245. package/dist/arcgis-map-components/p-c0be22a4.entry.js.map +1 -0
  246. package/dist/arcgis-map-components/p-c17b9cae.entry.js +2 -0
  247. package/dist/arcgis-map-components/p-c17b9cae.entry.js.map +1 -0
  248. package/dist/arcgis-map-components/p-c2b55df9.entry.js +2 -0
  249. package/dist/arcgis-map-components/p-c2b55df9.entry.js.map +1 -0
  250. package/dist/arcgis-map-components/p-c59b6265.entry.js +2 -0
  251. package/dist/arcgis-map-components/p-c59b6265.entry.js.map +1 -0
  252. package/dist/arcgis-map-components/p-c74a83ee.entry.js +2 -0
  253. package/dist/arcgis-map-components/p-c74a83ee.entry.js.map +1 -0
  254. package/dist/arcgis-map-components/p-cdcbe21b.entry.js +2 -0
  255. package/dist/arcgis-map-components/p-cdcbe21b.entry.js.map +1 -0
  256. package/dist/arcgis-map-components/p-cde9fb34.entry.js +2 -0
  257. package/dist/arcgis-map-components/p-cde9fb34.entry.js.map +1 -0
  258. package/dist/arcgis-map-components/p-d10bdb76.entry.js +2 -0
  259. package/dist/arcgis-map-components/p-d10bdb76.entry.js.map +1 -0
  260. package/dist/arcgis-map-components/p-d3050c56.entry.js +2 -0
  261. package/dist/arcgis-map-components/p-d3050c56.entry.js.map +1 -0
  262. package/dist/arcgis-map-components/p-d32a242e.entry.js +2 -0
  263. package/dist/arcgis-map-components/p-d32a242e.entry.js.map +1 -0
  264. package/dist/arcgis-map-components/p-d3e791dc.entry.js +2 -0
  265. package/dist/arcgis-map-components/p-d3e791dc.entry.js.map +1 -0
  266. package/dist/arcgis-map-components/p-d42639bc.entry.js +2 -0
  267. package/dist/arcgis-map-components/p-d42639bc.entry.js.map +1 -0
  268. package/dist/arcgis-map-components/p-d66f8092.entry.js +2 -0
  269. package/dist/arcgis-map-components/p-d66f8092.entry.js.map +1 -0
  270. package/dist/arcgis-map-components/p-d74f2d38.entry.js +2 -0
  271. package/dist/arcgis-map-components/p-d74f2d38.entry.js.map +1 -0
  272. package/dist/arcgis-map-components/p-d7f02d37.entry.js +2 -0
  273. package/dist/arcgis-map-components/p-d7f02d37.entry.js.map +1 -0
  274. package/dist/arcgis-map-components/p-d9df4c38.js +2 -0
  275. package/dist/arcgis-map-components/p-d9df4c38.js.map +1 -0
  276. package/dist/arcgis-map-components/p-dc86d016.entry.js +2 -0
  277. package/dist/arcgis-map-components/p-dc86d016.entry.js.map +1 -0
  278. package/dist/arcgis-map-components/p-dcab884b.entry.js +2 -0
  279. package/dist/arcgis-map-components/p-dcab884b.entry.js.map +1 -0
  280. package/dist/arcgis-map-components/p-dcfd06cd.entry.js +2 -0
  281. package/dist/arcgis-map-components/p-dcfd06cd.entry.js.map +1 -0
  282. package/dist/arcgis-map-components/p-ddeb17e1.entry.js +2 -0
  283. package/dist/arcgis-map-components/p-ddeb17e1.entry.js.map +1 -0
  284. package/dist/arcgis-map-components/p-dfeb5b81.entry.js +2 -0
  285. package/dist/arcgis-map-components/p-dfeb5b81.entry.js.map +1 -0
  286. package/dist/arcgis-map-components/p-e01b278d.entry.js +2 -0
  287. package/dist/arcgis-map-components/p-e01b278d.entry.js.map +1 -0
  288. package/dist/arcgis-map-components/p-e14af886.entry.js +2 -0
  289. package/dist/arcgis-map-components/p-e14af886.entry.js.map +1 -0
  290. package/dist/arcgis-map-components/p-e2fc453b.entry.js +2 -0
  291. package/dist/arcgis-map-components/p-e2fc453b.entry.js.map +1 -0
  292. package/dist/arcgis-map-components/p-e3f82d1c.entry.js +2 -0
  293. package/dist/arcgis-map-components/p-e3f82d1c.entry.js.map +1 -0
  294. package/dist/arcgis-map-components/p-e43620a8.entry.js +2 -0
  295. package/dist/arcgis-map-components/p-e43620a8.entry.js.map +1 -0
  296. package/dist/arcgis-map-components/p-e54b334e.entry.js +2 -0
  297. package/dist/arcgis-map-components/p-e54b334e.entry.js.map +1 -0
  298. package/dist/arcgis-map-components/p-e5a9c736.entry.js +2 -0
  299. package/dist/arcgis-map-components/p-e5a9c736.entry.js.map +1 -0
  300. package/dist/arcgis-map-components/p-e6e6b893.entry.js +2 -0
  301. package/dist/arcgis-map-components/p-e6e6b893.entry.js.map +1 -0
  302. package/dist/arcgis-map-components/p-e7679e9c.entry.js +2 -0
  303. package/dist/arcgis-map-components/p-e7679e9c.entry.js.map +1 -0
  304. package/dist/arcgis-map-components/p-e77700c7.entry.js +2 -0
  305. package/dist/arcgis-map-components/p-e77700c7.entry.js.map +1 -0
  306. package/dist/arcgis-map-components/p-e7e5a1c9.entry.js +2 -0
  307. package/dist/arcgis-map-components/p-e7e5a1c9.entry.js.map +1 -0
  308. package/dist/arcgis-map-components/p-e8f7bdbb.js +2 -0
  309. package/dist/arcgis-map-components/p-e8f7bdbb.js.map +1 -0
  310. package/dist/arcgis-map-components/p-e9b71422.entry.js +2 -0
  311. package/dist/arcgis-map-components/p-e9b71422.entry.js.map +1 -0
  312. package/dist/arcgis-map-components/p-ea5b718e.entry.js +2 -0
  313. package/dist/arcgis-map-components/p-ea5b718e.entry.js.map +1 -0
  314. package/dist/arcgis-map-components/p-edf74e10.entry.js +2 -0
  315. package/dist/arcgis-map-components/p-edf74e10.entry.js.map +1 -0
  316. package/dist/arcgis-map-components/p-f2cb3279.entry.js +2 -0
  317. package/dist/arcgis-map-components/p-f2cb3279.entry.js.map +1 -0
  318. package/dist/arcgis-map-components/p-f41b7c4a.entry.js +2 -0
  319. package/dist/arcgis-map-components/p-f41b7c4a.entry.js.map +1 -0
  320. package/dist/arcgis-map-components/p-f4de2080.entry.js +2 -0
  321. package/dist/arcgis-map-components/p-f4de2080.entry.js.map +1 -0
  322. package/dist/arcgis-map-components/p-fc5cdeeb.entry.js +2 -0
  323. package/dist/arcgis-map-components/p-fc5cdeeb.entry.js.map +1 -0
  324. package/dist/arcgis-map-components/p-fc6faf9a.entry.js +2 -0
  325. package/dist/arcgis-map-components/p-fc6faf9a.entry.js.map +1 -0
  326. package/dist/arcgis-map-components/p-fdcce70e.entry.js +2 -0
  327. package/dist/arcgis-map-components/p-fdcce70e.entry.js.map +1 -0
  328. package/dist/arcgis-map-components/p-ffd6ee1c.entry.js +2 -0
  329. package/dist/arcgis-map-components/p-ffd6ee1c.entry.js.map +1 -0
  330. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +89 -85
  331. package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js.map +1 -0
  332. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +82 -78
  333. package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js.map +1 -0
  334. package/dist/cjs/arcgis-attachments.cjs.entry.js +94 -60
  335. package/dist/cjs/arcgis-attachments.cjs.entry.js.map +1 -0
  336. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +887 -0
  337. package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js.map +1 -0
  338. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +163 -134
  339. package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js.map +1 -0
  340. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +105 -99
  341. package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js.map +1 -0
  342. package/dist/cjs/arcgis-bookmarks.cjs.entry.js +126 -118
  343. package/dist/cjs/arcgis-bookmarks.cjs.entry.js.map +1 -0
  344. package/dist/cjs/arcgis-building-explorer.cjs.entry.js +90 -65
  345. package/dist/cjs/arcgis-building-explorer.cjs.entry.js.map +1 -0
  346. package/dist/cjs/arcgis-compass.cjs.entry.js +73 -77
  347. package/dist/cjs/arcgis-compass.cjs.entry.js.map +1 -0
  348. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +178 -148
  349. package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js.map +1 -0
  350. package/dist/cjs/arcgis-daylight.cjs.entry.js +99 -96
  351. package/dist/cjs/arcgis-daylight.cjs.entry.js.map +1 -0
  352. package/dist/cjs/arcgis-directions.cjs.entry.js +206 -184
  353. package/dist/cjs/arcgis-directions.cjs.entry.js.map +1 -0
  354. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +92 -96
  355. package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js.map +1 -0
  356. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +84 -88
  357. package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js.map +1 -0
  358. package/dist/cjs/arcgis-editor.cjs.entry.js +176 -170
  359. package/dist/cjs/arcgis-editor.cjs.entry.js.map +1 -0
  360. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +125 -112
  361. package/dist/cjs/arcgis-elevation-profile.cjs.entry.js.map +1 -0
  362. package/dist/cjs/arcgis-feature-form.cjs.entry.js +139 -26
  363. package/dist/cjs/arcgis-feature-form.cjs.entry.js.map +1 -0
  364. package/dist/cjs/arcgis-feature-table.cjs.entry.js +326 -297
  365. package/dist/cjs/arcgis-feature-table.cjs.entry.js.map +1 -0
  366. package/dist/cjs/arcgis-feature-templates.cjs.entry.js +124 -60
  367. package/dist/cjs/arcgis-feature-templates.cjs.entry.js.map +1 -0
  368. package/dist/cjs/arcgis-feature.cjs.entry.js +118 -88
  369. package/dist/cjs/arcgis-feature.cjs.entry.js.map +1 -0
  370. package/dist/cjs/arcgis-features.cjs.entry.js +150 -123
  371. package/dist/cjs/arcgis-features.cjs.entry.js.map +1 -0
  372. package/dist/cjs/arcgis-floor-filter.cjs.entry.js +108 -112
  373. package/dist/cjs/arcgis-floor-filter.cjs.entry.js.map +1 -0
  374. package/dist/cjs/arcgis-fullscreen.cjs.entry.js +73 -77
  375. package/dist/cjs/arcgis-fullscreen.cjs.entry.js.map +1 -0
  376. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +198 -70
  377. package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js.map +1 -0
  378. package/dist/cjs/arcgis-histogram.cjs.entry.js +138 -26
  379. package/dist/cjs/arcgis-histogram.cjs.entry.js.map +1 -0
  380. package/dist/cjs/arcgis-home.cjs.entry.js +99 -93
  381. package/dist/cjs/arcgis-home.cjs.entry.js.map +1 -0
  382. package/dist/cjs/arcgis-layer-list.cjs.entry.js +143 -118
  383. package/dist/cjs/arcgis-layer-list.cjs.entry.js.map +1 -0
  384. package/dist/cjs/arcgis-legend.cjs.entry.js +132 -136
  385. package/dist/cjs/arcgis-legend.cjs.entry.js.map +1 -0
  386. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +76 -80
  387. package/dist/cjs/arcgis-line-of-sight.cjs.entry.js.map +1 -0
  388. package/dist/cjs/arcgis-locate.cjs.entry.js +143 -148
  389. package/dist/cjs/arcgis-locate.cjs.entry.js.map +1 -0
  390. package/dist/cjs/arcgis-map-components.cjs.js +5 -3
  391. package/dist/cjs/arcgis-map-components.cjs.js.map +1 -0
  392. package/dist/cjs/arcgis-map.cjs.entry.js +543 -0
  393. package/dist/cjs/arcgis-map.cjs.entry.js.map +1 -0
  394. package/dist/cjs/arcgis-measurement.cjs.entry.js +111 -106
  395. package/dist/cjs/arcgis-measurement.cjs.entry.js.map +1 -0
  396. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +79 -83
  397. package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js.map +1 -0
  398. package/dist/cjs/arcgis-placement.cjs.entry.js +52 -0
  399. package/dist/cjs/arcgis-placement.cjs.entry.js.map +1 -0
  400. package/dist/cjs/arcgis-print.cjs.entry.js +167 -153
  401. package/dist/cjs/arcgis-print.cjs.entry.js.map +1 -0
  402. package/dist/cjs/arcgis-scale-bar.cjs.entry.js +84 -88
  403. package/dist/cjs/arcgis-scale-bar.cjs.entry.js.map +1 -0
  404. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +142 -136
  405. package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js.map +1 -0
  406. package/dist/cjs/arcgis-search.cjs.entry.js +320 -0
  407. package/dist/cjs/arcgis-search.cjs.entry.js.map +1 -0
  408. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +77 -80
  409. package/dist/cjs/arcgis-shadow-cast.cjs.entry.js.map +1 -0
  410. package/dist/cjs/arcgis-sketch.cjs.entry.js +197 -191
  411. package/dist/cjs/arcgis-sketch.cjs.entry.js.map +1 -0
  412. package/dist/cjs/arcgis-slice.cjs.entry.js +75 -88
  413. package/dist/cjs/arcgis-slice.cjs.entry.js.map +1 -0
  414. package/dist/cjs/arcgis-slider.cjs.entry.js +221 -223
  415. package/dist/cjs/arcgis-slider.cjs.entry.js.map +1 -0
  416. package/dist/cjs/arcgis-swipe.cjs.entry.js +102 -99
  417. package/dist/cjs/arcgis-swipe.cjs.entry.js.map +1 -0
  418. package/dist/cjs/arcgis-table-list.cjs.entry.js +122 -102
  419. package/dist/cjs/arcgis-table-list.cjs.entry.js.map +1 -0
  420. package/dist/cjs/arcgis-time-slider.cjs.entry.js +212 -206
  421. package/dist/cjs/arcgis-time-slider.cjs.entry.js.map +1 -0
  422. package/dist/cjs/arcgis-track.cjs.entry.js +120 -124
  423. package/dist/cjs/arcgis-track.cjs.entry.js.map +1 -0
  424. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +209 -210
  425. package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js.map +1 -0
  426. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +172 -152
  427. package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js.map +1 -0
  428. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +80 -91
  429. package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js.map +1 -0
  430. package/dist/cjs/arcgis-value-picker.cjs.entry.js +167 -150
  431. package/dist/cjs/arcgis-value-picker.cjs.entry.js.map +1 -0
  432. package/dist/cjs/arcgis-weather.cjs.entry.js +78 -72
  433. package/dist/cjs/arcgis-weather.cjs.entry.js.map +1 -0
  434. package/dist/cjs/arcgis-zoom.cjs.entry.js +85 -86
  435. package/dist/cjs/arcgis-zoom.cjs.entry.js.map +1 -0
  436. package/dist/cjs/component-utils-48cee518.js +163 -0
  437. package/dist/cjs/component-utils-48cee518.js.map +1 -0
  438. package/dist/cjs/component-utils-fe0f22b0.js +163 -0
  439. package/dist/cjs/component-utils-fe0f22b0.js.map +1 -0
  440. package/dist/cjs/disconnected-4490368b.js +40 -0
  441. package/dist/cjs/disconnected-4490368b.js.map +1 -0
  442. package/dist/cjs/{index-bfda1cdc.js → index-048e90f4.js} +2 -8
  443. package/dist/cjs/index-048e90f4.js.map +1 -0
  444. package/dist/cjs/index-09a0e90f.js +735 -0
  445. package/dist/cjs/index-09a0e90f.js.map +1 -0
  446. package/dist/cjs/index-fbce570d.js +2351 -0
  447. package/dist/cjs/index-fbce570d.js.map +1 -0
  448. package/dist/cjs/index-ff8abea4.js +735 -0
  449. package/dist/cjs/index-ff8abea4.js.map +1 -0
  450. package/dist/cjs/index.cjs.js +2 -0
  451. package/dist/cjs/index.cjs.js.map +1 -0
  452. package/dist/cjs/loader.cjs.js +5 -12
  453. package/dist/cjs/loader.cjs.js.map +1 -0
  454. package/dist/components/arcgis-area-measurement-2d.d.ts +2 -2
  455. package/dist/components/arcgis-area-measurement-2d.js +119 -109
  456. package/dist/components/arcgis-area-measurement-2d.js.map +1 -0
  457. package/dist/components/arcgis-area-measurement-3d.d.ts +2 -2
  458. package/dist/components/arcgis-area-measurement-3d.js +113 -103
  459. package/dist/components/arcgis-area-measurement-3d.js.map +1 -0
  460. package/dist/components/arcgis-attachments.d.ts +2 -2
  461. package/dist/components/arcgis-attachments.js +127 -84
  462. package/dist/components/arcgis-attachments.js.map +1 -0
  463. package/dist/components/arcgis-basemap-gallery.d.ts +2 -2
  464. package/dist/components/arcgis-basemap-gallery.js +117 -108
  465. package/dist/components/arcgis-basemap-gallery.js.map +1 -0
  466. package/dist/components/arcgis-basemap-layer-list.d.ts +2 -2
  467. package/dist/components/arcgis-basemap-layer-list.js +207 -163
  468. package/dist/components/arcgis-basemap-layer-list.js.map +1 -0
  469. package/dist/components/arcgis-basemap-toggle.d.ts +2 -2
  470. package/dist/components/arcgis-basemap-toggle.js +139 -125
  471. package/dist/components/arcgis-basemap-toggle.js.map +1 -0
  472. package/dist/components/arcgis-bookmarks.d.ts +2 -2
  473. package/dist/components/arcgis-bookmarks.js +176 -157
  474. package/dist/components/arcgis-bookmarks.js.map +1 -0
  475. package/dist/components/arcgis-building-explorer.d.ts +2 -2
  476. package/dist/components/arcgis-building-explorer.js +122 -88
  477. package/dist/components/arcgis-building-explorer.js.map +1 -0
  478. package/dist/components/arcgis-compass.d.ts +2 -2
  479. package/dist/components/arcgis-compass.js +95 -94
  480. package/dist/components/arcgis-compass.js.map +1 -0
  481. package/dist/components/arcgis-coordinate-conversion.d.ts +2 -2
  482. package/dist/components/arcgis-coordinate-conversion.js +226 -181
  483. package/dist/components/arcgis-coordinate-conversion.js.map +1 -0
  484. package/dist/components/arcgis-daylight.d.ts +2 -2
  485. package/dist/components/arcgis-daylight.js +135 -122
  486. package/dist/components/arcgis-daylight.js.map +1 -0
  487. package/dist/components/arcgis-directions.d.ts +2 -2
  488. package/dist/components/arcgis-directions.js +254 -218
  489. package/dist/components/arcgis-directions.js.map +1 -0
  490. package/dist/components/arcgis-directline-measurement-3d.d.ts +2 -2
  491. package/dist/components/arcgis-directline-measurement-3d.js +125 -122
  492. package/dist/components/arcgis-directline-measurement-3d.js.map +1 -0
  493. package/dist/components/arcgis-distance-measurement-2d.d.ts +2 -2
  494. package/dist/components/arcgis-distance-measurement-2d.js +116 -113
  495. package/dist/components/arcgis-distance-measurement-2d.js.map +1 -0
  496. package/dist/components/arcgis-editor.d.ts +2 -2
  497. package/dist/components/arcgis-editor.js +226 -207
  498. package/dist/components/arcgis-editor.js.map +1 -0
  499. package/dist/components/arcgis-elevation-profile.d.ts +2 -2
  500. package/dist/components/arcgis-elevation-profile.js +179 -154
  501. package/dist/components/arcgis-elevation-profile.js.map +1 -0
  502. package/dist/components/arcgis-expand.d.ts +2 -2
  503. package/dist/components/arcgis-expand.js +3 -1
  504. package/dist/components/arcgis-expand.js.map +1 -0
  505. package/dist/components/arcgis-feature-form.d.ts +2 -2
  506. package/dist/components/arcgis-feature-form.js +180 -44
  507. package/dist/components/arcgis-feature-form.js.map +1 -0
  508. package/dist/components/arcgis-feature-table.d.ts +2 -2
  509. package/dist/components/arcgis-feature-table.js +398 -343
  510. package/dist/components/arcgis-feature-table.js.map +1 -0
  511. package/dist/components/arcgis-feature-templates.d.ts +2 -2
  512. package/dist/components/arcgis-feature-templates.js +162 -83
  513. package/dist/components/arcgis-feature-templates.js.map +1 -0
  514. package/dist/components/arcgis-feature.d.ts +2 -2
  515. package/dist/components/arcgis-feature.js +165 -121
  516. package/dist/components/arcgis-feature.js.map +1 -0
  517. package/dist/components/arcgis-features.d.ts +2 -2
  518. package/dist/components/arcgis-features.js +195 -157
  519. package/dist/components/arcgis-features.js.map +1 -0
  520. package/dist/components/arcgis-floor-filter.d.ts +2 -2
  521. package/dist/components/arcgis-floor-filter.js +145 -140
  522. package/dist/components/arcgis-floor-filter.js.map +1 -0
  523. package/dist/components/arcgis-fullscreen.d.ts +2 -2
  524. package/dist/components/arcgis-fullscreen.js +96 -94
  525. package/dist/components/arcgis-fullscreen.js.map +1 -0
  526. package/dist/components/arcgis-histogram-range-slider.d.ts +2 -2
  527. package/dist/components/arcgis-histogram-range-slider.js +252 -94
  528. package/dist/components/arcgis-histogram-range-slider.js.map +1 -0
  529. package/dist/components/arcgis-histogram.d.ts +2 -2
  530. package/dist/components/arcgis-histogram.js +182 -44
  531. package/dist/components/arcgis-histogram.js.map +1 -0
  532. package/dist/components/arcgis-home.d.ts +2 -2
  533. package/dist/components/arcgis-home.js +126 -112
  534. package/dist/components/arcgis-home.js.map +1 -0
  535. package/dist/components/arcgis-layer-list.d.ts +2 -2
  536. package/dist/components/arcgis-layer-list.js +183 -146
  537. package/dist/components/arcgis-layer-list.js.map +1 -0
  538. package/dist/components/arcgis-legend.d.ts +2 -2
  539. package/dist/components/arcgis-legend.js +172 -165
  540. package/dist/components/arcgis-legend.js.map +1 -0
  541. package/dist/components/arcgis-line-of-sight.d.ts +2 -2
  542. package/dist/components/arcgis-line-of-sight.js +105 -104
  543. package/dist/components/arcgis-line-of-sight.js.map +1 -0
  544. package/dist/components/arcgis-locate.d.ts +2 -2
  545. package/dist/components/arcgis-locate.js +178 -172
  546. package/dist/components/arcgis-locate.js.map +1 -0
  547. package/dist/components/arcgis-map.d.ts +2 -2
  548. package/dist/components/arcgis-map.js +616 -178
  549. package/dist/components/arcgis-map.js.map +1 -0
  550. package/dist/components/arcgis-measurement.d.ts +2 -2
  551. package/dist/components/arcgis-measurement.js +146 -133
  552. package/dist/components/arcgis-measurement.js.map +1 -0
  553. package/dist/components/arcgis-navigation-toggle.d.ts +2 -2
  554. package/dist/components/arcgis-navigation-toggle.js +102 -100
  555. package/dist/components/arcgis-navigation-toggle.js.map +1 -0
  556. package/dist/components/arcgis-placement.d.ts +11 -0
  557. package/dist/components/arcgis-placement.js +73 -0
  558. package/dist/components/arcgis-placement.js.map +1 -0
  559. package/dist/components/arcgis-print.d.ts +2 -2
  560. package/dist/components/arcgis-print.js +211 -184
  561. package/dist/components/arcgis-print.js.map +1 -0
  562. package/dist/components/arcgis-scale-bar.d.ts +2 -2
  563. package/dist/components/arcgis-scale-bar.js +115 -112
  564. package/dist/components/arcgis-scale-bar.js.map +1 -0
  565. package/dist/components/arcgis-scale-range-slider.d.ts +2 -2
  566. package/dist/components/arcgis-scale-range-slider.js +183 -164
  567. package/dist/components/arcgis-scale-range-slider.js.map +1 -0
  568. package/dist/components/arcgis-scene.d.ts +2 -2
  569. package/dist/components/arcgis-scene.js +674 -160
  570. package/dist/components/arcgis-scene.js.map +1 -0
  571. package/dist/components/arcgis-search.d.ts +2 -2
  572. package/dist/components/arcgis-search.js +383 -317
  573. package/dist/components/arcgis-search.js.map +1 -0
  574. package/dist/components/arcgis-shadow-cast.d.ts +2 -2
  575. package/dist/components/arcgis-shadow-cast.js +106 -103
  576. package/dist/components/arcgis-shadow-cast.js.map +1 -0
  577. package/dist/components/arcgis-sketch.d.ts +2 -2
  578. package/dist/components/arcgis-sketch.js +247 -225
  579. package/dist/components/arcgis-sketch.js.map +1 -0
  580. package/dist/components/arcgis-slice.d.ts +2 -2
  581. package/dist/components/arcgis-slice.js +103 -112
  582. package/dist/components/arcgis-slice.js.map +1 -0
  583. package/dist/components/arcgis-slider.d.ts +2 -2
  584. package/dist/components/arcgis-slider.js +262 -248
  585. package/dist/components/arcgis-slider.js.map +1 -0
  586. package/dist/components/arcgis-swipe.d.ts +2 -2
  587. package/dist/components/arcgis-swipe.js +132 -119
  588. package/dist/components/arcgis-swipe.js.map +1 -0
  589. package/dist/components/arcgis-table-list.d.ts +2 -2
  590. package/dist/components/arcgis-table-list.js +159 -128
  591. package/dist/components/arcgis-table-list.js.map +1 -0
  592. package/dist/components/arcgis-time-slider.d.ts +2 -2
  593. package/dist/components/arcgis-time-slider.js +242 -219
  594. package/dist/components/arcgis-time-slider.js.map +1 -0
  595. package/dist/components/arcgis-track.d.ts +2 -2
  596. package/dist/components/arcgis-track.js +164 -158
  597. package/dist/components/arcgis-track.js.map +1 -0
  598. package/dist/components/arcgis-utility-network-associations.d.ts +2 -2
  599. package/dist/components/arcgis-utility-network-associations.js +242 -223
  600. package/dist/components/arcgis-utility-network-associations.js.map +1 -0
  601. package/dist/components/arcgis-utility-network-trace.d.ts +2 -2
  602. package/dist/components/arcgis-utility-network-trace.js +217 -184
  603. package/dist/components/arcgis-utility-network-trace.js.map +1 -0
  604. package/dist/components/arcgis-utility-network-validate-topology.d.ts +2 -2
  605. package/dist/components/arcgis-utility-network-validate-topology.js +111 -115
  606. package/dist/components/arcgis-utility-network-validate-topology.js.map +1 -0
  607. package/dist/components/arcgis-value-picker.d.ts +2 -2
  608. package/dist/components/arcgis-value-picker.js +212 -185
  609. package/dist/components/arcgis-value-picker.js.map +1 -0
  610. package/dist/components/arcgis-weather.d.ts +2 -2
  611. package/dist/components/arcgis-weather.js +107 -94
  612. package/dist/components/arcgis-weather.js.map +1 -0
  613. package/dist/components/arcgis-zoom.d.ts +2 -2
  614. package/dist/components/arcgis-zoom.js +109 -104
  615. package/dist/components/arcgis-zoom.js.map +1 -0
  616. package/dist/components/component-utils.js +153 -0
  617. package/dist/components/component-utils.js.map +1 -0
  618. package/dist/components/disconnected.js +33 -117
  619. package/dist/components/disconnected.js.map +1 -0
  620. package/dist/components/expand.js +259 -0
  621. package/dist/components/expand.js.map +1 -0
  622. package/dist/components/index.d.ts +5 -55
  623. package/dist/components/index.js +3 -54
  624. package/dist/components/index.js.map +1 -0
  625. package/dist/components/index2.js +3 -8
  626. package/dist/components/index2.js.map +1 -0
  627. package/dist/esm/arcgis-area-measurement-2d.entry.js +89 -85
  628. package/dist/esm/arcgis-area-measurement-2d.entry.js.map +1 -0
  629. package/dist/esm/arcgis-area-measurement-3d.entry.js +82 -78
  630. package/dist/esm/arcgis-area-measurement-3d.entry.js.map +1 -0
  631. package/dist/esm/arcgis-attachments.entry.js +94 -60
  632. package/dist/esm/arcgis-attachments.entry.js.map +1 -0
  633. package/dist/esm/arcgis-basemap-gallery_3.entry.js +881 -0
  634. package/dist/esm/arcgis-basemap-gallery_3.entry.js.map +1 -0
  635. package/dist/esm/arcgis-basemap-layer-list.entry.js +163 -134
  636. package/dist/esm/arcgis-basemap-layer-list.entry.js.map +1 -0
  637. package/dist/esm/arcgis-basemap-toggle.entry.js +105 -99
  638. package/dist/esm/arcgis-basemap-toggle.entry.js.map +1 -0
  639. package/dist/esm/arcgis-bookmarks.entry.js +126 -118
  640. package/dist/esm/arcgis-bookmarks.entry.js.map +1 -0
  641. package/dist/esm/arcgis-building-explorer.entry.js +90 -65
  642. package/dist/esm/arcgis-building-explorer.entry.js.map +1 -0
  643. package/dist/esm/arcgis-compass.entry.js +73 -77
  644. package/dist/esm/arcgis-compass.entry.js.map +1 -0
  645. package/dist/esm/arcgis-coordinate-conversion.entry.js +178 -148
  646. package/dist/esm/arcgis-coordinate-conversion.entry.js.map +1 -0
  647. package/dist/esm/arcgis-daylight.entry.js +99 -96
  648. package/dist/esm/arcgis-daylight.entry.js.map +1 -0
  649. package/dist/esm/arcgis-directions.entry.js +206 -184
  650. package/dist/esm/arcgis-directions.entry.js.map +1 -0
  651. package/dist/esm/arcgis-directline-measurement-3d.entry.js +92 -96
  652. package/dist/esm/arcgis-directline-measurement-3d.entry.js.map +1 -0
  653. package/dist/esm/arcgis-distance-measurement-2d.entry.js +84 -88
  654. package/dist/esm/arcgis-distance-measurement-2d.entry.js.map +1 -0
  655. package/dist/esm/arcgis-editor.entry.js +176 -170
  656. package/dist/esm/arcgis-editor.entry.js.map +1 -0
  657. package/dist/esm/arcgis-elevation-profile.entry.js +125 -112
  658. package/dist/esm/arcgis-elevation-profile.entry.js.map +1 -0
  659. package/dist/esm/arcgis-feature-form.entry.js +139 -26
  660. package/dist/esm/arcgis-feature-form.entry.js.map +1 -0
  661. package/dist/esm/arcgis-feature-table.entry.js +326 -297
  662. package/dist/esm/arcgis-feature-table.entry.js.map +1 -0
  663. package/dist/esm/arcgis-feature-templates.entry.js +124 -60
  664. package/dist/esm/arcgis-feature-templates.entry.js.map +1 -0
  665. package/dist/esm/arcgis-feature.entry.js +118 -88
  666. package/dist/esm/arcgis-feature.entry.js.map +1 -0
  667. package/dist/esm/arcgis-features.entry.js +150 -123
  668. package/dist/esm/arcgis-features.entry.js.map +1 -0
  669. package/dist/esm/arcgis-floor-filter.entry.js +108 -112
  670. package/dist/esm/arcgis-floor-filter.entry.js.map +1 -0
  671. package/dist/esm/arcgis-fullscreen.entry.js +73 -77
  672. package/dist/esm/arcgis-fullscreen.entry.js.map +1 -0
  673. package/dist/esm/arcgis-histogram-range-slider.entry.js +198 -70
  674. package/dist/esm/arcgis-histogram-range-slider.entry.js.map +1 -0
  675. package/dist/esm/arcgis-histogram.entry.js +138 -26
  676. package/dist/esm/arcgis-histogram.entry.js.map +1 -0
  677. package/dist/esm/arcgis-home.entry.js +99 -93
  678. package/dist/esm/arcgis-home.entry.js.map +1 -0
  679. package/dist/esm/arcgis-layer-list.entry.js +143 -118
  680. package/dist/esm/arcgis-layer-list.entry.js.map +1 -0
  681. package/dist/esm/arcgis-legend.entry.js +132 -136
  682. package/dist/esm/arcgis-legend.entry.js.map +1 -0
  683. package/dist/esm/arcgis-line-of-sight.entry.js +76 -80
  684. package/dist/esm/arcgis-line-of-sight.entry.js.map +1 -0
  685. package/dist/esm/arcgis-locate.entry.js +143 -148
  686. package/dist/esm/arcgis-locate.entry.js.map +1 -0
  687. package/dist/esm/arcgis-map-components.js +6 -4
  688. package/dist/esm/arcgis-map-components.js.map +1 -0
  689. package/dist/esm/arcgis-map.entry.js +539 -0
  690. package/dist/esm/arcgis-map.entry.js.map +1 -0
  691. package/dist/esm/arcgis-measurement.entry.js +111 -106
  692. package/dist/esm/arcgis-measurement.entry.js.map +1 -0
  693. package/dist/esm/arcgis-navigation-toggle.entry.js +79 -83
  694. package/dist/esm/arcgis-navigation-toggle.entry.js.map +1 -0
  695. package/dist/esm/arcgis-placement.entry.js +48 -0
  696. package/dist/esm/arcgis-placement.entry.js.map +1 -0
  697. package/dist/esm/arcgis-print.entry.js +167 -153
  698. package/dist/esm/arcgis-print.entry.js.map +1 -0
  699. package/dist/esm/arcgis-scale-bar.entry.js +84 -88
  700. package/dist/esm/arcgis-scale-bar.entry.js.map +1 -0
  701. package/dist/esm/arcgis-scale-range-slider.entry.js +142 -136
  702. package/dist/esm/arcgis-scale-range-slider.entry.js.map +1 -0
  703. package/dist/esm/arcgis-search.entry.js +316 -0
  704. package/dist/esm/arcgis-search.entry.js.map +1 -0
  705. package/dist/esm/arcgis-shadow-cast.entry.js +77 -80
  706. package/dist/esm/arcgis-shadow-cast.entry.js.map +1 -0
  707. package/dist/esm/arcgis-sketch.entry.js +197 -191
  708. package/dist/esm/arcgis-sketch.entry.js.map +1 -0
  709. package/dist/esm/arcgis-slice.entry.js +75 -88
  710. package/dist/esm/arcgis-slice.entry.js.map +1 -0
  711. package/dist/esm/arcgis-slider.entry.js +221 -223
  712. package/dist/esm/arcgis-slider.entry.js.map +1 -0
  713. package/dist/esm/arcgis-swipe.entry.js +102 -99
  714. package/dist/esm/arcgis-swipe.entry.js.map +1 -0
  715. package/dist/esm/arcgis-table-list.entry.js +122 -102
  716. package/dist/esm/arcgis-table-list.entry.js.map +1 -0
  717. package/dist/esm/arcgis-time-slider.entry.js +212 -206
  718. package/dist/esm/arcgis-time-slider.entry.js.map +1 -0
  719. package/dist/esm/arcgis-track.entry.js +120 -124
  720. package/dist/esm/arcgis-track.entry.js.map +1 -0
  721. package/dist/esm/arcgis-utility-network-associations.entry.js +209 -210
  722. package/dist/esm/arcgis-utility-network-associations.entry.js.map +1 -0
  723. package/dist/esm/arcgis-utility-network-trace.entry.js +172 -152
  724. package/dist/esm/arcgis-utility-network-trace.entry.js.map +1 -0
  725. package/dist/esm/arcgis-utility-network-validate-topology.entry.js +80 -91
  726. package/dist/esm/arcgis-utility-network-validate-topology.entry.js.map +1 -0
  727. package/dist/esm/arcgis-value-picker.entry.js +167 -150
  728. package/dist/esm/arcgis-value-picker.entry.js.map +1 -0
  729. package/dist/esm/arcgis-weather.entry.js +78 -72
  730. package/dist/esm/arcgis-weather.entry.js.map +1 -0
  731. package/dist/esm/arcgis-zoom.entry.js +85 -86
  732. package/dist/esm/arcgis-zoom.entry.js.map +1 -0
  733. package/dist/esm/component-utils-211670cd.js +153 -0
  734. package/dist/esm/component-utils-211670cd.js.map +1 -0
  735. package/dist/esm/component-utils-7b24aa02.js +153 -0
  736. package/dist/esm/component-utils-7b24aa02.js.map +1 -0
  737. package/dist/esm/disconnected-a94f2aea.js +38 -0
  738. package/dist/esm/disconnected-a94f2aea.js.map +1 -0
  739. package/dist/esm/{index-334b0bde.js → index-344075c3.js} +3 -8
  740. package/dist/esm/index-344075c3.js.map +1 -0
  741. package/dist/esm/index-41244c71.js +655 -0
  742. package/dist/esm/index-41244c71.js.map +1 -0
  743. package/dist/{cjs/index-6b51d5a0.js → esm/index-525856d7.js} +1025 -313
  744. package/dist/esm/index-525856d7.js.map +1 -0
  745. package/dist/esm/index-75c44cd3.js +655 -0
  746. package/dist/esm/index-75c44cd3.js.map +1 -0
  747. package/dist/esm/index.js +2 -0
  748. package/dist/esm/index.js.map +1 -0
  749. package/dist/esm/loader.js +6 -13
  750. package/dist/esm/loader.js.map +1 -0
  751. package/dist/loader/index.d.ts +2 -2
  752. package/dist/types/components/area-measurement-2d/area-measurement-2d.d.ts +31 -0
  753. package/dist/types/components/area-measurement-3d/area-measurement-3d.d.ts +30 -0
  754. package/dist/types/components/attachments/attachments.d.ts +33 -0
  755. package/dist/types/components/basemap-gallery/basemap-gallery.d.ts +31 -0
  756. package/dist/types/components/basemap-layer-list/basemap-layer-list.d.ts +44 -0
  757. package/dist/types/components/basemap-toggle/basemap-toggle.d.ts +34 -0
  758. package/dist/types/components/bookmarks/bookmarks.d.ts +41 -0
  759. package/dist/types/components/building-explorer/building-explorer.d.ts +31 -0
  760. package/dist/types/components/compass/compass.d.ts +25 -0
  761. package/dist/types/components/coordinate-conversion/coordinate-conversion.d.ts +48 -0
  762. package/dist/types/components/daylight/daylight.d.ts +35 -0
  763. package/dist/types/components/directions/directions.d.ts +50 -0
  764. package/dist/types/components/directline-measurement-3d/directline-measurement-3d.d.ts +33 -0
  765. package/dist/types/components/distance-measurement-2d/distance-measurement-2d.d.ts +31 -0
  766. package/dist/types/components/editor/editor.d.ts +50 -0
  767. package/dist/types/components/elevation-profile/elevation-profile.d.ts +40 -0
  768. package/dist/types/components/expand/expand.d.ts +48 -0
  769. package/dist/types/components/feature/feature.d.ts +38 -0
  770. package/dist/types/components/feature-form/feature-form.d.ts +42 -0
  771. package/dist/types/components/feature-table/feature-table.d.ts +78 -0
  772. package/dist/types/components/feature-templates/feature-templates.d.ts +38 -0
  773. package/dist/types/components/features/features.d.ts +46 -0
  774. package/dist/types/components/floor-filter/floor-filter.d.ts +36 -0
  775. package/dist/types/components/fullscreen/fullscreen.d.ts +26 -0
  776. package/dist/types/components/histogram/histogram.d.ts +41 -0
  777. package/dist/types/components/histogram-range-slider/histogram-range-slider.d.ts +52 -0
  778. package/dist/types/components/home/home.d.ts +32 -0
  779. package/dist/types/components/layer-list/layer-list.d.ts +42 -0
  780. package/dist/types/components/legend/legend.d.ts +39 -0
  781. package/dist/types/components/line-of-sight/line-of-sight.d.ts +29 -0
  782. package/dist/types/components/locate/locate.d.ts +41 -0
  783. package/dist/types/components/map/map.d.ts +115 -0
  784. package/dist/types/components/measurement/measurement.d.ts +36 -0
  785. package/dist/types/components/navigation-toggle/navigation-toggle.d.ts +27 -0
  786. package/dist/types/components/placement/placement.d.ts +18 -0
  787. package/dist/types/components/print/print.d.ts +48 -0
  788. package/dist/types/components/scale-bar/scale-bar.d.ts +31 -0
  789. package/dist/types/components/scale-range-slider/scale-range-slider.d.ts +43 -0
  790. package/dist/types/components/scene/scene.d.ts +125 -0
  791. package/dist/types/components/search/search.d.ts +83 -0
  792. package/dist/types/components/shadow-cast/shadow-cast.d.ts +29 -0
  793. package/dist/types/components/sketch/sketch.d.ts +56 -0
  794. package/dist/types/components/slice/slice.d.ts +29 -0
  795. package/dist/types/components/slider/slider.d.ts +72 -0
  796. package/dist/types/components/swipe/swipe.d.ts +34 -0
  797. package/dist/types/components/table-list/table-list.d.ts +40 -0
  798. package/dist/types/components/time-slider/time-slider.d.ts +57 -0
  799. package/dist/types/components/track/track.d.ts +39 -0
  800. package/dist/types/components/utility-network-associations/utility-network-associations.d.ts +55 -0
  801. package/dist/types/components/utility-network-trace/utility-network-trace.d.ts +49 -0
  802. package/dist/types/components/utility-network-validate-topology/utility-network-validate-topology.d.ts +31 -0
  803. package/dist/types/components/value-picker/value-picker.d.ts +51 -0
  804. package/dist/types/components/weather/weather.d.ts +29 -0
  805. package/dist/types/components/zoom/zoom.d.ts +28 -0
  806. package/dist/types/components.d.ts +1213 -87
  807. package/dist/types/stencil-public-runtime.d.ts +61 -17
  808. package/dist/types/utils/SubWidget.d.ts +22 -0
  809. package/dist/types/utils/Widget.d.ts +38 -0
  810. package/dist/types/utils/component-utils.d.ts +28 -18
  811. package/dist/types/utils/disconnected.d.ts +1 -1
  812. package/dist/types/utils/expandable.d.ts +5 -4
  813. package/dist/types/utils/globalCss.d.ts +43 -0
  814. package/dist/types/utils/legacyIcon.d.ts +100 -0
  815. package/dist/types/utils/mapping-utils.d.ts +1 -1
  816. package/dist/types/utils/types.d.ts +3 -0
  817. package/package.json +22 -24
  818. package/dist/arcgis-map-components/p-037a3bb6.entry.js +0 -1
  819. package/dist/arcgis-map-components/p-064bf907.entry.js +0 -1
  820. package/dist/arcgis-map-components/p-08015460.entry.js +0 -1
  821. package/dist/arcgis-map-components/p-0d492ad6.entry.js +0 -1
  822. package/dist/arcgis-map-components/p-0ee8ea5a.entry.js +0 -1
  823. package/dist/arcgis-map-components/p-11168df4.entry.js +0 -1
  824. package/dist/arcgis-map-components/p-1680f044.entry.js +0 -1
  825. package/dist/arcgis-map-components/p-1a6dcf6a.entry.js +0 -1
  826. package/dist/arcgis-map-components/p-1e5e5ed9.js +0 -2
  827. package/dist/arcgis-map-components/p-29c81862.entry.js +0 -1
  828. package/dist/arcgis-map-components/p-2d3406f7.js +0 -1
  829. package/dist/arcgis-map-components/p-347dba98.entry.js +0 -1
  830. package/dist/arcgis-map-components/p-3673ae6e.entry.js +0 -1
  831. package/dist/arcgis-map-components/p-367c6986.entry.js +0 -1
  832. package/dist/arcgis-map-components/p-3b2623c6.entry.js +0 -1
  833. package/dist/arcgis-map-components/p-4722bbad.entry.js +0 -1
  834. package/dist/arcgis-map-components/p-48c89578.entry.js +0 -1
  835. package/dist/arcgis-map-components/p-5299aa69.entry.js +0 -1
  836. package/dist/arcgis-map-components/p-52c3388d.entry.js +0 -1
  837. package/dist/arcgis-map-components/p-5d2f53bd.entry.js +0 -1
  838. package/dist/arcgis-map-components/p-615399dd.entry.js +0 -1
  839. package/dist/arcgis-map-components/p-658a2499.entry.js +0 -1
  840. package/dist/arcgis-map-components/p-7031c422.entry.js +0 -1
  841. package/dist/arcgis-map-components/p-7084f84f.entry.js +0 -1
  842. package/dist/arcgis-map-components/p-74b7f2c3.entry.js +0 -1
  843. package/dist/arcgis-map-components/p-86a82586.entry.js +0 -1
  844. package/dist/arcgis-map-components/p-8a60074a.entry.js +0 -1
  845. package/dist/arcgis-map-components/p-8b4cf5da.entry.js +0 -1
  846. package/dist/arcgis-map-components/p-922bbfed.entry.js +0 -1
  847. package/dist/arcgis-map-components/p-932be58c.entry.js +0 -1
  848. package/dist/arcgis-map-components/p-99d486cb.entry.js +0 -1
  849. package/dist/arcgis-map-components/p-9fdd4596.entry.js +0 -1
  850. package/dist/arcgis-map-components/p-a0f092fc.entry.js +0 -1
  851. package/dist/arcgis-map-components/p-a1e2e59f.entry.js +0 -1
  852. package/dist/arcgis-map-components/p-a249c2fa.entry.js +0 -1
  853. package/dist/arcgis-map-components/p-a508d7c6.entry.js +0 -1
  854. package/dist/arcgis-map-components/p-a89102b6.entry.js +0 -1
  855. package/dist/arcgis-map-components/p-ac7e9294.entry.js +0 -1
  856. package/dist/arcgis-map-components/p-adcfd40d.entry.js +0 -1
  857. package/dist/arcgis-map-components/p-ae96d72a.entry.js +0 -1
  858. package/dist/arcgis-map-components/p-b026950f.entry.js +0 -1
  859. package/dist/arcgis-map-components/p-b5904340.entry.js +0 -1
  860. package/dist/arcgis-map-components/p-b813c9e6.js +0 -1
  861. package/dist/arcgis-map-components/p-c57f270d.entry.js +0 -1
  862. package/dist/arcgis-map-components/p-c63d9e91.entry.js +0 -1
  863. package/dist/arcgis-map-components/p-c8516f87.entry.js +0 -1
  864. package/dist/arcgis-map-components/p-d3f3affa.entry.js +0 -1
  865. package/dist/arcgis-map-components/p-d5ac71b2.entry.js +0 -1
  866. package/dist/arcgis-map-components/p-dcf3861b.entry.js +0 -1
  867. package/dist/arcgis-map-components/p-e1201530.entry.js +0 -1
  868. package/dist/arcgis-map-components/p-eb95717e.entry.js +0 -1
  869. package/dist/arcgis-map-components/p-ee1086de.entry.js +0 -1
  870. package/dist/arcgis-map-components/p-f28d6d27.js +0 -1
  871. package/dist/arcgis-map-components/p-f8353590.entry.js +0 -1
  872. package/dist/cjs/arcgis-basemap-gallery.cjs.entry.js +0 -97
  873. package/dist/cjs/arcgis-expand_4.cjs.entry.js +0 -693
  874. package/dist/cjs/component-utils-cbd20e88.js +0 -77
  875. package/dist/cjs/disconnected-306cb220.js +0 -55
  876. package/dist/components/arcgis-expand2.js +0 -107
  877. package/dist/components/mapping-utils.js +0 -38
  878. package/dist/esm/arcgis-basemap-gallery.entry.js +0 -93
  879. package/dist/esm/arcgis-expand_4.entry.js +0 -686
  880. package/dist/esm/component-utils-2ebdae59.js +0 -73
  881. package/dist/esm/disconnected-bc5fc8bc.js +0 -52
  882. package/dist/esm/index-eb3ead33.js +0 -1583
  883. package/dist/esm/polyfills/css-shim.js +0 -1
  884. package/dist/types/components/arcgis-area-measurement-2d/arcgis-area-measurement-2d.d.ts +0 -29
  885. package/dist/types/components/arcgis-area-measurement-3d/arcgis-area-measurement-3d.d.ts +0 -28
  886. package/dist/types/components/arcgis-attachments/arcgis-attachments.d.ts +0 -24
  887. package/dist/types/components/arcgis-basemap-gallery/arcgis-basemap-gallery.d.ts +0 -29
  888. package/dist/types/components/arcgis-basemap-layer-list/arcgis-basemap-layer-list.d.ts +0 -37
  889. package/dist/types/components/arcgis-basemap-toggle/arcgis-basemap-toggle.d.ts +0 -31
  890. package/dist/types/components/arcgis-bookmarks/arcgis-bookmarks.d.ts +0 -38
  891. package/dist/types/components/arcgis-building-explorer/arcgis-building-explorer.d.ts +0 -25
  892. package/dist/types/components/arcgis-compass/arcgis-compass.d.ts +0 -24
  893. package/dist/types/components/arcgis-coordinate-conversion/arcgis-coordinate-conversion.d.ts +0 -45
  894. package/dist/types/components/arcgis-daylight/arcgis-daylight.d.ts +0 -32
  895. package/dist/types/components/arcgis-directions/arcgis-directions.d.ts +0 -46
  896. package/dist/types/components/arcgis-directline-measurement-3d/arcgis-directline-measurement-3d.d.ts +0 -32
  897. package/dist/types/components/arcgis-distance-measurement-2d/arcgis-distance-measurement-2d.d.ts +0 -30
  898. package/dist/types/components/arcgis-editor/arcgis-editor.d.ts +0 -47
  899. package/dist/types/components/arcgis-elevation-profile/arcgis-elevation-profile.d.ts +0 -36
  900. package/dist/types/components/arcgis-expand/arcgis-expand.d.ts +0 -23
  901. package/dist/types/components/arcgis-feature/arcgis-feature.d.ts +0 -30
  902. package/dist/types/components/arcgis-feature-form/arcgis-feature-form.d.ts +0 -18
  903. package/dist/types/components/arcgis-feature-table/arcgis-feature-table.d.ts +0 -71
  904. package/dist/types/components/arcgis-feature-templates/arcgis-feature-templates.d.ts +0 -24
  905. package/dist/types/components/arcgis-features/arcgis-features.d.ts +0 -37
  906. package/dist/types/components/arcgis-floor-filter/arcgis-floor-filter.d.ts +0 -35
  907. package/dist/types/components/arcgis-fullscreen/arcgis-fullscreen.d.ts +0 -25
  908. package/dist/types/components/arcgis-histogram/arcgis-histogram.d.ts +0 -18
  909. package/dist/types/components/arcgis-histogram-range-slider/arcgis-histogram-range-slider.d.ts +0 -25
  910. package/dist/types/components/arcgis-home/arcgis-home.d.ts +0 -29
  911. package/dist/types/components/arcgis-layer-list/arcgis-layer-list.d.ts +0 -37
  912. package/dist/types/components/arcgis-legend/arcgis-legend.d.ts +0 -38
  913. package/dist/types/components/arcgis-line-of-sight/arcgis-line-of-sight.d.ts +0 -28
  914. package/dist/types/components/arcgis-locate/arcgis-locate.d.ts +0 -40
  915. package/dist/types/components/arcgis-map/arcgis-map.d.ts +0 -35
  916. package/dist/types/components/arcgis-measurement/arcgis-measurement.d.ts +0 -35
  917. package/dist/types/components/arcgis-navigation-toggle/arcgis-navigation-toggle.d.ts +0 -26
  918. package/dist/types/components/arcgis-print/arcgis-print.d.ts +0 -47
  919. package/dist/types/components/arcgis-scale-bar/arcgis-scale-bar.d.ts +0 -30
  920. package/dist/types/components/arcgis-scale-range-slider/arcgis-scale-range-slider.d.ts +0 -40
  921. package/dist/types/components/arcgis-scene/arcgis-scene.d.ts +0 -31
  922. package/dist/types/components/arcgis-search/arcgis-search.d.ts +0 -82
  923. package/dist/types/components/arcgis-shadow-cast/arcgis-shadow-cast.d.ts +0 -28
  924. package/dist/types/components/arcgis-sketch/arcgis-sketch.d.ts +0 -53
  925. package/dist/types/components/arcgis-slice/arcgis-slice.d.ts +0 -30
  926. package/dist/types/components/arcgis-slider/arcgis-slider.d.ts +0 -71
  927. package/dist/types/components/arcgis-swipe/arcgis-swipe.d.ts +0 -33
  928. package/dist/types/components/arcgis-table-list/arcgis-table-list.d.ts +0 -35
  929. package/dist/types/components/arcgis-time-slider/arcgis-time-slider.d.ts +0 -54
  930. package/dist/types/components/arcgis-track/arcgis-track.d.ts +0 -38
  931. package/dist/types/components/arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts +0 -52
  932. package/dist/types/components/arcgis-utility-network-trace/arcgis-utility-network-trace.d.ts +0 -48
  933. package/dist/types/components/arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts +0 -30
  934. package/dist/types/components/arcgis-value-picker/arcgis-value-picker.d.ts +0 -48
  935. package/dist/types/components/arcgis-weather/arcgis-weather.d.ts +0 -26
  936. package/dist/types/components/arcgis-zoom/arcgis-zoom.d.ts +0 -27
@@ -0,0 +1,2351 @@
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'arcgis-map-components';
24
+ const BUILD = /* arcgis-map-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: false, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
25
+
26
+ /**
27
+ * Virtual DOM patching algorithm based on Snabbdom by
28
+ * Simon Friis Vindum (@paldepind)
29
+ * Licensed under the MIT License
30
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
31
+ *
32
+ * Modified for Stencil's renderer and slot projection
33
+ */
34
+ let contentRef;
35
+ let hostTagName;
36
+ let useNativeShadowDom = false;
37
+ let checkSlotFallbackVisibility = false;
38
+ let checkSlotRelocate = false;
39
+ let isSvgMode = false;
40
+ let queuePending = false;
41
+ const createTime = (fnName, tagName = '') => {
42
+ {
43
+ return () => {
44
+ return;
45
+ };
46
+ }
47
+ };
48
+ const uniqueTime = (key, measureText) => {
49
+ {
50
+ return () => {
51
+ return;
52
+ };
53
+ }
54
+ };
55
+ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
56
+ /**
57
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
58
+ *
59
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
60
+ * support as of Stencil v4.
61
+ */
62
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
63
+ /**
64
+ * Default style mode id
65
+ */
66
+ /**
67
+ * Reusable empty obj/array
68
+ * Don't add values to these!!
69
+ */
70
+ const EMPTY_OBJ = {};
71
+ /**
72
+ * Check whether a value is a 'complex type', defined here as an object or a
73
+ * function.
74
+ *
75
+ * @param o the value to check
76
+ * @returns whether it's a complex type or not
77
+ */
78
+ const isComplexType = (o) => {
79
+ // https://jsperf.com/typeof-fn-object/5
80
+ o = typeof o;
81
+ return o === 'object' || o === 'function';
82
+ };
83
+ /**
84
+ * Helper method for querying a `meta` tag that contains a nonce value
85
+ * out of a DOM's head.
86
+ *
87
+ * @param doc The DOM containing the `head` to query against
88
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
89
+ * exists or the tag has no content.
90
+ */
91
+ function queryNonceMetaTagContent(doc) {
92
+ var _a, _b, _c;
93
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
94
+ }
95
+ /**
96
+ * Production h() function based on Preact by
97
+ * Jason Miller (@developit)
98
+ * Licensed under the MIT License
99
+ * https://github.com/developit/preact/blob/master/LICENSE
100
+ *
101
+ * Modified for Stencil's compiler and vdom
102
+ */
103
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
104
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
105
+ const h = (nodeName, vnodeData, ...children) => {
106
+ let child = null;
107
+ let slotName = null;
108
+ let simple = false;
109
+ let lastSimple = false;
110
+ const vNodeChildren = [];
111
+ const walk = (c) => {
112
+ for (let i = 0; i < c.length; i++) {
113
+ child = c[i];
114
+ if (Array.isArray(child)) {
115
+ walk(child);
116
+ }
117
+ else if (child != null && typeof child !== 'boolean') {
118
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
119
+ child = String(child);
120
+ }
121
+ if (simple && lastSimple) {
122
+ // If the previous child was simple (string), we merge both
123
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
124
+ }
125
+ else {
126
+ // Append a new vNode, if it's text, we create a text vNode
127
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
128
+ }
129
+ lastSimple = simple;
130
+ }
131
+ }
132
+ };
133
+ walk(children);
134
+ if (vnodeData) {
135
+ if (vnodeData.name) {
136
+ slotName = vnodeData.name;
137
+ }
138
+ // normalize class / className attributes
139
+ {
140
+ const classData = vnodeData.className || vnodeData.class;
141
+ if (classData) {
142
+ vnodeData.class =
143
+ typeof classData !== 'object'
144
+ ? classData
145
+ : Object.keys(classData)
146
+ .filter((k) => classData[k])
147
+ .join(' ');
148
+ }
149
+ }
150
+ }
151
+ const vnode = newVNode(nodeName, null);
152
+ vnode.$attrs$ = vnodeData;
153
+ if (vNodeChildren.length > 0) {
154
+ vnode.$children$ = vNodeChildren;
155
+ }
156
+ {
157
+ vnode.$name$ = slotName;
158
+ }
159
+ return vnode;
160
+ };
161
+ /**
162
+ * A utility function for creating a virtual DOM node from a tag and some
163
+ * possible text content.
164
+ *
165
+ * @param tag the tag for this element
166
+ * @param text possible text content for the node
167
+ * @returns a newly-minted virtual DOM node
168
+ */
169
+ const newVNode = (tag, text) => {
170
+ const vnode = {
171
+ $flags$: 0,
172
+ $tag$: tag,
173
+ $text$: text,
174
+ $elm$: null,
175
+ $children$: null,
176
+ };
177
+ {
178
+ vnode.$attrs$ = null;
179
+ }
180
+ {
181
+ vnode.$name$ = null;
182
+ }
183
+ return vnode;
184
+ };
185
+ const Host = {};
186
+ /**
187
+ * Check whether a given node is a Host node or not
188
+ *
189
+ * @param node the virtual DOM node to check
190
+ * @returns whether it's a Host node or not
191
+ */
192
+ const isHost = (node) => node && node.$tag$ === Host;
193
+ /**
194
+ * Parse a new property value for a given property type.
195
+ *
196
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
197
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
198
+ * 1. `any`, the type given to `propValue` in the function signature
199
+ * 2. the type stored from `propType`.
200
+ *
201
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
202
+ *
203
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
204
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
205
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
206
+ * ```tsx
207
+ * <my-cmp prop-val={0}></my-cmp>
208
+ * ```
209
+ *
210
+ * HTML prop values on the other hand, will always a string
211
+ *
212
+ * @param propValue the new value to coerce to some type
213
+ * @param propType the type of the prop, expressed as a binary number
214
+ * @returns the parsed/coerced value
215
+ */
216
+ const parsePropertyValue = (propValue, propType) => {
217
+ // ensure this value is of the correct prop type
218
+ if (propValue != null && !isComplexType(propValue)) {
219
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
220
+ // per the HTML spec, any string value means it is a boolean true value
221
+ // but we'll cheat here and say that the string "false" is the boolean false
222
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
223
+ }
224
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
225
+ // force it to be a number
226
+ return parseFloat(propValue);
227
+ }
228
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
229
+ // could have been passed as a number or boolean
230
+ // but we still want it as a string
231
+ return String(propValue);
232
+ }
233
+ // redundant return here for better minification
234
+ return propValue;
235
+ }
236
+ // not sure exactly what type we want
237
+ // so no need to change to a different type
238
+ return propValue;
239
+ };
240
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
241
+ const createEvent = (ref, name, flags) => {
242
+ const elm = getElement(ref);
243
+ return {
244
+ emit: (detail) => {
245
+ return emitEvent(elm, name, {
246
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
247
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
248
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
249
+ detail,
250
+ });
251
+ },
252
+ };
253
+ };
254
+ /**
255
+ * Helper function to create & dispatch a custom Event on a provided target
256
+ * @param elm the target of the Event
257
+ * @param name the name to give the custom Event
258
+ * @param opts options for configuring a custom Event
259
+ * @returns the custom Event
260
+ */
261
+ const emitEvent = (elm, name, opts) => {
262
+ const ev = plt.ce(name, opts);
263
+ elm.dispatchEvent(ev);
264
+ return ev;
265
+ };
266
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
267
+ const registerStyle = (scopeId, cssText, allowCS) => {
268
+ let style = styles.get(scopeId);
269
+ if (supportsConstructableStylesheets && allowCS) {
270
+ style = (style || new CSSStyleSheet());
271
+ if (typeof style === 'string') {
272
+ style = cssText;
273
+ }
274
+ else {
275
+ style.replaceSync(cssText);
276
+ }
277
+ }
278
+ else {
279
+ style = cssText;
280
+ }
281
+ styles.set(scopeId, style);
282
+ };
283
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
284
+ var _a;
285
+ const scopeId = getScopeId(cmpMeta);
286
+ const style = styles.get(scopeId);
287
+ // if an element is NOT connected then getRootNode() will return the wrong root node
288
+ // so the fallback is to always use the document for the root node in those cases
289
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
290
+ if (style) {
291
+ if (typeof style === 'string') {
292
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
293
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
294
+ let styleElm;
295
+ if (!appliedStyles) {
296
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
297
+ }
298
+ if (!appliedStyles.has(scopeId)) {
299
+ {
300
+ styleElm = doc.createElement('style');
301
+ styleElm.innerHTML = style;
302
+ // Apply CSP nonce to the style tag if it exists
303
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
304
+ if (nonce != null) {
305
+ styleElm.setAttribute('nonce', nonce);
306
+ }
307
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
308
+ }
309
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
310
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
311
+ styleElm.innerHTML += SLOT_FB_CSS;
312
+ }
313
+ if (appliedStyles) {
314
+ appliedStyles.add(scopeId);
315
+ }
316
+ }
317
+ }
318
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
319
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
320
+ }
321
+ }
322
+ return scopeId;
323
+ };
324
+ const attachStyles = (hostRef) => {
325
+ const cmpMeta = hostRef.$cmpMeta$;
326
+ const elm = hostRef.$hostElement$;
327
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
328
+ addStyle(elm.getRootNode(), cmpMeta);
329
+ endAttachStyles();
330
+ };
331
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
332
+ /**
333
+ * Production setAccessor() function based on Preact by
334
+ * Jason Miller (@developit)
335
+ * Licensed under the MIT License
336
+ * https://github.com/developit/preact/blob/master/LICENSE
337
+ *
338
+ * Modified for Stencil's compiler and vdom
339
+ */
340
+ /**
341
+ * When running a VDom render set properties present on a VDom node onto the
342
+ * corresponding HTML element.
343
+ *
344
+ * Note that this function has special functionality for the `class`,
345
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
346
+ * `onClick`, etc). All others are just passed through as-is.
347
+ *
348
+ * @param elm the HTMLElement onto which attributes should be set
349
+ * @param memberName the name of the attribute to set
350
+ * @param oldValue the old value for the attribute
351
+ * @param newValue the new value for the attribute
352
+ * @param isSvg whether we're in an svg context or not
353
+ * @param flags bitflags for Vdom variables
354
+ */
355
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
356
+ if (oldValue !== newValue) {
357
+ let isProp = isMemberInElement(elm, memberName);
358
+ memberName.toLowerCase();
359
+ if (memberName === 'class') {
360
+ const classList = elm.classList;
361
+ const oldClasses = parseClassList(oldValue);
362
+ const newClasses = parseClassList(newValue);
363
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
364
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
365
+ }
366
+ else if (memberName === 'ref') {
367
+ // minifier will clean this up
368
+ if (newValue) {
369
+ newValue(elm);
370
+ }
371
+ }
372
+ else {
373
+ // Set property if it exists and it's not a SVG
374
+ const isComplex = isComplexType(newValue);
375
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
376
+ try {
377
+ if (!elm.tagName.includes('-')) {
378
+ const n = newValue == null ? '' : newValue;
379
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
380
+ if (memberName === 'list') {
381
+ isProp = false;
382
+ }
383
+ else if (oldValue == null || elm[memberName] != n) {
384
+ elm[memberName] = n;
385
+ }
386
+ }
387
+ else {
388
+ elm[memberName] = newValue;
389
+ }
390
+ }
391
+ catch (e) {
392
+ /**
393
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
394
+ */
395
+ }
396
+ }
397
+ if (newValue == null || newValue === false) {
398
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
399
+ {
400
+ elm.removeAttribute(memberName);
401
+ }
402
+ }
403
+ }
404
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
405
+ newValue = newValue === true ? '' : newValue;
406
+ {
407
+ elm.setAttribute(memberName, newValue);
408
+ }
409
+ }
410
+ }
411
+ }
412
+ };
413
+ const parseClassListRegex = /\s/;
414
+ /**
415
+ * Parsed a string of classnames into an array
416
+ * @param value className string, e.g. "foo bar baz"
417
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
418
+ */
419
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
420
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
421
+ // if the element passed in is a shadow root, which is a document fragment
422
+ // then we want to be adding attrs/props to the shadow root's "host" element
423
+ // if it's not a shadow root, then we add attrs/props to the same element
424
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
425
+ ? newVnode.$elm$.host
426
+ : newVnode.$elm$;
427
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
428
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
429
+ {
430
+ // remove attributes no longer present on the vnode by setting them to undefined
431
+ for (memberName in oldVnodeAttrs) {
432
+ if (!(memberName in newVnodeAttrs)) {
433
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
434
+ }
435
+ }
436
+ }
437
+ // add new & update changed attributes
438
+ for (memberName in newVnodeAttrs) {
439
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
440
+ }
441
+ };
442
+ /**
443
+ * Create a DOM Node corresponding to one of the children of a given VNode.
444
+ *
445
+ * @param oldParentVNode the parent VNode from the previous render
446
+ * @param newParentVNode the parent VNode from the current render
447
+ * @param childIndex the index of the VNode, in the _new_ parent node's
448
+ * children, for which we will create a new DOM node
449
+ * @param parentElm the parent DOM node which our new node will be a child of
450
+ * @returns the newly created node
451
+ */
452
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
453
+ var _a;
454
+ // tslint:disable-next-line: prefer-const
455
+ const newVNode = newParentVNode.$children$[childIndex];
456
+ let i = 0;
457
+ let elm;
458
+ let childNode;
459
+ let oldVNode;
460
+ if (!useNativeShadowDom) {
461
+ // remember for later we need to check to relocate nodes
462
+ checkSlotRelocate = true;
463
+ if (newVNode.$tag$ === 'slot') {
464
+ newVNode.$flags$ |= newVNode.$children$
465
+ ? // slot element has fallback content
466
+ 2 /* VNODE_FLAGS.isSlotFallback */
467
+ : // slot element does not have fallback content
468
+ 1 /* VNODE_FLAGS.isSlotReference */;
469
+ }
470
+ }
471
+ if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
472
+ // create a slot reference node
473
+ elm = newVNode.$elm$ =
474
+ doc.createTextNode('');
475
+ }
476
+ else {
477
+ // create element
478
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
479
+ ? 'slot-fb'
480
+ : newVNode.$tag$));
481
+ // add css classes, attrs, props, listeners, etc.
482
+ {
483
+ updateElement(null, newVNode, isSvgMode);
484
+ }
485
+ if (newVNode.$children$) {
486
+ for (i = 0; i < newVNode.$children$.length; ++i) {
487
+ // create the node
488
+ childNode = createElm(oldParentVNode, newVNode, i);
489
+ // return node could have been null
490
+ if (childNode) {
491
+ // append our new node
492
+ elm.appendChild(childNode);
493
+ }
494
+ }
495
+ }
496
+ }
497
+ // This needs to always happen so we can hide nodes that are projected
498
+ // to another component but don't end up in a slot
499
+ elm['s-hn'] = hostTagName;
500
+ {
501
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
502
+ // remember the content reference comment
503
+ elm['s-sr'] = true;
504
+ // Persist the name of the slot that this slot was going to be projected into.
505
+ elm['s-fs'] = (_a = newVNode.$attrs$) === null || _a === void 0 ? void 0 : _a.slot;
506
+ // remember the content reference comment
507
+ elm['s-cr'] = contentRef;
508
+ // remember the slot name, or empty string for default slot
509
+ elm['s-sn'] = newVNode.$name$ || '';
510
+ // check if we've got an old vnode for this slot
511
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
512
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
513
+ {
514
+ // we've got an old slot vnode and the wrapper is being replaced
515
+ // so let's move the old slot content back to its original location
516
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
517
+ }
518
+ }
519
+ }
520
+ }
521
+ return elm;
522
+ };
523
+ const putBackInOriginalLocation = (parentElm, recursive) => {
524
+ var _a;
525
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
526
+ const oldSlotChildNodes = parentElm.childNodes;
527
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
528
+ const childNode = oldSlotChildNodes[i];
529
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
530
+ // and relocate it back to it's original location
531
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
532
+ // remove the old original location comment entirely
533
+ // later on the patch function will know what to do
534
+ // and move this to the correct spot if need be
535
+ childNode['s-ol'].remove();
536
+ childNode['s-ol'] = undefined;
537
+ // Reset so we can correctly move the node around again.
538
+ childNode['s-sh'] = undefined;
539
+ // When putting an element node back in its original location,
540
+ // we need to reset the `slot` attribute back to the value it originally had
541
+ // so we can correctly relocate it again in the future
542
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
543
+ childNode.setAttribute('slot', (_a = childNode['s-sn']) !== null && _a !== void 0 ? _a : '');
544
+ }
545
+ checkSlotRelocate = true;
546
+ }
547
+ if (recursive) {
548
+ putBackInOriginalLocation(childNode, recursive);
549
+ }
550
+ }
551
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
552
+ };
553
+ /**
554
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
555
+ * add them to the DOM in the appropriate place.
556
+ *
557
+ * @param parentElm the DOM node which should be used as a parent for the new
558
+ * DOM nodes
559
+ * @param before a child of the `parentElm` which the new children should be
560
+ * inserted before (optional)
561
+ * @param parentVNode the parent virtual DOM node
562
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
563
+ * @param startIdx the index in the child virtual DOM nodes at which to start
564
+ * creating DOM nodes (inclusive)
565
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
566
+ * creating DOM nodes (inclusive)
567
+ */
568
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
569
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
570
+ let childNode;
571
+ for (; startIdx <= endIdx; ++startIdx) {
572
+ if (vnodes[startIdx]) {
573
+ childNode = createElm(null, parentVNode, startIdx);
574
+ if (childNode) {
575
+ vnodes[startIdx].$elm$ = childNode;
576
+ containerElm.insertBefore(childNode, referenceNode(before) );
577
+ }
578
+ }
579
+ }
580
+ };
581
+ /**
582
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
583
+ * This can be used to, for instance, clean up after a list of children which
584
+ * should no longer be shown.
585
+ *
586
+ * This function also handles some of Stencil's slot relocation logic.
587
+ *
588
+ * @param vnodes a list of virtual DOM nodes to remove
589
+ * @param startIdx the index at which to start removing nodes (inclusive)
590
+ * @param endIdx the index at which to stop removing nodes (inclusive)
591
+ */
592
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
593
+ for (let index = startIdx; index <= endIdx; ++index) {
594
+ const vnode = vnodes[index];
595
+ if (vnode) {
596
+ const elm = vnode.$elm$;
597
+ nullifyVNodeRefs(vnode);
598
+ if (elm) {
599
+ {
600
+ // we're removing this element
601
+ // so it's possible we need to show slot fallback content now
602
+ checkSlotFallbackVisibility = true;
603
+ if (elm['s-ol']) {
604
+ // remove the original location comment
605
+ elm['s-ol'].remove();
606
+ }
607
+ else {
608
+ // it's possible that child nodes of the node
609
+ // that's being removed are slot nodes
610
+ putBackInOriginalLocation(elm, true);
611
+ }
612
+ }
613
+ // remove the vnode's element from the dom
614
+ elm.remove();
615
+ }
616
+ }
617
+ }
618
+ };
619
+ /**
620
+ * Reconcile the children of a new VNode with the children of an old VNode by
621
+ * traversing the two collections of children, identifying nodes that are
622
+ * conserved or changed, calling out to `patch` to make any necessary
623
+ * updates to the DOM, and rearranging DOM nodes as needed.
624
+ *
625
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
626
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
627
+ * 'windows' by storing start and end indices and references to the
628
+ * corresponding array entries. Initially the two 'windows' are basically equal
629
+ * to the entire array, but we progressively narrow the windows until there are
630
+ * no children left to update by doing the following:
631
+ *
632
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
633
+ * that if we have an initial array like the following we'll end up dealing
634
+ * only with a window bounded by the highlighted elements:
635
+ *
636
+ * [null, null, VNode1 , ... , VNode2, null, null]
637
+ * ^^^^^^ ^^^^^^
638
+ *
639
+ * 2. Check to see if the elements at the head and tail positions are equal
640
+ * across the windows. This will basically detect elements which haven't
641
+ * been added, removed, or changed position, i.e. if you had the following
642
+ * VNode elements (represented as HTML):
643
+ *
644
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
645
+ * newVNode: `<div><p><span>THERE</span></p></div>`
646
+ *
647
+ * Then when comparing the children of the `<div>` tag we check the equality
648
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
649
+ * same tag in the same position, we'd be able to avoid completely
650
+ * re-rendering the subtree under them with a new DOM element and would just
651
+ * call out to `patch` to handle reconciling their children and so on.
652
+ *
653
+ * 3. Check, for both windows, to see if the element at the beginning of the
654
+ * window corresponds to the element at the end of the other window. This is
655
+ * a heuristic which will let us identify _some_ situations in which
656
+ * elements have changed position, for instance it _should_ detect that the
657
+ * children nodes themselves have not changed but merely moved in the
658
+ * following example:
659
+ *
660
+ * oldVNode: `<div><element-one /><element-two /></div>`
661
+ * newVNode: `<div><element-two /><element-one /></div>`
662
+ *
663
+ * If we find cases like this then we also need to move the concrete DOM
664
+ * elements corresponding to the moved children to write the re-order to the
665
+ * DOM.
666
+ *
667
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
668
+ * nodes in the old children which have the same key as the first element in
669
+ * our window on the new children. If we find such a node we handle calling
670
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
671
+ * what we find.
672
+ *
673
+ * Finally, once we've narrowed our 'windows' to the point that either of them
674
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
675
+ * insertion or deletion that needs to happen to get a DOM state that correctly
676
+ * reflects the new child VNodes. If, for instance, after our window on the old
677
+ * children has collapsed we still have more nodes on the new children that
678
+ * we haven't dealt with yet then we need to add them, or if the new children
679
+ * collapse but we still have unhandled _old_ children then we need to make
680
+ * sure the corresponding DOM nodes are removed.
681
+ *
682
+ * @param parentElm the node into which the parent VNode is rendered
683
+ * @param oldCh the old children of the parent node
684
+ * @param newVNode the new VNode which will replace the parent
685
+ * @param newCh the new children of the parent node
686
+ */
687
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
688
+ let oldStartIdx = 0;
689
+ let newStartIdx = 0;
690
+ let oldEndIdx = oldCh.length - 1;
691
+ let oldStartVnode = oldCh[0];
692
+ let oldEndVnode = oldCh[oldEndIdx];
693
+ let newEndIdx = newCh.length - 1;
694
+ let newStartVnode = newCh[0];
695
+ let newEndVnode = newCh[newEndIdx];
696
+ let node;
697
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
698
+ if (oldStartVnode == null) {
699
+ // VNode might have been moved left
700
+ oldStartVnode = oldCh[++oldStartIdx];
701
+ }
702
+ else if (oldEndVnode == null) {
703
+ oldEndVnode = oldCh[--oldEndIdx];
704
+ }
705
+ else if (newStartVnode == null) {
706
+ newStartVnode = newCh[++newStartIdx];
707
+ }
708
+ else if (newEndVnode == null) {
709
+ newEndVnode = newCh[--newEndIdx];
710
+ }
711
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
712
+ // if the start nodes are the same then we should patch the new VNode
713
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
714
+ // indices to reflect that. We don't need to move any DOM Nodes around
715
+ // since things are matched up in order.
716
+ patch(oldStartVnode, newStartVnode);
717
+ oldStartVnode = oldCh[++oldStartIdx];
718
+ newStartVnode = newCh[++newStartIdx];
719
+ }
720
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
721
+ // likewise, if the end nodes are the same we patch new onto old and
722
+ // decrement our end indices, and also likewise in this case we don't
723
+ // need to move any DOM Nodes.
724
+ patch(oldEndVnode, newEndVnode);
725
+ oldEndVnode = oldCh[--oldEndIdx];
726
+ newEndVnode = newCh[--newEndIdx];
727
+ }
728
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
729
+ // case: "Vnode moved right"
730
+ //
731
+ // We've found that the last node in our window on the new children is
732
+ // the same VNode as the _first_ node in our window on the old children
733
+ // we're dealing with now. Visually, this is the layout of these two
734
+ // nodes:
735
+ //
736
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
737
+ // ^^^^^^^^^^^
738
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
739
+ // ^^^^^^^^^^^^^
740
+ //
741
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
742
+ // and move the DOM element for `oldStartVnode`.
743
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
744
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
745
+ }
746
+ patch(oldStartVnode, newEndVnode);
747
+ // We need to move the element for `oldStartVnode` into a position which
748
+ // will be appropriate for `newEndVnode`. For this we can use
749
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
750
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
751
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
752
+ //
753
+ // <old-start-node />
754
+ // <some-intervening-node />
755
+ // <old-end-node />
756
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
757
+ // <next-sibling />
758
+ //
759
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
760
+ // the node for `oldStartVnode` at the end of the children of
761
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
762
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
763
+ // append it to the children of the parent element.
764
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
765
+ oldStartVnode = oldCh[++oldStartIdx];
766
+ newEndVnode = newCh[--newEndIdx];
767
+ }
768
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
769
+ // case: "Vnode moved left"
770
+ //
771
+ // We've found that the first node in our window on the new children is
772
+ // the same VNode as the _last_ node in our window on the old children.
773
+ // Visually, this is the layout of these two nodes:
774
+ //
775
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
776
+ // ^^^^^^^^^^^^^
777
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
778
+ // ^^^^^^^^^^^
779
+ //
780
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
781
+ // (which will handle updating any changed attributes, reconciling their
782
+ // children etc) but we also need to move the DOM node to which
783
+ // `oldEndVnode` corresponds.
784
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
785
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
786
+ }
787
+ patch(oldEndVnode, newStartVnode);
788
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
789
+ // the same node, so since we're here we know that they are not. Thus we
790
+ // can move the element for `oldEndVnode` _before_ the element for
791
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
792
+ // future.
793
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
794
+ oldEndVnode = oldCh[--oldEndIdx];
795
+ newStartVnode = newCh[++newStartIdx];
796
+ }
797
+ else {
798
+ {
799
+ // We either didn't find an element in the old children that matches
800
+ // the key of the first new child OR the build is not using `key`
801
+ // attributes at all. In either case we need to create a new element
802
+ // for the new node.
803
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
804
+ newStartVnode = newCh[++newStartIdx];
805
+ }
806
+ if (node) {
807
+ // if we created a new node then handle inserting it to the DOM
808
+ {
809
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
810
+ }
811
+ }
812
+ }
813
+ }
814
+ if (oldStartIdx > oldEndIdx) {
815
+ // we have some more new nodes to add which don't match up with old nodes
816
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
817
+ }
818
+ else if (newStartIdx > newEndIdx) {
819
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
820
+ // in the new array, so lets remove them (which entails cleaning up the
821
+ // relevant DOM nodes)
822
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
823
+ }
824
+ };
825
+ /**
826
+ * Compare two VNodes to determine if they are the same
827
+ *
828
+ * **NB**: This function is an equality _heuristic_ based on the available
829
+ * information set on the two VNodes and can be misleading under certain
830
+ * circumstances. In particular, if the two nodes do not have `key` attrs
831
+ * (available under `$key$` on VNodes) then the function falls back on merely
832
+ * checking that they have the same tag.
833
+ *
834
+ * So, in other words, if `key` attrs are not set on VNodes which may be
835
+ * changing order within a `children` array or something along those lines then
836
+ * we could obtain a false negative and then have to do needless re-rendering
837
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
838
+ *
839
+ * @param leftVNode the first VNode to check
840
+ * @param rightVNode the second VNode to check
841
+ * @returns whether they're equal or not
842
+ */
843
+ const isSameVnode = (leftVNode, rightVNode) => {
844
+ // compare if two vnode to see if they're "technically" the same
845
+ // need to have the same element tag, and same key to be the same
846
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
847
+ if (leftVNode.$tag$ === 'slot') {
848
+ return leftVNode.$name$ === rightVNode.$name$;
849
+ }
850
+ return true;
851
+ }
852
+ return false;
853
+ };
854
+ const referenceNode = (node) => {
855
+ // this node was relocated to a new location in the dom
856
+ // because of some other component's slot
857
+ // but we still have an html comment in place of where
858
+ // it's original location was according to it's original vdom
859
+ return (node && node['s-ol']) || node;
860
+ };
861
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
862
+ /**
863
+ * Handle reconciling an outdated VNode with a new one which corresponds to
864
+ * it. This function handles flushing updates to the DOM and reconciling the
865
+ * children of the two nodes (if any).
866
+ *
867
+ * @param oldVNode an old VNode whose DOM element and children we want to update
868
+ * @param newVNode a new VNode representing an updated version of the old one
869
+ */
870
+ const patch = (oldVNode, newVNode) => {
871
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
872
+ const oldChildren = oldVNode.$children$;
873
+ const newChildren = newVNode.$children$;
874
+ const tag = newVNode.$tag$;
875
+ {
876
+ {
877
+ if (tag === 'slot')
878
+ ;
879
+ else {
880
+ // either this is the first render of an element OR it's an update
881
+ // AND we already know it's possible it could have changed
882
+ // this updates the element's css classes, attrs, props, listeners, etc.
883
+ updateElement(oldVNode, newVNode, isSvgMode);
884
+ }
885
+ }
886
+ if (oldChildren !== null && newChildren !== null) {
887
+ // looks like there's child vnodes for both the old and new vnodes
888
+ // so we need to call `updateChildren` to reconcile them
889
+ updateChildren(elm, oldChildren, newVNode, newChildren);
890
+ }
891
+ else if (newChildren !== null) {
892
+ // add the new vnode children
893
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
894
+ }
895
+ else if (oldChildren !== null) {
896
+ // no new child vnodes, but there are old child vnodes to remove
897
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
898
+ }
899
+ }
900
+ };
901
+ /**
902
+ * Adjust the `.hidden` property as-needed on any nodes in a DOM subtree which
903
+ * are slot fallbacks nodes.
904
+ *
905
+ * A slot fallback node should be visible by default. Then, it should be
906
+ * conditionally hidden if:
907
+ *
908
+ * - it has a sibling with a `slot` property set to its slot name or if
909
+ * - it is a default fallback slot node, in which case we hide if it has any
910
+ * content
911
+ *
912
+ * @param elm the element of interest
913
+ */
914
+ const updateFallbackSlotVisibility = (elm) => {
915
+ const childNodes = elm.childNodes;
916
+ for (const childNode of childNodes) {
917
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
918
+ if (childNode['s-sr']) {
919
+ // this is a slot fallback node
920
+ // get the slot name for this slot reference node
921
+ const slotName = childNode['s-sn'];
922
+ // by default always show a fallback slot node
923
+ // then hide it if there are other slots in the light dom
924
+ childNode.hidden = false;
925
+ // we need to check all of its sibling nodes in order to see if
926
+ // `childNode` should be hidden
927
+ for (const siblingNode of childNodes) {
928
+ // Don't check the node against itself
929
+ if (siblingNode !== childNode) {
930
+ if (siblingNode['s-hn'] !== childNode['s-hn'] || slotName !== '') {
931
+ // this sibling node is from a different component OR is a named
932
+ // fallback slot node
933
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ &&
934
+ (slotName === siblingNode.getAttribute('slot') || slotName === siblingNode['s-sn'])) {
935
+ childNode.hidden = true;
936
+ break;
937
+ }
938
+ }
939
+ else {
940
+ // this is a default fallback slot node
941
+ // any element or text node (with content)
942
+ // should hide the default fallback slot node
943
+ if (siblingNode.nodeType === 1 /* NODE_TYPE.ElementNode */ ||
944
+ (siblingNode.nodeType === 3 /* NODE_TYPE.TextNode */ && siblingNode.textContent.trim() !== '')) {
945
+ childNode.hidden = true;
946
+ break;
947
+ }
948
+ }
949
+ }
950
+ }
951
+ }
952
+ // keep drilling down
953
+ updateFallbackSlotVisibility(childNode);
954
+ }
955
+ }
956
+ };
957
+ /**
958
+ * Component-global information about nodes which are either currently being
959
+ * relocated or will be shortly.
960
+ */
961
+ const relocateNodes = [];
962
+ /**
963
+ * Mark the contents of a slot for relocation via adding references to them to
964
+ * the {@link relocateNodes} data structure. The actual work of relocating them
965
+ * will then be handled in {@link renderVdom}.
966
+ *
967
+ * @param elm a render node whose child nodes need to be relocated
968
+ */
969
+ const markSlotContentForRelocation = (elm) => {
970
+ // tslint:disable-next-line: prefer-const
971
+ let node;
972
+ let hostContentNodes;
973
+ let j;
974
+ for (const childNode of elm.childNodes) {
975
+ // we need to find child nodes which are slot references so we can then try
976
+ // to match them up with nodes that need to be relocated
977
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
978
+ // first get the content reference comment node ('s-cr'), then we get
979
+ // its parent, which is where all the host content is now
980
+ hostContentNodes = node.parentNode.childNodes;
981
+ const slotName = childNode['s-sn'];
982
+ // iterate through all the nodes under the location where the host was
983
+ // originally rendered
984
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
985
+ node = hostContentNodes[j];
986
+ // check that the node is not a content reference node or a node
987
+ // reference and then check that the host name does not match that of
988
+ // childNode.
989
+ // In addition, check that the slot either has not already been relocated, or
990
+ // that its current location's host is not childNode's host. This is essentially
991
+ // a check so that we don't try to relocate (and then hide) a node that is already
992
+ // where it should be.
993
+ if (!node['s-cn'] &&
994
+ !node['s-nr'] &&
995
+ node['s-hn'] !== childNode['s-hn'] &&
996
+ (!BUILD.experimentalSlotFixes )) {
997
+ // if `node` is located in the slot that `childNode` refers to (via the
998
+ // `'s-sn'` property) then we need to relocate it from it's current spot
999
+ // (under the host element parent) to the right slot location
1000
+ if (isNodeLocatedInSlot(node, slotName)) {
1001
+ // it's possible we've already decided to relocate this node
1002
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1003
+ // made some changes to slots
1004
+ // let's make sure we also double check
1005
+ // fallbacks are correctly hidden or shown
1006
+ checkSlotFallbackVisibility = true;
1007
+ // ensure that the slot-name attr is correct
1008
+ node['s-sn'] = node['s-sn'] || slotName;
1009
+ if (relocateNodeData) {
1010
+ relocateNodeData.$nodeToRelocate$['s-sh'] = childNode['s-hn'];
1011
+ // we marked this node for relocation previously but didn't find
1012
+ // out the slot reference node to which it needs to be relocated
1013
+ // so write it down now!
1014
+ relocateNodeData.$slotRefNode$ = childNode;
1015
+ }
1016
+ else {
1017
+ node['s-sh'] = childNode['s-hn'];
1018
+ // add to our list of nodes to relocate
1019
+ relocateNodes.push({
1020
+ $slotRefNode$: childNode,
1021
+ $nodeToRelocate$: node,
1022
+ });
1023
+ }
1024
+ if (node['s-sr']) {
1025
+ relocateNodes.map((relocateNode) => {
1026
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1027
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1028
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
1029
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1030
+ }
1031
+ }
1032
+ });
1033
+ }
1034
+ }
1035
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1036
+ // the node is not found within the slot (`childNode`) that we're
1037
+ // currently looking at, so we stick it into `relocateNodes` to
1038
+ // handle later. If we never find a home for this element then
1039
+ // we'll need to hide it
1040
+ relocateNodes.push({
1041
+ $nodeToRelocate$: node,
1042
+ });
1043
+ }
1044
+ }
1045
+ }
1046
+ }
1047
+ // if we're dealing with any type of element (capable of itself being a
1048
+ // slot reference or containing one) then we recur
1049
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1050
+ markSlotContentForRelocation(childNode);
1051
+ }
1052
+ }
1053
+ };
1054
+ /**
1055
+ * Check whether a node is located in a given named slot.
1056
+ *
1057
+ * @param nodeToRelocate the node of interest
1058
+ * @param slotName the slot name to check
1059
+ * @returns whether the node is located in the slot or not
1060
+ */
1061
+ const isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1062
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1063
+ if (nodeToRelocate.getAttribute('slot') === null && slotName === '') {
1064
+ // if the node doesn't have a slot attribute, and the slot we're checking
1065
+ // is not a named slot, then we assume the node should be within the slot
1066
+ return true;
1067
+ }
1068
+ if (nodeToRelocate.getAttribute('slot') === slotName) {
1069
+ return true;
1070
+ }
1071
+ return false;
1072
+ }
1073
+ if (nodeToRelocate['s-sn'] === slotName) {
1074
+ return true;
1075
+ }
1076
+ return slotName === '';
1077
+ };
1078
+ /**
1079
+ * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by calling
1080
+ * them with `null`. This signals that the DOM element corresponding to the VDom
1081
+ * node has been removed from the DOM.
1082
+ *
1083
+ * @param vNode a virtual DOM node
1084
+ */
1085
+ const nullifyVNodeRefs = (vNode) => {
1086
+ {
1087
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1088
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1089
+ }
1090
+ };
1091
+ /**
1092
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1093
+ *
1094
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1095
+ * function will handle creating a virtual DOM tree with a single root, patching
1096
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1097
+ * relocation, and reflecting attributes.
1098
+ *
1099
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1100
+ * the DOM node into which it should be rendered.
1101
+ * @param renderFnResults the virtual DOM nodes to be rendered
1102
+ * @param isInitialLoad whether or not this is the first call after page load
1103
+ */
1104
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1105
+ var _a, _b, _c, _d;
1106
+ const hostElm = hostRef.$hostElement$;
1107
+ const cmpMeta = hostRef.$cmpMeta$;
1108
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1109
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
1110
+ // we need to call `h` again to wrap the children of our component in a
1111
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
1112
+ // implicitly that the top-level vdom node is 1) an only child and 2)
1113
+ // contains attrs that need to be set on the host element.
1114
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1115
+ hostTagName = hostElm.tagName;
1116
+ if (cmpMeta.$attrsToReflect$) {
1117
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1118
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1119
+ }
1120
+ // On the first render and *only* on the first render we want to check for
1121
+ // any attributes set on the host element which are also set on the vdom
1122
+ // node. If we find them, we override the value on the VDom node attrs with
1123
+ // the value from the host element, which allows developers building apps
1124
+ // with Stencil components to override e.g. the `role` attribute on a
1125
+ // component even if it's already set on the `Host`.
1126
+ if (isInitialLoad && rootVnode.$attrs$) {
1127
+ for (const key of Object.keys(rootVnode.$attrs$)) {
1128
+ // We have a special implementation in `setAccessor` for `style` and
1129
+ // `class` which reconciles values coming from the VDom with values
1130
+ // already present on the DOM element, so we don't want to override those
1131
+ // attributes on the VDom tree with values from the host element if they
1132
+ // are present.
1133
+ //
1134
+ // Likewise, `ref` and `key` are special internal values for the Stencil
1135
+ // runtime and we don't want to override those either.
1136
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
1137
+ rootVnode.$attrs$[key] = hostElm[key];
1138
+ }
1139
+ }
1140
+ }
1141
+ rootVnode.$tag$ = null;
1142
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1143
+ hostRef.$vnode$ = rootVnode;
1144
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1145
+ {
1146
+ contentRef = hostElm['s-cr'];
1147
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1148
+ // always reset
1149
+ checkSlotFallbackVisibility = false;
1150
+ }
1151
+ // synchronous patch
1152
+ patch(oldVNode, rootVnode);
1153
+ {
1154
+ // while we're moving nodes around existing nodes, temporarily disable
1155
+ // the disconnectCallback from working
1156
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1157
+ if (checkSlotRelocate) {
1158
+ markSlotContentForRelocation(rootVnode.$elm$);
1159
+ for (const relocateData of relocateNodes) {
1160
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1161
+ if (!nodeToRelocate['s-ol']) {
1162
+ // add a reference node marking this node's original location
1163
+ // keep a reference to this node for later lookups
1164
+ const orgLocationNode = doc.createTextNode('');
1165
+ orgLocationNode['s-nr'] = nodeToRelocate;
1166
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1167
+ }
1168
+ }
1169
+ for (const relocateData of relocateNodes) {
1170
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
1171
+ const slotRefNode = relocateData.$slotRefNode$;
1172
+ if (slotRefNode) {
1173
+ const parentNodeRef = slotRefNode.parentNode;
1174
+ // When determining where to insert content, the most simple case would be
1175
+ // to relocate the node immediately following the slot reference node. We do this
1176
+ // by getting a reference to the node immediately following the slot reference node
1177
+ // since we will use `insertBefore` to manipulate the DOM.
1178
+ //
1179
+ // If there is no node immediately following the slot reference node, then we will just
1180
+ // end up appending the node as the last child of the parent.
1181
+ let insertBeforeNode = slotRefNode.nextSibling;
1182
+ // If the node we're currently planning on inserting the new node before is an element,
1183
+ // we need to do some additional checks to make sure we're inserting the node in the correct order.
1184
+ // The use case here would be that we have multiple nodes being relocated to the same slot. So, we want
1185
+ // to make sure they get inserted into their new how in the same order they were declared in their original location.
1186
+ //
1187
+ // TODO(STENCIL-914): Remove `experimentalSlotFixes` check
1188
+ {
1189
+ let orgLocationNode = (_a = nodeToRelocate['s-ol']) === null || _a === void 0 ? void 0 : _a.previousSibling;
1190
+ while (orgLocationNode) {
1191
+ let refNode = (_b = orgLocationNode['s-nr']) !== null && _b !== void 0 ? _b : null;
1192
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1193
+ refNode = refNode.nextSibling;
1194
+ if (!refNode || !refNode['s-nr']) {
1195
+ insertBeforeNode = refNode;
1196
+ break;
1197
+ }
1198
+ }
1199
+ orgLocationNode = orgLocationNode.previousSibling;
1200
+ }
1201
+ }
1202
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1203
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1204
+ // we've checked that it's worth while to relocate
1205
+ // since that the node to relocate
1206
+ // has a different next sibling or parent relocated
1207
+ if (nodeToRelocate !== insertBeforeNode) {
1208
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1209
+ // probably a component in the index.html that doesn't have its hostname set
1210
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1211
+ }
1212
+ // Add it back to the dom but in its new home
1213
+ // If we get to this point and `insertBeforeNode` is `null`, that means
1214
+ // we're just going to append the node as the last child of the parent. Passing
1215
+ // `null` as the second arg here will trigger that behavior.
1216
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1217
+ // Reset the `hidden` value back to what it was defined as originally
1218
+ // This solves a problem where a `slot` is dynamically rendered and `hidden` may have
1219
+ // been set on content originally, but now it has a slot to go to so it should have
1220
+ // the value it was defined as having in the DOM, not what we overrode it to.
1221
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1222
+ nodeToRelocate.hidden = (_c = nodeToRelocate['s-ih']) !== null && _c !== void 0 ? _c : false;
1223
+ }
1224
+ }
1225
+ }
1226
+ }
1227
+ else {
1228
+ // this node doesn't have a slot home to go to, so let's hide it
1229
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1230
+ // Store the initial value of `hidden` so we can reset it later when
1231
+ // moving nodes around.
1232
+ if (isInitialLoad) {
1233
+ nodeToRelocate['s-ih'] = (_d = nodeToRelocate.hidden) !== null && _d !== void 0 ? _d : false;
1234
+ }
1235
+ nodeToRelocate.hidden = true;
1236
+ }
1237
+ }
1238
+ }
1239
+ }
1240
+ if (checkSlotFallbackVisibility) {
1241
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1242
+ }
1243
+ // done moving nodes around
1244
+ // allow the disconnect callback to work again
1245
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1246
+ // always reset
1247
+ relocateNodes.length = 0;
1248
+ }
1249
+ };
1250
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1251
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1252
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1253
+ }
1254
+ };
1255
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1256
+ {
1257
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1258
+ }
1259
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1260
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1261
+ return;
1262
+ }
1263
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1264
+ // there is no ancestor component or the ancestor component
1265
+ // has already fired off its lifecycle update then
1266
+ // fire off the initial update
1267
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1268
+ return writeTask(dispatch) ;
1269
+ };
1270
+ /**
1271
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1272
+ * component lifecycle methods like `componentWillLoad` as well as
1273
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
1274
+ *
1275
+ * @param hostRef a reference to a host DOM node
1276
+ * @param isInitialLoad whether we're on the initial load or not
1277
+ * @returns an empty Promise which is used to enqueue a series of operations for
1278
+ * the component
1279
+ */
1280
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1281
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1282
+ const instance = hostRef.$lazyInstance$ ;
1283
+ // We're going to use this variable together with `enqueue` to implement a
1284
+ // little promise-based queue. We start out with it `undefined`. When we add
1285
+ // the first function to the queue we'll set this variable to be that
1286
+ // function's return value. When we attempt to add subsequent values to the
1287
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
1288
+ // the new function off of that `Promise` using `.then()`. This will give our
1289
+ // queue two nice properties:
1290
+ //
1291
+ // 1. If all functions added to the queue are synchronous they'll be called
1292
+ // synchronously right away.
1293
+ // 2. If all functions added to the queue are asynchronous they'll all be
1294
+ // called in order after `dispatchHooks` exits.
1295
+ let maybePromise;
1296
+ if (isInitialLoad) {
1297
+ {
1298
+ // If `componentWillLoad` returns a `Promise` then we want to wait on
1299
+ // whatever's going on in that `Promise` before we launch into
1300
+ // rendering the component, doing other lifecycle stuff, etc. So
1301
+ // in that case we assign the returned promise to the variable we
1302
+ // declared above to hold a possible 'queueing' Promise
1303
+ maybePromise = safeCall(instance, 'componentWillLoad');
1304
+ }
1305
+ }
1306
+ endSchedule();
1307
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1308
+ };
1309
+ /**
1310
+ * This function uses a Promise to implement a simple first-in, first-out queue
1311
+ * of functions to be called.
1312
+ *
1313
+ * The queue is ordered on the basis of the first argument. If it's
1314
+ * `undefined`, then nothing is on the queue yet, so the provided function can
1315
+ * be called synchronously (although note that this function may return a
1316
+ * `Promise`). The idea is that then the return value of that enqueueing
1317
+ * operation is kept around, so that if it was a `Promise` then subsequent
1318
+ * functions can be enqueued by calling this function again with that `Promise`
1319
+ * as the first argument.
1320
+ *
1321
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1322
+ * @param fn a function to enqueue
1323
+ * @returns either a `Promise` or the return value of the provided function
1324
+ */
1325
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1326
+ /**
1327
+ * Check that a value is a `Promise`. To check, we first see if the value is an
1328
+ * instance of the `Promise` global. In a few circumstances, in particular if
1329
+ * the global has been overwritten, this is could be misleading, so we also do
1330
+ * a little 'duck typing' check to see if the `.then` property of the value is
1331
+ * defined and a function.
1332
+ *
1333
+ * @param maybePromise it might be a promise!
1334
+ * @returns whether it is or not
1335
+ */
1336
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1337
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1338
+ /**
1339
+ * Update a component given reference to its host elements and so on.
1340
+ *
1341
+ * @param hostRef an object containing references to the element's host node,
1342
+ * VDom nodes, and other metadata
1343
+ * @param instance a reference to the underlying host element where it will be
1344
+ * rendered
1345
+ * @param isInitialLoad whether or not this function is being called as part of
1346
+ * the first render cycle
1347
+ */
1348
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1349
+ var _a;
1350
+ const elm = hostRef.$hostElement$;
1351
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1352
+ const rc = elm['s-rc'];
1353
+ if (isInitialLoad) {
1354
+ // DOM WRITE!
1355
+ attachStyles(hostRef);
1356
+ }
1357
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1358
+ {
1359
+ callRender(hostRef, instance, elm, isInitialLoad);
1360
+ }
1361
+ if (rc) {
1362
+ // ok, so turns out there are some child host elements
1363
+ // waiting on this parent element to load
1364
+ // let's fire off all update callbacks waiting
1365
+ rc.map((cb) => cb());
1366
+ elm['s-rc'] = undefined;
1367
+ }
1368
+ endRender();
1369
+ endUpdate();
1370
+ {
1371
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1372
+ const postUpdate = () => postUpdateComponent(hostRef);
1373
+ if (childrenPromises.length === 0) {
1374
+ postUpdate();
1375
+ }
1376
+ else {
1377
+ Promise.all(childrenPromises).then(postUpdate);
1378
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1379
+ childrenPromises.length = 0;
1380
+ }
1381
+ }
1382
+ };
1383
+ /**
1384
+ * Handle making the call to the VDom renderer with the proper context given
1385
+ * various build variables
1386
+ *
1387
+ * @param hostRef an object containing references to the element's host node,
1388
+ * VDom nodes, and other metadata
1389
+ * @param instance a reference to the underlying host element where it will be
1390
+ * rendered
1391
+ * @param elm the Host element for the component
1392
+ * @param isInitialLoad whether or not this function is being called as part of
1393
+ * @returns an empty promise
1394
+ */
1395
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1396
+ try {
1397
+ /**
1398
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1399
+ * method, so we can call the method immediately. If not, check before calling it.
1400
+ */
1401
+ instance = instance.render() ;
1402
+ {
1403
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1404
+ }
1405
+ {
1406
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1407
+ }
1408
+ {
1409
+ {
1410
+ // looks like we've got child nodes to render into this host element
1411
+ // or we need to update the css class/attrs on the host element
1412
+ // DOM WRITE!
1413
+ {
1414
+ renderVdom(hostRef, instance, isInitialLoad);
1415
+ }
1416
+ }
1417
+ }
1418
+ }
1419
+ catch (e) {
1420
+ consoleError(e, hostRef.$hostElement$);
1421
+ }
1422
+ return null;
1423
+ };
1424
+ const postUpdateComponent = (hostRef) => {
1425
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1426
+ const elm = hostRef.$hostElement$;
1427
+ const endPostUpdate = createTime('postUpdate', tagName);
1428
+ const instance = hostRef.$lazyInstance$ ;
1429
+ const ancestorComponent = hostRef.$ancestorComponent$;
1430
+ {
1431
+ safeCall(instance, 'componentDidRender');
1432
+ }
1433
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1434
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1435
+ {
1436
+ // DOM WRITE!
1437
+ addHydratedFlag(elm);
1438
+ }
1439
+ {
1440
+ safeCall(instance, 'componentDidLoad');
1441
+ }
1442
+ endPostUpdate();
1443
+ {
1444
+ hostRef.$onReadyResolve$(elm);
1445
+ if (!ancestorComponent) {
1446
+ appDidLoad();
1447
+ }
1448
+ }
1449
+ }
1450
+ else {
1451
+ endPostUpdate();
1452
+ }
1453
+ {
1454
+ hostRef.$onInstanceResolve$(elm);
1455
+ }
1456
+ // load events fire from bottom to top
1457
+ // the deepest elements load first then bubbles up
1458
+ {
1459
+ if (hostRef.$onRenderResolve$) {
1460
+ hostRef.$onRenderResolve$();
1461
+ hostRef.$onRenderResolve$ = undefined;
1462
+ }
1463
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1464
+ nextTick(() => scheduleUpdate(hostRef, false));
1465
+ }
1466
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1467
+ }
1468
+ // ( •_•)
1469
+ // ( •_•)>⌐■-■
1470
+ // (⌐■_■)
1471
+ };
1472
+ const appDidLoad = (who) => {
1473
+ // on appload
1474
+ // we have finish the first big initial render
1475
+ {
1476
+ addHydratedFlag(doc.documentElement);
1477
+ }
1478
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1479
+ };
1480
+ /**
1481
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1482
+ * e.g. custom element node. If a build figures out that e.g. no component
1483
+ * has a `componentDidLoad` method, the instance method gets removed from the
1484
+ * output bundle and this function returns `undefined`.
1485
+ * @param instance any object that may or may not contain methods
1486
+ * @param method method name
1487
+ * @param arg single arbitrary argument
1488
+ * @returns result of method call if it exists, otherwise `undefined`
1489
+ */
1490
+ const safeCall = (instance, method, arg) => {
1491
+ if (instance && instance[method]) {
1492
+ try {
1493
+ return instance[method](arg);
1494
+ }
1495
+ catch (e) {
1496
+ consoleError(e);
1497
+ }
1498
+ }
1499
+ return undefined;
1500
+ };
1501
+ const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
1502
+ ;
1503
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1504
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1505
+ // check our new property value against our internal value
1506
+ const hostRef = getHostRef(ref);
1507
+ const elm = hostRef.$hostElement$ ;
1508
+ const oldVal = hostRef.$instanceValues$.get(propName);
1509
+ const flags = hostRef.$flags$;
1510
+ const instance = hostRef.$lazyInstance$ ;
1511
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1512
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1513
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1514
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1515
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1516
+ // gadzooks! the property's value has changed!!
1517
+ // set our new value!
1518
+ hostRef.$instanceValues$.set(propName, newVal);
1519
+ if (instance) {
1520
+ // get an array of method names of watch functions to call
1521
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1522
+ const watchMethods = cmpMeta.$watchers$[propName];
1523
+ if (watchMethods) {
1524
+ // this instance is watching for when this property changed
1525
+ watchMethods.map((watchMethodName) => {
1526
+ try {
1527
+ // fire off each of the watch methods that are watching this property
1528
+ instance[watchMethodName](newVal, oldVal, propName);
1529
+ }
1530
+ catch (e) {
1531
+ consoleError(e, elm);
1532
+ }
1533
+ });
1534
+ }
1535
+ }
1536
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1537
+ // looks like this value actually changed, so we've got work to do!
1538
+ // but only if we've already rendered, otherwise just chill out
1539
+ // queue that we need to do an update, but don't worry about queuing
1540
+ // up millions cuz this function ensures it only runs once
1541
+ scheduleUpdate(hostRef, false);
1542
+ }
1543
+ }
1544
+ }
1545
+ };
1546
+ /**
1547
+ * Attach a series of runtime constructs to a compiled Stencil component
1548
+ * constructor, including getters and setters for the `@Prop` and `@State`
1549
+ * decorators, callbacks for when attributes change, and so on.
1550
+ *
1551
+ * @param Cstr the constructor for a component that we need to process
1552
+ * @param cmpMeta metadata collected previously about the component
1553
+ * @param flags a number used to store a series of bit flags
1554
+ * @returns a reference to the same constructor passed in (but now mutated)
1555
+ */
1556
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1557
+ var _a;
1558
+ const prototype = Cstr.prototype;
1559
+ if (cmpMeta.$members$) {
1560
+ if (Cstr.watchers) {
1561
+ cmpMeta.$watchers$ = Cstr.watchers;
1562
+ }
1563
+ // It's better to have a const than two Object.entries()
1564
+ const members = Object.entries(cmpMeta.$members$);
1565
+ members.map(([memberName, [memberFlags]]) => {
1566
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1567
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1568
+ // proxyComponent - prop
1569
+ Object.defineProperty(prototype, memberName, {
1570
+ get() {
1571
+ // proxyComponent, get value
1572
+ return getValue(this, memberName);
1573
+ },
1574
+ set(newValue) {
1575
+ // proxyComponent, set value
1576
+ setValue(this, memberName, newValue, cmpMeta);
1577
+ },
1578
+ configurable: true,
1579
+ enumerable: true,
1580
+ });
1581
+ }
1582
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1583
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1584
+ // proxyComponent - method
1585
+ Object.defineProperty(prototype, memberName, {
1586
+ value(...args) {
1587
+ var _a;
1588
+ const ref = getHostRef(this);
1589
+ return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1590
+ },
1591
+ });
1592
+ }
1593
+ });
1594
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1595
+ const attrNameToPropName = new Map();
1596
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1597
+ plt.jmp(() => {
1598
+ var _a;
1599
+ const propName = attrNameToPropName.get(attrName);
1600
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1601
+ // in the case where an attribute was set inline.
1602
+ // ```html
1603
+ // <my-component some-attribute="some-value"></my-component>
1604
+ // ```
1605
+ //
1606
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1607
+ // programmatically changes it before it has been upgraded as shown below:
1608
+ //
1609
+ // ```html
1610
+ // <!-- this component has _not_ been upgraded yet -->
1611
+ // <my-component id="test" some-attribute="some-value"></my-component>
1612
+ // <script>
1613
+ // // grab non-upgraded component
1614
+ // el = document.querySelector("#test");
1615
+ // el.someAttribute = "another-value";
1616
+ // // upgrade component
1617
+ // customElements.define('my-component', MyComponent);
1618
+ // </script>
1619
+ // ```
1620
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1621
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1622
+ // to the value that was set inline i.e. "some-value" from above example. When
1623
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1624
+ //
1625
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1626
+ // by connectedCallback as this attributeChangedCallback will not fire.
1627
+ //
1628
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1629
+ //
1630
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1631
+ // properties here given that this goes against best practices outlined here
1632
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1633
+ if (this.hasOwnProperty(propName)) {
1634
+ newValue = this[propName];
1635
+ delete this[propName];
1636
+ }
1637
+ else if (prototype.hasOwnProperty(propName) &&
1638
+ typeof this[propName] === 'number' &&
1639
+ this[propName] == newValue) {
1640
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1641
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1642
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1643
+ return;
1644
+ }
1645
+ else if (propName == null) {
1646
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1647
+ // on a vanilla web component
1648
+ const hostRef = getHostRef(this);
1649
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1650
+ // We only want to trigger the callback(s) if:
1651
+ // 1. The instance is ready
1652
+ // 2. The watchers are ready
1653
+ // 3. The value has changed
1654
+ if (flags &&
1655
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1656
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1657
+ newValue !== oldValue) {
1658
+ const instance = hostRef.$lazyInstance$ ;
1659
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1660
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1661
+ if (instance[callbackName] != null) {
1662
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1663
+ }
1664
+ });
1665
+ }
1666
+ return;
1667
+ }
1668
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1669
+ });
1670
+ };
1671
+ // Create an array of attributes to observe
1672
+ // This list in comprised of all strings used within a `@Watch()` decorator
1673
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1674
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1675
+ // an invalid attribute.
1676
+ Cstr.observedAttributes = Array.from(new Set([
1677
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1678
+ ...members
1679
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1680
+ .map(([propName, m]) => {
1681
+ var _a;
1682
+ const attrName = m[1] || propName;
1683
+ attrNameToPropName.set(attrName, propName);
1684
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1685
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1686
+ }
1687
+ return attrName;
1688
+ }),
1689
+ ]));
1690
+ }
1691
+ }
1692
+ return Cstr;
1693
+ };
1694
+ /**
1695
+ * Initialize a Stencil component given a reference to its host element, its
1696
+ * runtime bookkeeping data structure, runtime metadata about the component,
1697
+ * and (optionally) an HMR version ID.
1698
+ *
1699
+ * @param elm a host element
1700
+ * @param hostRef the element's runtime bookkeeping object
1701
+ * @param cmpMeta runtime metadata for the Stencil component
1702
+ * @param hmrVersionId an (optional) HMR version ID
1703
+ */
1704
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1705
+ let Cstr;
1706
+ // initializeComponent
1707
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1708
+ // Let the runtime know that the component has been initialized
1709
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1710
+ {
1711
+ // lazy loaded components
1712
+ // request the component's implementation to be
1713
+ // wired up with the host element
1714
+ Cstr = loadModule(cmpMeta);
1715
+ if (Cstr.then) {
1716
+ // Await creates a micro-task avoid if possible
1717
+ const endLoad = uniqueTime();
1718
+ Cstr = await Cstr;
1719
+ endLoad();
1720
+ }
1721
+ if (!Cstr.isProxied) {
1722
+ // we've never proxied this Constructor before
1723
+ // let's add the getters/setters to its prototype before
1724
+ // the first time we create an instance of the implementation
1725
+ {
1726
+ cmpMeta.$watchers$ = Cstr.watchers;
1727
+ }
1728
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1729
+ Cstr.isProxied = true;
1730
+ }
1731
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1732
+ // ok, time to construct the instance
1733
+ // but let's keep track of when we start and stop
1734
+ // so that the getters/setters don't incorrectly step on data
1735
+ {
1736
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1737
+ }
1738
+ // construct the lazy-loaded component implementation
1739
+ // passing the hostRef is very important during
1740
+ // construction in order to directly wire together the
1741
+ // host element and the lazy-loaded instance
1742
+ try {
1743
+ new Cstr(hostRef);
1744
+ }
1745
+ catch (e) {
1746
+ consoleError(e);
1747
+ }
1748
+ {
1749
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1750
+ }
1751
+ {
1752
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1753
+ }
1754
+ endNewInstance();
1755
+ fireConnectedCallback(hostRef.$lazyInstance$);
1756
+ }
1757
+ if (Cstr.style) {
1758
+ // this component has styles but we haven't registered them yet
1759
+ let style = Cstr.style;
1760
+ const scopeId = getScopeId(cmpMeta);
1761
+ if (!styles.has(scopeId)) {
1762
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1763
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1764
+ endRegisterStyles();
1765
+ }
1766
+ }
1767
+ }
1768
+ // we've successfully created a lazy instance
1769
+ const ancestorComponent = hostRef.$ancestorComponent$;
1770
+ const schedule = () => scheduleUpdate(hostRef, true);
1771
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1772
+ // this is the initial load and this component it has an ancestor component
1773
+ // but the ancestor component has NOT fired its will update lifecycle yet
1774
+ // so let's just cool our jets and wait for the ancestor to continue first
1775
+ // this will get fired off when the ancestor component
1776
+ // finally gets around to rendering its lazy self
1777
+ // fire off the initial update
1778
+ ancestorComponent['s-rc'].push(schedule);
1779
+ }
1780
+ else {
1781
+ schedule();
1782
+ }
1783
+ };
1784
+ const fireConnectedCallback = (instance) => {
1785
+ {
1786
+ safeCall(instance, 'connectedCallback');
1787
+ }
1788
+ };
1789
+ const connectedCallback = (elm) => {
1790
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1791
+ const hostRef = getHostRef(elm);
1792
+ const cmpMeta = hostRef.$cmpMeta$;
1793
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1794
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1795
+ // first time this component has connected
1796
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1797
+ {
1798
+ // initUpdate
1799
+ // if the slot polyfill is required we'll need to put some nodes
1800
+ // in here to act as original content anchors as we move nodes around
1801
+ // host element has been connected to the DOM
1802
+ if ((// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1803
+ cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1804
+ setContentReference(elm);
1805
+ }
1806
+ }
1807
+ {
1808
+ // find the first ancestor component (if there is one) and register
1809
+ // this component as one of the actively loading child components for its ancestor
1810
+ let ancestorComponent = elm;
1811
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1812
+ // climb up the ancestors looking for the first
1813
+ // component that hasn't finished its lifecycle update yet
1814
+ if (ancestorComponent['s-p']) {
1815
+ // we found this components first ancestor component
1816
+ // keep a reference to this component's ancestor component
1817
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1818
+ break;
1819
+ }
1820
+ }
1821
+ }
1822
+ // Lazy properties
1823
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1824
+ if (cmpMeta.$members$) {
1825
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1826
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1827
+ const value = elm[memberName];
1828
+ delete elm[memberName];
1829
+ elm[memberName] = value;
1830
+ }
1831
+ });
1832
+ }
1833
+ {
1834
+ initializeComponent(elm, hostRef, cmpMeta);
1835
+ }
1836
+ }
1837
+ else {
1838
+ // fire off connectedCallback() on component instance
1839
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1840
+ fireConnectedCallback(hostRef.$lazyInstance$);
1841
+ }
1842
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1843
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1844
+ }
1845
+ }
1846
+ endConnected();
1847
+ }
1848
+ };
1849
+ const setContentReference = (elm) => {
1850
+ // only required when we're NOT using native shadow dom (slot)
1851
+ // or this browser doesn't support native shadow dom
1852
+ // and this host element was NOT created with SSR
1853
+ // let's pick out the inner content for slot projection
1854
+ // create a node to represent where the original
1855
+ // content was first placed, which is useful later on
1856
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1857
+ contentRefElm['s-cn'] = true;
1858
+ elm.insertBefore(contentRefElm, elm.firstChild);
1859
+ };
1860
+ const disconnectInstance = (instance) => {
1861
+ {
1862
+ safeCall(instance, 'disconnectedCallback');
1863
+ }
1864
+ };
1865
+ const disconnectedCallback = async (elm) => {
1866
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1867
+ const hostRef = getHostRef(elm);
1868
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1869
+ disconnectInstance(hostRef.$lazyInstance$);
1870
+ }
1871
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1872
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1873
+ }
1874
+ }
1875
+ };
1876
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1877
+ var _a;
1878
+ const endBootstrap = createTime();
1879
+ const cmpTags = [];
1880
+ const exclude = options.exclude || [];
1881
+ const customElements = win.customElements;
1882
+ const head = doc.head;
1883
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1884
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1885
+ const deferredConnectedCallbacks = [];
1886
+ let appLoadFallback;
1887
+ let isBootstrapping = true;
1888
+ Object.assign(plt, options);
1889
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1890
+ let hasSlotRelocation = false;
1891
+ lazyBundles.map((lazyBundle) => {
1892
+ lazyBundle[1].map((compactMeta) => {
1893
+ var _a;
1894
+ const cmpMeta = {
1895
+ $flags$: compactMeta[0],
1896
+ $tagName$: compactMeta[1],
1897
+ $members$: compactMeta[2],
1898
+ $listeners$: compactMeta[3],
1899
+ };
1900
+ // Check if we are using slots outside the shadow DOM in this component.
1901
+ // We'll use this information later to add styles for `slot-fb` elements
1902
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1903
+ hasSlotRelocation = true;
1904
+ }
1905
+ {
1906
+ cmpMeta.$members$ = compactMeta[2];
1907
+ }
1908
+ {
1909
+ cmpMeta.$attrsToReflect$ = [];
1910
+ }
1911
+ {
1912
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1913
+ }
1914
+ const tagName = cmpMeta.$tagName$;
1915
+ const HostElement = class extends HTMLElement {
1916
+ // StencilLazyHost
1917
+ constructor(self) {
1918
+ // @ts-ignore
1919
+ super(self);
1920
+ self = this;
1921
+ registerHost(self, cmpMeta);
1922
+ }
1923
+ connectedCallback() {
1924
+ if (appLoadFallback) {
1925
+ clearTimeout(appLoadFallback);
1926
+ appLoadFallback = null;
1927
+ }
1928
+ if (isBootstrapping) {
1929
+ // connectedCallback will be processed once all components have been registered
1930
+ deferredConnectedCallbacks.push(this);
1931
+ }
1932
+ else {
1933
+ plt.jmp(() => connectedCallback(this));
1934
+ }
1935
+ }
1936
+ disconnectedCallback() {
1937
+ plt.jmp(() => disconnectedCallback(this));
1938
+ }
1939
+ componentOnReady() {
1940
+ return getHostRef(this).$onReadyPromise$;
1941
+ }
1942
+ };
1943
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1944
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1945
+ cmpTags.push(tagName);
1946
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1947
+ }
1948
+ });
1949
+ });
1950
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1951
+ if (hasSlotRelocation) {
1952
+ dataStyles.innerHTML += SLOT_FB_CSS;
1953
+ }
1954
+ // Add hydration styles
1955
+ {
1956
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1957
+ }
1958
+ // If we have styles, add them to the DOM
1959
+ if (dataStyles.innerHTML.length) {
1960
+ dataStyles.setAttribute('data-styles', '');
1961
+ // Apply CSP nonce to the style tag if it exists
1962
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1963
+ if (nonce != null) {
1964
+ dataStyles.setAttribute('nonce', nonce);
1965
+ }
1966
+ // Insert the styles into the document head
1967
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1968
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1969
+ }
1970
+ // Process deferred connectedCallbacks now all components have been registered
1971
+ isBootstrapping = false;
1972
+ if (deferredConnectedCallbacks.length) {
1973
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1974
+ }
1975
+ else {
1976
+ {
1977
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1978
+ }
1979
+ }
1980
+ // Fallback appLoad event
1981
+ endBootstrap();
1982
+ };
1983
+ /**
1984
+ * Assigns the given value to the nonce property on the runtime platform object.
1985
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1986
+ * @param nonce The value to be assigned to the platform nonce property.
1987
+ * @returns void
1988
+ */
1989
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1990
+ /**
1991
+ * A WeakMap mapping runtime component references to their corresponding host reference
1992
+ * instances.
1993
+ */
1994
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1995
+ /**
1996
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1997
+ *
1998
+ * @param ref the runtime ref of interest
1999
+ * @returns the Host reference (if found) or undefined
2000
+ */
2001
+ const getHostRef = (ref) => hostRefs.get(ref);
2002
+ /**
2003
+ * Register a lazy instance with the {@link hostRefs} object so it's
2004
+ * corresponding {@link d.HostRef} can be retrieved later.
2005
+ *
2006
+ * @param lazyInstance the lazy instance of interest
2007
+ * @param hostRef that instances `HostRef` object
2008
+ * @returns a reference to the host ref WeakMap
2009
+ */
2010
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2011
+ /**
2012
+ * Register a host element for a Stencil component, setting up various metadata
2013
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
2014
+ * metadata.
2015
+ *
2016
+ * @param hostElement the host element to register
2017
+ * @param cmpMeta runtime metadata for that component
2018
+ * @returns a reference to the host ref WeakMap
2019
+ */
2020
+ const registerHost = (hostElement, cmpMeta) => {
2021
+ const hostRef = {
2022
+ $flags$: 0,
2023
+ $hostElement$: hostElement,
2024
+ $cmpMeta$: cmpMeta,
2025
+ $instanceValues$: new Map(),
2026
+ };
2027
+ {
2028
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
2029
+ }
2030
+ {
2031
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2032
+ hostElement['s-p'] = [];
2033
+ hostElement['s-rc'] = [];
2034
+ }
2035
+ return hostRefs.set(hostElement, hostRef);
2036
+ };
2037
+ const isMemberInElement = (elm, memberName) => memberName in elm;
2038
+ const consoleError = (e, el) => (0, console.error)(e, el);
2039
+ const cmpModules = /*@__PURE__*/ new Map();
2040
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2041
+ // loadModuleImport
2042
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2043
+ const bundleId = cmpMeta.$lazyBundleId$;
2044
+ const module = cmpModules.get(bundleId) ;
2045
+ if (module) {
2046
+ return module[exportName];
2047
+ }
2048
+
2049
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
2050
+ const processMod = importedModule => {
2051
+ cmpModules.set(bundleId, importedModule);
2052
+ return importedModule[exportName];
2053
+ }
2054
+ switch(bundleId) {
2055
+
2056
+ case 'arcgis-basemap-gallery_3.cjs':
2057
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2058
+ /* webpackMode: "lazy" */
2059
+ './arcgis-basemap-gallery_3.cjs.entry.js')); }).then(processMod, consoleError);
2060
+ case 'arcgis-area-measurement-2d.cjs':
2061
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2062
+ /* webpackMode: "lazy" */
2063
+ './arcgis-area-measurement-2d.cjs.entry.js')); }).then(processMod, consoleError);
2064
+ case 'arcgis-area-measurement-3d.cjs':
2065
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2066
+ /* webpackMode: "lazy" */
2067
+ './arcgis-area-measurement-3d.cjs.entry.js')); }).then(processMod, consoleError);
2068
+ case 'arcgis-attachments.cjs':
2069
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2070
+ /* webpackMode: "lazy" */
2071
+ './arcgis-attachments.cjs.entry.js')); }).then(processMod, consoleError);
2072
+ case 'arcgis-basemap-layer-list.cjs':
2073
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2074
+ /* webpackMode: "lazy" */
2075
+ './arcgis-basemap-layer-list.cjs.entry.js')); }).then(processMod, consoleError);
2076
+ case 'arcgis-basemap-toggle.cjs':
2077
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2078
+ /* webpackMode: "lazy" */
2079
+ './arcgis-basemap-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2080
+ case 'arcgis-bookmarks.cjs':
2081
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2082
+ /* webpackMode: "lazy" */
2083
+ './arcgis-bookmarks.cjs.entry.js')); }).then(processMod, consoleError);
2084
+ case 'arcgis-building-explorer.cjs':
2085
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2086
+ /* webpackMode: "lazy" */
2087
+ './arcgis-building-explorer.cjs.entry.js')); }).then(processMod, consoleError);
2088
+ case 'arcgis-compass.cjs':
2089
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2090
+ /* webpackMode: "lazy" */
2091
+ './arcgis-compass.cjs.entry.js')); }).then(processMod, consoleError);
2092
+ case 'arcgis-coordinate-conversion.cjs':
2093
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2094
+ /* webpackMode: "lazy" */
2095
+ './arcgis-coordinate-conversion.cjs.entry.js')); }).then(processMod, consoleError);
2096
+ case 'arcgis-daylight.cjs':
2097
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2098
+ /* webpackMode: "lazy" */
2099
+ './arcgis-daylight.cjs.entry.js')); }).then(processMod, consoleError);
2100
+ case 'arcgis-directions.cjs':
2101
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2102
+ /* webpackMode: "lazy" */
2103
+ './arcgis-directions.cjs.entry.js')); }).then(processMod, consoleError);
2104
+ case 'arcgis-directline-measurement-3d.cjs':
2105
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2106
+ /* webpackMode: "lazy" */
2107
+ './arcgis-directline-measurement-3d.cjs.entry.js')); }).then(processMod, consoleError);
2108
+ case 'arcgis-distance-measurement-2d.cjs':
2109
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2110
+ /* webpackMode: "lazy" */
2111
+ './arcgis-distance-measurement-2d.cjs.entry.js')); }).then(processMod, consoleError);
2112
+ case 'arcgis-editor.cjs':
2113
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2114
+ /* webpackMode: "lazy" */
2115
+ './arcgis-editor.cjs.entry.js')); }).then(processMod, consoleError);
2116
+ case 'arcgis-elevation-profile.cjs':
2117
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2118
+ /* webpackMode: "lazy" */
2119
+ './arcgis-elevation-profile.cjs.entry.js')); }).then(processMod, consoleError);
2120
+ case 'arcgis-feature.cjs':
2121
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2122
+ /* webpackMode: "lazy" */
2123
+ './arcgis-feature.cjs.entry.js')); }).then(processMod, consoleError);
2124
+ case 'arcgis-feature-form.cjs':
2125
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2126
+ /* webpackMode: "lazy" */
2127
+ './arcgis-feature-form.cjs.entry.js')); }).then(processMod, consoleError);
2128
+ case 'arcgis-feature-table.cjs':
2129
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2130
+ /* webpackMode: "lazy" */
2131
+ './arcgis-feature-table.cjs.entry.js')); }).then(processMod, consoleError);
2132
+ case 'arcgis-feature-templates.cjs':
2133
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2134
+ /* webpackMode: "lazy" */
2135
+ './arcgis-feature-templates.cjs.entry.js')); }).then(processMod, consoleError);
2136
+ case 'arcgis-features.cjs':
2137
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2138
+ /* webpackMode: "lazy" */
2139
+ './arcgis-features.cjs.entry.js')); }).then(processMod, consoleError);
2140
+ case 'arcgis-floor-filter.cjs':
2141
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2142
+ /* webpackMode: "lazy" */
2143
+ './arcgis-floor-filter.cjs.entry.js')); }).then(processMod, consoleError);
2144
+ case 'arcgis-fullscreen.cjs':
2145
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2146
+ /* webpackMode: "lazy" */
2147
+ './arcgis-fullscreen.cjs.entry.js')); }).then(processMod, consoleError);
2148
+ case 'arcgis-histogram.cjs':
2149
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2150
+ /* webpackMode: "lazy" */
2151
+ './arcgis-histogram.cjs.entry.js')); }).then(processMod, consoleError);
2152
+ case 'arcgis-histogram-range-slider.cjs':
2153
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2154
+ /* webpackMode: "lazy" */
2155
+ './arcgis-histogram-range-slider.cjs.entry.js')); }).then(processMod, consoleError);
2156
+ case 'arcgis-home.cjs':
2157
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2158
+ /* webpackMode: "lazy" */
2159
+ './arcgis-home.cjs.entry.js')); }).then(processMod, consoleError);
2160
+ case 'arcgis-layer-list.cjs':
2161
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2162
+ /* webpackMode: "lazy" */
2163
+ './arcgis-layer-list.cjs.entry.js')); }).then(processMod, consoleError);
2164
+ case 'arcgis-legend.cjs':
2165
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2166
+ /* webpackMode: "lazy" */
2167
+ './arcgis-legend.cjs.entry.js')); }).then(processMod, consoleError);
2168
+ case 'arcgis-line-of-sight.cjs':
2169
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2170
+ /* webpackMode: "lazy" */
2171
+ './arcgis-line-of-sight.cjs.entry.js')); }).then(processMod, consoleError);
2172
+ case 'arcgis-locate.cjs':
2173
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2174
+ /* webpackMode: "lazy" */
2175
+ './arcgis-locate.cjs.entry.js')); }).then(processMod, consoleError);
2176
+ case 'arcgis-map.cjs':
2177
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2178
+ /* webpackMode: "lazy" */
2179
+ './arcgis-map.cjs.entry.js')); }).then(processMod, consoleError);
2180
+ case 'arcgis-measurement.cjs':
2181
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2182
+ /* webpackMode: "lazy" */
2183
+ './arcgis-measurement.cjs.entry.js')); }).then(processMod, consoleError);
2184
+ case 'arcgis-navigation-toggle.cjs':
2185
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2186
+ /* webpackMode: "lazy" */
2187
+ './arcgis-navigation-toggle.cjs.entry.js')); }).then(processMod, consoleError);
2188
+ case 'arcgis-placement.cjs':
2189
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2190
+ /* webpackMode: "lazy" */
2191
+ './arcgis-placement.cjs.entry.js')); }).then(processMod, consoleError);
2192
+ case 'arcgis-print.cjs':
2193
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2194
+ /* webpackMode: "lazy" */
2195
+ './arcgis-print.cjs.entry.js')); }).then(processMod, consoleError);
2196
+ case 'arcgis-scale-bar.cjs':
2197
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2198
+ /* webpackMode: "lazy" */
2199
+ './arcgis-scale-bar.cjs.entry.js')); }).then(processMod, consoleError);
2200
+ case 'arcgis-scale-range-slider.cjs':
2201
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2202
+ /* webpackMode: "lazy" */
2203
+ './arcgis-scale-range-slider.cjs.entry.js')); }).then(processMod, consoleError);
2204
+ case 'arcgis-search.cjs':
2205
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2206
+ /* webpackMode: "lazy" */
2207
+ './arcgis-search.cjs.entry.js')); }).then(processMod, consoleError);
2208
+ case 'arcgis-shadow-cast.cjs':
2209
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2210
+ /* webpackMode: "lazy" */
2211
+ './arcgis-shadow-cast.cjs.entry.js')); }).then(processMod, consoleError);
2212
+ case 'arcgis-sketch.cjs':
2213
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2214
+ /* webpackMode: "lazy" */
2215
+ './arcgis-sketch.cjs.entry.js')); }).then(processMod, consoleError);
2216
+ case 'arcgis-slice.cjs':
2217
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2218
+ /* webpackMode: "lazy" */
2219
+ './arcgis-slice.cjs.entry.js')); }).then(processMod, consoleError);
2220
+ case 'arcgis-slider.cjs':
2221
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2222
+ /* webpackMode: "lazy" */
2223
+ './arcgis-slider.cjs.entry.js')); }).then(processMod, consoleError);
2224
+ case 'arcgis-swipe.cjs':
2225
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2226
+ /* webpackMode: "lazy" */
2227
+ './arcgis-swipe.cjs.entry.js')); }).then(processMod, consoleError);
2228
+ case 'arcgis-table-list.cjs':
2229
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2230
+ /* webpackMode: "lazy" */
2231
+ './arcgis-table-list.cjs.entry.js')); }).then(processMod, consoleError);
2232
+ case 'arcgis-time-slider.cjs':
2233
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2234
+ /* webpackMode: "lazy" */
2235
+ './arcgis-time-slider.cjs.entry.js')); }).then(processMod, consoleError);
2236
+ case 'arcgis-track.cjs':
2237
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2238
+ /* webpackMode: "lazy" */
2239
+ './arcgis-track.cjs.entry.js')); }).then(processMod, consoleError);
2240
+ case 'arcgis-utility-network-associations.cjs':
2241
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2242
+ /* webpackMode: "lazy" */
2243
+ './arcgis-utility-network-associations.cjs.entry.js')); }).then(processMod, consoleError);
2244
+ case 'arcgis-utility-network-trace.cjs':
2245
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2246
+ /* webpackMode: "lazy" */
2247
+ './arcgis-utility-network-trace.cjs.entry.js')); }).then(processMod, consoleError);
2248
+ case 'arcgis-utility-network-validate-topology.cjs':
2249
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2250
+ /* webpackMode: "lazy" */
2251
+ './arcgis-utility-network-validate-topology.cjs.entry.js')); }).then(processMod, consoleError);
2252
+ case 'arcgis-value-picker.cjs':
2253
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2254
+ /* webpackMode: "lazy" */
2255
+ './arcgis-value-picker.cjs.entry.js')); }).then(processMod, consoleError);
2256
+ case 'arcgis-weather.cjs':
2257
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2258
+ /* webpackMode: "lazy" */
2259
+ './arcgis-weather.cjs.entry.js')); }).then(processMod, consoleError);
2260
+ case 'arcgis-zoom.cjs':
2261
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2262
+ /* webpackMode: "lazy" */
2263
+ './arcgis-zoom.cjs.entry.js')); }).then(processMod, consoleError);
2264
+ }
2265
+ }
2266
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
2267
+ /* @vite-ignore */
2268
+ /* webpackInclude: /\.entry\.js$/ */
2269
+ /* webpackExclude: /\.system\.entry\.js$/ */
2270
+ /* webpackMode: "lazy" */
2271
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
2272
+ {
2273
+ cmpModules.set(bundleId, importedModule);
2274
+ }
2275
+ return importedModule[exportName];
2276
+ }, consoleError);
2277
+ };
2278
+ const styles = /*@__PURE__*/ new Map();
2279
+ const win = typeof window !== 'undefined' ? window : {};
2280
+ const doc = win.document || { head: {} };
2281
+ const plt = {
2282
+ $flags$: 0,
2283
+ $resourcesUrl$: '',
2284
+ jmp: (h) => h(),
2285
+ raf: (h) => requestAnimationFrame(h),
2286
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2287
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2288
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
2289
+ };
2290
+ const promiseResolve = (v) => Promise.resolve(v);
2291
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2292
+ try {
2293
+ new CSSStyleSheet();
2294
+ return typeof new CSSStyleSheet().replaceSync === 'function';
2295
+ }
2296
+ catch (e) { }
2297
+ return false;
2298
+ })()
2299
+ ;
2300
+ const queueDomReads = [];
2301
+ const queueDomWrites = [];
2302
+ const queueTask = (queue, write) => (cb) => {
2303
+ queue.push(cb);
2304
+ if (!queuePending) {
2305
+ queuePending = true;
2306
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2307
+ nextTick(flush);
2308
+ }
2309
+ else {
2310
+ plt.raf(flush);
2311
+ }
2312
+ }
2313
+ };
2314
+ const consume = (queue) => {
2315
+ for (let i = 0; i < queue.length; i++) {
2316
+ try {
2317
+ queue[i](performance.now());
2318
+ }
2319
+ catch (e) {
2320
+ consoleError(e);
2321
+ }
2322
+ }
2323
+ queue.length = 0;
2324
+ };
2325
+ const flush = () => {
2326
+ // always force a bunch of medium callbacks to run, but still have
2327
+ // a throttle on how many can run in a certain time
2328
+ // DOM READS!!!
2329
+ consume(queueDomReads);
2330
+ // DOM WRITES!!!
2331
+ {
2332
+ consume(queueDomWrites);
2333
+ if ((queuePending = queueDomReads.length > 0)) {
2334
+ // still more to do yet, but we've run out of time
2335
+ // let's let this thing cool off and try again in the next tick
2336
+ plt.raf(flush);
2337
+ }
2338
+ }
2339
+ };
2340
+ const nextTick = (cb) => promiseResolve().then(cb);
2341
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2342
+
2343
+ exports.bootstrapLazy = bootstrapLazy;
2344
+ exports.createEvent = createEvent;
2345
+ exports.getElement = getElement;
2346
+ exports.h = h;
2347
+ exports.promiseResolve = promiseResolve;
2348
+ exports.registerInstance = registerInstance;
2349
+ exports.setNonce = setNonce;
2350
+
2351
+ //# sourceMappingURL=index-fbce570d.js.map