proto-ikon-loader-wc 0.1.119 → 0.1.120

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 (500) hide show
  1. package/dist/cjs/acura-ikon.cjs.entry.js +1 -1
  2. package/dist/cjs/alfa-romeo-alt-ikon.cjs.entry.js +1 -1
  3. package/dist/cjs/alfa-romeo-ikon.cjs.entry.js +1 -1
  4. package/dist/cjs/alien-icon.cjs.entry.js +1 -1
  5. package/dist/cjs/am-general-ikon.cjs.entry.js +1 -1
  6. package/dist/cjs/asterisk-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/aston-martin-alt-ikon.cjs.entry.js +1 -1
  8. package/dist/cjs/aston-martin-ikon.cjs.entry.js +1 -1
  9. package/dist/cjs/audi-ikon.cjs.entry.js +1 -1
  10. package/dist/cjs/barcode-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/barcode-scan-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/bash-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/beaker-icon.cjs.entry.js +1 -1
  14. package/dist/cjs/bently-ikon.cjs.entry.js +1 -1
  15. package/dist/cjs/bmw-ikon.cjs.entry.js +1 -1
  16. package/dist/cjs/bugatti-ikon.cjs.entry.js +1 -1
  17. package/dist/cjs/buick-ikon.cjs.entry.js +1 -1
  18. package/dist/cjs/cadillac-ikon.cjs.entry.js +1 -1
  19. package/dist/cjs/chart-bar-icon.cjs.entry.js +1 -1
  20. package/dist/cjs/chart-bubble-icon.cjs.entry.js +1 -1
  21. package/dist/cjs/chart-donut-icon.cjs.entry.js +1 -1
  22. package/dist/cjs/chart-donuts-icon.cjs.entry.js +1 -1
  23. package/dist/cjs/check-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/chevrolet-ikon.cjs.entry.js +1 -1
  25. package/dist/cjs/chevron-double-left-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/chrysler-ikon.cjs.entry.js +1 -1
  27. package/dist/cjs/circular-saw-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/citroen-ikon.cjs.entry.js +1 -1
  29. package/dist/cjs/close-icon.cjs.entry.js +1 -1
  30. package/dist/cjs/daewoo-ikon.cjs.entry.js +1 -1
  31. package/dist/cjs/dodge-ikon.cjs.entry.js +1 -1
  32. package/dist/cjs/eagle-ikon.cjs.entry.js +1 -1
  33. package/dist/cjs/ferrari-ikon.cjs.entry.js +1 -1
  34. package/dist/cjs/fiat-alt-ikon.cjs.entry.js +1 -1
  35. package/dist/cjs/fiat-ikon.cjs.entry.js +1 -1
  36. package/dist/cjs/fingerprint-icon.cjs.entry.js +1 -1
  37. package/dist/cjs/fire-icon.cjs.entry.js +1 -1
  38. package/dist/cjs/fisker-ikon.cjs.entry.js +1 -1
  39. package/dist/cjs/flask-icon.cjs.entry.js +1 -1
  40. package/dist/cjs/ford-ikon.cjs.entry.js +1 -1
  41. package/dist/cjs/genesis-ikon.cjs.entry.js +1 -1
  42. package/dist/cjs/geo-ikon.cjs.entry.js +1 -1
  43. package/dist/cjs/git-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/gmc-ikon.cjs.entry.js +1 -1
  45. package/dist/cjs/honda-ikon.cjs.entry.js +1 -1
  46. package/dist/cjs/hummer-ikon.cjs.entry.js +1 -1
  47. package/dist/cjs/hyundai-ikon.cjs.entry.js +1 -1
  48. package/dist/cjs/index-BtgryfeE.js +3085 -0
  49. package/dist/cjs/infiniti-ikon.cjs.entry.js +1 -1
  50. package/dist/cjs/isuzu-ikon.cjs.entry.js +1 -1
  51. package/dist/cjs/jaguar-alt-ikon.cjs.entry.js +1 -1
  52. package/dist/cjs/jaguar-ikon.cjs.entry.js +1 -1
  53. package/dist/cjs/java-script-icon.cjs.entry.js +1 -1
  54. package/dist/cjs/jeep-alt-ikon.cjs.entry.js +1 -1
  55. package/dist/cjs/jeep-ikon.cjs.entry.js +1 -1
  56. package/dist/cjs/kia-ikon.cjs.entry.js +1 -1
  57. package/dist/cjs/lamborghini-alt-ikon.cjs.entry.js +1 -1
  58. package/dist/cjs/lamborghini-ikon.cjs.entry.js +1 -1
  59. package/dist/cjs/land-rover-ikon.cjs.entry.js +1 -1
  60. package/dist/cjs/lexus-ikon.cjs.entry.js +1 -1
  61. package/dist/cjs/lincoln-ikon.cjs.entry.js +1 -1
  62. package/dist/cjs/loader.cjs.js +2 -2
  63. package/dist/cjs/lotus-alt-ikon.cjs.entry.js +1 -1
  64. package/dist/cjs/lotus-ikon.cjs.entry.js +1 -1
  65. package/dist/cjs/maserati-ikon.cjs.entry.js +1 -1
  66. package/dist/cjs/maybach-ikon.cjs.entry.js +1 -1
  67. package/dist/cjs/mazda-alt-ikon.cjs.entry.js +1 -1
  68. package/dist/cjs/mazda-ikon.cjs.entry.js +1 -1
  69. package/dist/cjs/mclaren-alt-ikon.cjs.entry.js +1 -1
  70. package/dist/cjs/mclaren-ikon.cjs.entry.js +1 -1
  71. package/dist/cjs/mercedes-benz-alt-ikon.cjs.entry.js +1 -1
  72. package/dist/cjs/mercedes-benz-ikon.cjs.entry.js +1 -1
  73. package/dist/cjs/mercury-ikon.cjs.entry.js +1 -1
  74. package/dist/cjs/mini-alt-ikon.cjs.entry.js +1 -1
  75. package/dist/cjs/mini-ikon.cjs.entry.js +1 -1
  76. package/dist/cjs/mitsubishi-ikon.cjs.entry.js +1 -1
  77. package/dist/cjs/nissan-ikon.cjs.entry.js +1 -1
  78. package/dist/cjs/oldsmobile-ikon.cjs.entry.js +1 -1
  79. package/dist/cjs/one-password-icon.cjs.entry.js +1 -1
  80. package/dist/cjs/opel-ikon.cjs.entry.js +1 -1
  81. package/dist/cjs/panoz-ikon.cjs.entry.js +1 -1
  82. package/dist/cjs/paw-icon.cjs.entry.js +1 -1
  83. package/dist/cjs/peugeot-alt-ikon.cjs.entry.js +1 -1
  84. package/dist/cjs/peugeot-ikon.cjs.entry.js +1 -1
  85. package/dist/cjs/plymouth-ikon.cjs.entry.js +1 -1
  86. package/dist/cjs/pontiac-ikon.cjs.entry.js +1 -1
  87. package/dist/cjs/porsche-ikon.cjs.entry.js +1 -1
  88. package/dist/cjs/proto-ikon-loader-wc.cjs.js +3 -3
  89. package/dist/cjs/proto-ikon-loader_2.cjs.entry.js +1 -1
  90. package/dist/cjs/protocol-icon.cjs.entry.js +1 -1
  91. package/dist/cjs/pulse-icon.cjs.entry.js +1 -1
  92. package/dist/cjs/puzzle-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/qr-code-icon.cjs.entry.js +1 -1
  94. package/dist/cjs/radio-2-icon.cjs.entry.js +1 -1
  95. package/dist/cjs/radio-icon.cjs.entry.js +1 -1
  96. package/dist/cjs/ram-alt-ikon.cjs.entry.js +1 -1
  97. package/dist/cjs/ram-ikon.cjs.entry.js +1 -1
  98. package/dist/cjs/refresh-icon.cjs.entry.js +1 -1
  99. package/dist/cjs/renault-alt-ikon.cjs.entry.js +1 -1
  100. package/dist/cjs/renault-ikon.cjs.entry.js +1 -1
  101. package/dist/cjs/rolls-royce-ikon.cjs.entry.js +1 -1
  102. package/dist/cjs/saab-alt-ikon.cjs.entry.js +1 -1
  103. package/dist/cjs/saab-ikon.cjs.entry.js +1 -1
  104. package/dist/cjs/saturn-ikon.cjs.entry.js +1 -1
  105. package/dist/cjs/scion-ikon.cjs.entry.js +1 -1
  106. package/dist/cjs/seat-ikon.cjs.entry.js +1 -1
  107. package/dist/cjs/skoda-ikon.cjs.entry.js +1 -1
  108. package/dist/cjs/slug-icon.cjs.entry.js +1 -1
  109. package/dist/cjs/smart-ikon.cjs.entry.js +1 -1
  110. package/dist/cjs/spider-icon.cjs.entry.js +1 -1
  111. package/dist/cjs/spyker-alt-ikon.cjs.entry.js +1 -1
  112. package/dist/cjs/spyker-ikon.cjs.entry.js +1 -1
  113. package/dist/cjs/subaru-alt-ikon.cjs.entry.js +1 -1
  114. package/dist/cjs/subaru-ikon.cjs.entry.js +1 -1
  115. package/dist/cjs/suzuki-ikon.cjs.entry.js +1 -1
  116. package/dist/cjs/svg-icon.cjs.entry.js +1 -1
  117. package/dist/cjs/tesla-ikon.cjs.entry.js +1 -1
  118. package/dist/cjs/toyota-ikon.cjs.entry.js +1 -1
  119. package/dist/cjs/vector-curve-icon.cjs.entry.js +1 -1
  120. package/dist/cjs/volkswagen-ikon.cjs.entry.js +1 -1
  121. package/dist/cjs/volvo-alt-ikon.cjs.entry.js +1 -1
  122. package/dist/cjs/volvo-ikon.cjs.entry.js +1 -1
  123. package/dist/cjs/webhook-icon.cjs.entry.js +1 -1
  124. package/dist/collection/collection-manifest.json +1 -1
  125. package/dist/components/acura-ikon.js +1 -42
  126. package/dist/components/alfa-romeo-alt-ikon.js +1 -45
  127. package/dist/components/alfa-romeo-ikon.js +1 -42
  128. package/dist/components/alien-icon.js +1 -45
  129. package/dist/components/am-general-ikon.js +1 -42
  130. package/dist/components/asterisk-icon.js +1 -45
  131. package/dist/components/aston-martin-alt-ikon.js +1 -45
  132. package/dist/components/aston-martin-ikon.js +1 -42
  133. package/dist/components/audi-ikon.js +1 -42
  134. package/dist/components/barcode-icon.js +1 -45
  135. package/dist/components/barcode-scan-icon.js +1 -45
  136. package/dist/components/bash-icon.js +1 -45
  137. package/dist/components/beaker-icon.js +1 -45
  138. package/dist/components/bently-ikon.js +1 -42
  139. package/dist/components/bmw-ikon.js +1 -42
  140. package/dist/components/bugatti-ikon.js +1 -42
  141. package/dist/components/buick-ikon.js +1 -42
  142. package/dist/components/cadillac-ikon.js +1 -42
  143. package/dist/components/chart-bar-icon.js +1 -45
  144. package/dist/components/chart-bubble-icon.js +1 -45
  145. package/dist/components/chart-donut-icon.js +1 -45
  146. package/dist/components/chart-donuts-icon.js +1 -45
  147. package/dist/components/check-icon.js +1 -47
  148. package/dist/components/chevrolet-ikon.js +1 -42
  149. package/dist/components/chevron-double-left-icon.js +1 -45
  150. package/dist/components/chrysler-ikon.js +1 -42
  151. package/dist/components/circular-saw-icon.js +1 -45
  152. package/dist/components/citroen-ikon.js +1 -42
  153. package/dist/components/close-icon.js +1 -45
  154. package/dist/components/daewoo-ikon.js +1 -42
  155. package/dist/components/dodge-ikon.js +1 -42
  156. package/dist/components/eagle-ikon.js +1 -42
  157. package/dist/components/ferrari-ikon.js +1 -42
  158. package/dist/components/fiat-alt-ikon.js +1 -45
  159. package/dist/components/fiat-ikon.js +1 -42
  160. package/dist/components/fingerprint-icon.js +1 -45
  161. package/dist/components/fire-icon.js +1 -45
  162. package/dist/components/fisker-ikon.js +1 -42
  163. package/dist/components/flask-icon.js +1 -45
  164. package/dist/components/ford-ikon.js +1 -42
  165. package/dist/components/genesis-ikon.js +1 -42
  166. package/dist/components/geo-ikon.js +1 -42
  167. package/dist/components/git-icon.js +1 -45
  168. package/dist/components/gmc-ikon.js +1 -42
  169. package/dist/components/honda-ikon.js +1 -42
  170. package/dist/components/hummer-ikon.js +1 -42
  171. package/dist/components/hyundai-ikon.js +1 -42
  172. package/dist/components/index.d.ts +2 -0
  173. package/dist/components/index.js +1 -15
  174. package/dist/components/index2.js +1 -125
  175. package/dist/components/infiniti-ikon.js +1 -42
  176. package/dist/components/isuzu-ikon.js +1 -42
  177. package/dist/components/jaguar-alt-ikon.js +1 -45
  178. package/dist/components/jaguar-ikon.js +1 -42
  179. package/dist/components/java-script-icon.js +1 -45
  180. package/dist/components/jeep-alt-ikon.js +1 -45
  181. package/dist/components/jeep-ikon.js +1 -42
  182. package/dist/components/kia-ikon.js +1 -42
  183. package/dist/components/lamborghini-alt-ikon.js +1 -45
  184. package/dist/components/lamborghini-ikon.js +1 -42
  185. package/dist/components/land-rover-ikon.js +1 -42
  186. package/dist/components/lexus-ikon.js +1 -42
  187. package/dist/components/lincoln-ikon.js +1 -42
  188. package/dist/components/lotus-alt-ikon.js +1 -45
  189. package/dist/components/lotus-ikon.js +1 -42
  190. package/dist/components/maserati-ikon.js +1 -42
  191. package/dist/components/maybach-ikon.js +1 -42
  192. package/dist/components/mazda-alt-ikon.js +1 -45
  193. package/dist/components/mazda-ikon.js +1 -42
  194. package/dist/components/mclaren-alt-ikon.js +1 -45
  195. package/dist/components/mclaren-ikon.js +1 -42
  196. package/dist/components/mercedes-benz-alt-ikon.js +1 -45
  197. package/dist/components/mercedes-benz-ikon.js +1 -42
  198. package/dist/components/mercury-ikon.js +1 -42
  199. package/dist/components/mini-alt-ikon.js +1 -45
  200. package/dist/components/mini-ikon.js +1 -42
  201. package/dist/components/mitsubishi-ikon.js +1 -42
  202. package/dist/components/nissan-ikon.js +1 -42
  203. package/dist/components/oldsmobile-ikon.js +1 -42
  204. package/dist/components/one-password-icon.js +1 -45
  205. package/dist/components/opel-ikon.js +1 -42
  206. package/dist/components/panoz-ikon.js +1 -42
  207. package/dist/components/paw-icon.js +1 -45
  208. package/dist/components/peugeot-alt-ikon.js +1 -45
  209. package/dist/components/peugeot-ikon.js +1 -42
  210. package/dist/components/plymouth-ikon.js +1 -42
  211. package/dist/components/pontiac-ikon.js +1 -42
  212. package/dist/components/porsche-ikon.js +1 -42
  213. package/dist/components/proto-ikon-loader.js +1 -63
  214. package/dist/components/proto-ikon-raw.js +1 -60
  215. package/dist/components/protocol-icon.js +1 -45
  216. package/dist/components/pulse-icon.js +1 -45
  217. package/dist/components/puzzle-icon.js +1 -47
  218. package/dist/components/qr-code-icon.js +1 -45
  219. package/dist/components/radio-2-icon.js +1 -47
  220. package/dist/components/radio-icon.js +1 -47
  221. package/dist/components/ram-alt-ikon.js +1 -45
  222. package/dist/components/ram-ikon.js +1 -42
  223. package/dist/components/refresh-icon.js +1 -45
  224. package/dist/components/renault-alt-ikon.js +1 -45
  225. package/dist/components/renault-ikon.js +1 -42
  226. package/dist/components/rolls-royce-ikon.js +1 -42
  227. package/dist/components/saab-alt-ikon.js +1 -45
  228. package/dist/components/saab-ikon.js +1 -42
  229. package/dist/components/saturn-ikon.js +1 -42
  230. package/dist/components/scion-ikon.js +1 -42
  231. package/dist/components/seat-ikon.js +1 -42
  232. package/dist/components/skoda-ikon.js +1 -42
  233. package/dist/components/slug-icon.js +1 -43
  234. package/dist/components/smart-ikon.js +1 -42
  235. package/dist/components/spider-icon.js +1 -45
  236. package/dist/components/spyker-alt-ikon.js +1 -45
  237. package/dist/components/spyker-ikon.js +1 -42
  238. package/dist/components/subaru-alt-ikon.js +1 -45
  239. package/dist/components/subaru-ikon.js +1 -42
  240. package/dist/components/suzuki-ikon.js +1 -42
  241. package/dist/components/svg-icon.js +1 -45
  242. package/dist/components/tesla-ikon.js +1 -42
  243. package/dist/components/toyota-ikon.js +1 -42
  244. package/dist/components/vector-curve-icon.js +1 -45
  245. package/dist/components/volkswagen-ikon.js +1 -42
  246. package/dist/components/volvo-alt-ikon.js +1 -45
  247. package/dist/components/volvo-ikon.js +1 -42
  248. package/dist/components/webhook-icon.js +1 -45
  249. package/dist/esm/acura-ikon.entry.js +1 -1
  250. package/dist/esm/alfa-romeo-alt-ikon.entry.js +1 -1
  251. package/dist/esm/alfa-romeo-ikon.entry.js +1 -1
  252. package/dist/esm/alien-icon.entry.js +1 -1
  253. package/dist/esm/am-general-ikon.entry.js +1 -1
  254. package/dist/esm/asterisk-icon.entry.js +1 -1
  255. package/dist/esm/aston-martin-alt-ikon.entry.js +1 -1
  256. package/dist/esm/aston-martin-ikon.entry.js +1 -1
  257. package/dist/esm/audi-ikon.entry.js +1 -1
  258. package/dist/esm/barcode-icon.entry.js +1 -1
  259. package/dist/esm/barcode-scan-icon.entry.js +1 -1
  260. package/dist/esm/bash-icon.entry.js +1 -1
  261. package/dist/esm/beaker-icon.entry.js +1 -1
  262. package/dist/esm/bently-ikon.entry.js +1 -1
  263. package/dist/esm/bmw-ikon.entry.js +1 -1
  264. package/dist/esm/bugatti-ikon.entry.js +1 -1
  265. package/dist/esm/buick-ikon.entry.js +1 -1
  266. package/dist/esm/cadillac-ikon.entry.js +1 -1
  267. package/dist/esm/chart-bar-icon.entry.js +1 -1
  268. package/dist/esm/chart-bubble-icon.entry.js +1 -1
  269. package/dist/esm/chart-donut-icon.entry.js +1 -1
  270. package/dist/esm/chart-donuts-icon.entry.js +1 -1
  271. package/dist/esm/check-icon.entry.js +1 -1
  272. package/dist/esm/chevrolet-ikon.entry.js +1 -1
  273. package/dist/esm/chevron-double-left-icon.entry.js +1 -1
  274. package/dist/esm/chrysler-ikon.entry.js +1 -1
  275. package/dist/esm/circular-saw-icon.entry.js +1 -1
  276. package/dist/esm/citroen-ikon.entry.js +1 -1
  277. package/dist/esm/close-icon.entry.js +1 -1
  278. package/dist/esm/daewoo-ikon.entry.js +1 -1
  279. package/dist/esm/dodge-ikon.entry.js +1 -1
  280. package/dist/esm/eagle-ikon.entry.js +1 -1
  281. package/dist/esm/ferrari-ikon.entry.js +1 -1
  282. package/dist/esm/fiat-alt-ikon.entry.js +1 -1
  283. package/dist/esm/fiat-ikon.entry.js +1 -1
  284. package/dist/esm/fingerprint-icon.entry.js +1 -1
  285. package/dist/esm/fire-icon.entry.js +1 -1
  286. package/dist/esm/fisker-ikon.entry.js +1 -1
  287. package/dist/esm/flask-icon.entry.js +1 -1
  288. package/dist/esm/ford-ikon.entry.js +1 -1
  289. package/dist/esm/genesis-ikon.entry.js +1 -1
  290. package/dist/esm/geo-ikon.entry.js +1 -1
  291. package/dist/esm/git-icon.entry.js +1 -1
  292. package/dist/esm/gmc-ikon.entry.js +1 -1
  293. package/dist/esm/honda-ikon.entry.js +1 -1
  294. package/dist/esm/hummer-ikon.entry.js +1 -1
  295. package/dist/esm/hyundai-ikon.entry.js +1 -1
  296. package/dist/esm/index-C5gShwAu.js +3078 -0
  297. package/dist/esm/infiniti-ikon.entry.js +1 -1
  298. package/dist/esm/isuzu-ikon.entry.js +1 -1
  299. package/dist/esm/jaguar-alt-ikon.entry.js +1 -1
  300. package/dist/esm/jaguar-ikon.entry.js +1 -1
  301. package/dist/esm/java-script-icon.entry.js +1 -1
  302. package/dist/esm/jeep-alt-ikon.entry.js +1 -1
  303. package/dist/esm/jeep-ikon.entry.js +1 -1
  304. package/dist/esm/kia-ikon.entry.js +1 -1
  305. package/dist/esm/lamborghini-alt-ikon.entry.js +1 -1
  306. package/dist/esm/lamborghini-ikon.entry.js +1 -1
  307. package/dist/esm/land-rover-ikon.entry.js +1 -1
  308. package/dist/esm/lexus-ikon.entry.js +1 -1
  309. package/dist/esm/lincoln-ikon.entry.js +1 -1
  310. package/dist/esm/loader.js +3 -3
  311. package/dist/esm/lotus-alt-ikon.entry.js +1 -1
  312. package/dist/esm/lotus-ikon.entry.js +1 -1
  313. package/dist/esm/maserati-ikon.entry.js +1 -1
  314. package/dist/esm/maybach-ikon.entry.js +1 -1
  315. package/dist/esm/mazda-alt-ikon.entry.js +1 -1
  316. package/dist/esm/mazda-ikon.entry.js +1 -1
  317. package/dist/esm/mclaren-alt-ikon.entry.js +1 -1
  318. package/dist/esm/mclaren-ikon.entry.js +1 -1
  319. package/dist/esm/mercedes-benz-alt-ikon.entry.js +1 -1
  320. package/dist/esm/mercedes-benz-ikon.entry.js +1 -1
  321. package/dist/esm/mercury-ikon.entry.js +1 -1
  322. package/dist/esm/mini-alt-ikon.entry.js +1 -1
  323. package/dist/esm/mini-ikon.entry.js +1 -1
  324. package/dist/esm/mitsubishi-ikon.entry.js +1 -1
  325. package/dist/esm/nissan-ikon.entry.js +1 -1
  326. package/dist/esm/oldsmobile-ikon.entry.js +1 -1
  327. package/dist/esm/one-password-icon.entry.js +1 -1
  328. package/dist/esm/opel-ikon.entry.js +1 -1
  329. package/dist/esm/panoz-ikon.entry.js +1 -1
  330. package/dist/esm/paw-icon.entry.js +1 -1
  331. package/dist/esm/peugeot-alt-ikon.entry.js +1 -1
  332. package/dist/esm/peugeot-ikon.entry.js +1 -1
  333. package/dist/esm/plymouth-ikon.entry.js +1 -1
  334. package/dist/esm/pontiac-ikon.entry.js +1 -1
  335. package/dist/esm/porsche-ikon.entry.js +1 -1
  336. package/dist/esm/proto-ikon-loader-wc.js +4 -4
  337. package/dist/esm/proto-ikon-loader_2.entry.js +1 -1
  338. package/dist/esm/protocol-icon.entry.js +1 -1
  339. package/dist/esm/pulse-icon.entry.js +1 -1
  340. package/dist/esm/puzzle-icon.entry.js +1 -1
  341. package/dist/esm/qr-code-icon.entry.js +1 -1
  342. package/dist/esm/radio-2-icon.entry.js +1 -1
  343. package/dist/esm/radio-icon.entry.js +1 -1
  344. package/dist/esm/ram-alt-ikon.entry.js +1 -1
  345. package/dist/esm/ram-ikon.entry.js +1 -1
  346. package/dist/esm/refresh-icon.entry.js +1 -1
  347. package/dist/esm/renault-alt-ikon.entry.js +1 -1
  348. package/dist/esm/renault-ikon.entry.js +1 -1
  349. package/dist/esm/rolls-royce-ikon.entry.js +1 -1
  350. package/dist/esm/saab-alt-ikon.entry.js +1 -1
  351. package/dist/esm/saab-ikon.entry.js +1 -1
  352. package/dist/esm/saturn-ikon.entry.js +1 -1
  353. package/dist/esm/scion-ikon.entry.js +1 -1
  354. package/dist/esm/seat-ikon.entry.js +1 -1
  355. package/dist/esm/skoda-ikon.entry.js +1 -1
  356. package/dist/esm/slug-icon.entry.js +1 -1
  357. package/dist/esm/smart-ikon.entry.js +1 -1
  358. package/dist/esm/spider-icon.entry.js +1 -1
  359. package/dist/esm/spyker-alt-ikon.entry.js +1 -1
  360. package/dist/esm/spyker-ikon.entry.js +1 -1
  361. package/dist/esm/subaru-alt-ikon.entry.js +1 -1
  362. package/dist/esm/subaru-ikon.entry.js +1 -1
  363. package/dist/esm/suzuki-ikon.entry.js +1 -1
  364. package/dist/esm/svg-icon.entry.js +1 -1
  365. package/dist/esm/tesla-ikon.entry.js +1 -1
  366. package/dist/esm/toyota-ikon.entry.js +1 -1
  367. package/dist/esm/vector-curve-icon.entry.js +1 -1
  368. package/dist/esm/volkswagen-ikon.entry.js +1 -1
  369. package/dist/esm/volvo-alt-ikon.entry.js +1 -1
  370. package/dist/esm/volvo-ikon.entry.js +1 -1
  371. package/dist/esm/webhook-icon.entry.js +1 -1
  372. package/dist/proto-ikon-loader-wc/{p-59af44c7.entry.js → p-01a6d261.entry.js} +1 -1
  373. package/dist/proto-ikon-loader-wc/{p-4f3ec041.entry.js → p-024e4cdb.entry.js} +1 -1
  374. package/dist/proto-ikon-loader-wc/{p-34d185da.entry.js → p-02531c81.entry.js} +1 -1
  375. package/dist/proto-ikon-loader-wc/{p-17c10c13.entry.js → p-042dc15f.entry.js} +1 -1
  376. package/dist/proto-ikon-loader-wc/{p-b32e82c2.entry.js → p-0970fa62.entry.js} +1 -1
  377. package/dist/proto-ikon-loader-wc/{p-8bd4e02c.entry.js → p-09808ab4.entry.js} +1 -1
  378. package/dist/proto-ikon-loader-wc/{p-ddb3d6ff.entry.js → p-09b28bcc.entry.js} +1 -1
  379. package/dist/proto-ikon-loader-wc/{p-f0724437.entry.js → p-0c549e9a.entry.js} +1 -1
  380. package/dist/proto-ikon-loader-wc/{p-ce934a19.entry.js → p-0e9f15f7.entry.js} +1 -1
  381. package/dist/proto-ikon-loader-wc/{p-eae1170c.entry.js → p-128dc7c6.entry.js} +1 -1
  382. package/dist/proto-ikon-loader-wc/{p-57377979.entry.js → p-18c510f4.entry.js} +1 -1
  383. package/dist/proto-ikon-loader-wc/{p-668eb54e.entry.js → p-19f24556.entry.js} +1 -1
  384. package/dist/proto-ikon-loader-wc/{p-bf275276.entry.js → p-1e29fe5f.entry.js} +1 -1
  385. package/dist/proto-ikon-loader-wc/{p-3e183dc8.entry.js → p-1ee57ea8.entry.js} +1 -1
  386. package/dist/proto-ikon-loader-wc/{p-f81734f0.entry.js → p-24b294c2.entry.js} +1 -1
  387. package/dist/proto-ikon-loader-wc/{p-54fbd0e3.entry.js → p-2674bcfe.entry.js} +1 -1
  388. package/dist/proto-ikon-loader-wc/p-27499fa4.entry.js +1 -0
  389. package/dist/proto-ikon-loader-wc/{p-500e6a2c.entry.js → p-275024c4.entry.js} +1 -1
  390. package/dist/proto-ikon-loader-wc/{p-707d094f.entry.js → p-27db3e2b.entry.js} +1 -1
  391. package/dist/proto-ikon-loader-wc/{p-0cfb31f7.entry.js → p-28aea5a7.entry.js} +1 -1
  392. package/dist/proto-ikon-loader-wc/{p-8a4060e1.entry.js → p-2ac55eab.entry.js} +1 -1
  393. package/dist/proto-ikon-loader-wc/{p-505a720d.entry.js → p-2b01fdad.entry.js} +1 -1
  394. package/dist/proto-ikon-loader-wc/{p-7691eae1.entry.js → p-2d08b4eb.entry.js} +1 -1
  395. package/dist/proto-ikon-loader-wc/{p-54796ee3.entry.js → p-30d3416d.entry.js} +1 -1
  396. package/dist/proto-ikon-loader-wc/{p-00995783.entry.js → p-34b7fb73.entry.js} +1 -1
  397. package/dist/proto-ikon-loader-wc/{p-7668e9f3.entry.js → p-3529ac39.entry.js} +1 -1
  398. package/dist/proto-ikon-loader-wc/{p-4df7f413.entry.js → p-36030e88.entry.js} +1 -1
  399. package/dist/proto-ikon-loader-wc/{p-2f6eb50b.entry.js → p-39c81924.entry.js} +1 -1
  400. package/dist/proto-ikon-loader-wc/{p-2f35c8ac.entry.js → p-3c7fb207.entry.js} +1 -1
  401. package/dist/proto-ikon-loader-wc/{p-08eacd70.entry.js → p-3d66df31.entry.js} +1 -1
  402. package/dist/proto-ikon-loader-wc/{p-736552a1.entry.js → p-413e7a38.entry.js} +1 -1
  403. package/dist/proto-ikon-loader-wc/{p-acacd795.entry.js → p-41ab2602.entry.js} +1 -1
  404. package/dist/proto-ikon-loader-wc/{p-c7e41936.entry.js → p-429e09b0.entry.js} +1 -1
  405. package/dist/proto-ikon-loader-wc/{p-a1018d19.entry.js → p-4480c873.entry.js} +1 -1
  406. package/dist/proto-ikon-loader-wc/{p-a0d171e1.entry.js → p-46922108.entry.js} +1 -1
  407. package/dist/proto-ikon-loader-wc/{p-fe00f03b.entry.js → p-48ea4177.entry.js} +1 -1
  408. package/dist/proto-ikon-loader-wc/{p-e58b5b0d.entry.js → p-491c4f44.entry.js} +1 -1
  409. package/dist/proto-ikon-loader-wc/{p-86da52de.entry.js → p-4a55997f.entry.js} +1 -1
  410. package/dist/proto-ikon-loader-wc/{p-02322127.entry.js → p-4be0881b.entry.js} +1 -1
  411. package/dist/proto-ikon-loader-wc/{p-3f36a4f3.entry.js → p-4dd6166f.entry.js} +1 -1
  412. package/dist/proto-ikon-loader-wc/{p-156faa5a.entry.js → p-4f1eba0e.entry.js} +1 -1
  413. package/dist/proto-ikon-loader-wc/{p-24661808.entry.js → p-4fa0c5ae.entry.js} +1 -1
  414. package/dist/proto-ikon-loader-wc/{p-6795eea0.entry.js → p-516b581b.entry.js} +1 -1
  415. package/dist/proto-ikon-loader-wc/{p-4f920706.entry.js → p-54cc8e3e.entry.js} +1 -1
  416. package/dist/proto-ikon-loader-wc/{p-49cabc84.entry.js → p-5bca8b33.entry.js} +1 -1
  417. package/dist/proto-ikon-loader-wc/{p-0e20461f.entry.js → p-604533fd.entry.js} +1 -1
  418. package/dist/proto-ikon-loader-wc/{p-8d07193d.entry.js → p-6298d10e.entry.js} +1 -1
  419. package/dist/proto-ikon-loader-wc/{p-d15911a0.entry.js → p-652b0c0c.entry.js} +1 -1
  420. package/dist/proto-ikon-loader-wc/{p-5641e74c.entry.js → p-65ecdb8c.entry.js} +1 -1
  421. package/dist/proto-ikon-loader-wc/{p-92381700.entry.js → p-6ac90674.entry.js} +1 -1
  422. package/dist/proto-ikon-loader-wc/{p-d02f6b48.entry.js → p-6c853c9b.entry.js} +1 -1
  423. package/dist/proto-ikon-loader-wc/{p-e2001b84.entry.js → p-6d33c43f.entry.js} +1 -1
  424. package/dist/proto-ikon-loader-wc/{p-c8353f18.entry.js → p-720aa10d.entry.js} +1 -1
  425. package/dist/proto-ikon-loader-wc/{p-fd8e1f6f.entry.js → p-738c5a1a.entry.js} +1 -1
  426. package/dist/proto-ikon-loader-wc/{p-aeac1435.entry.js → p-77c1cc4d.entry.js} +1 -1
  427. package/dist/proto-ikon-loader-wc/{p-d4151734.entry.js → p-784aab1d.entry.js} +1 -1
  428. package/dist/proto-ikon-loader-wc/{p-f2911415.entry.js → p-7d662667.entry.js} +1 -1
  429. package/dist/proto-ikon-loader-wc/{p-363cbd41.entry.js → p-7ddd1e8e.entry.js} +1 -1
  430. package/dist/proto-ikon-loader-wc/{p-6d3c5c2f.entry.js → p-7e6da60e.entry.js} +1 -1
  431. package/dist/proto-ikon-loader-wc/{p-7d2c4fb4.entry.js → p-81bcf944.entry.js} +1 -1
  432. package/dist/proto-ikon-loader-wc/{p-f9272305.entry.js → p-86dc7d79.entry.js} +1 -1
  433. package/dist/proto-ikon-loader-wc/{p-cd4dcfb2.entry.js → p-8a54aa01.entry.js} +1 -1
  434. package/dist/proto-ikon-loader-wc/{p-d7fbe6c2.entry.js → p-8f27e04a.entry.js} +1 -1
  435. package/dist/proto-ikon-loader-wc/{p-d186a9cb.entry.js → p-8f9e11d0.entry.js} +1 -1
  436. package/dist/proto-ikon-loader-wc/{p-efb71889.entry.js → p-91bb0757.entry.js} +1 -1
  437. package/dist/proto-ikon-loader-wc/{p-455f84c3.entry.js → p-92563e62.entry.js} +1 -1
  438. package/dist/proto-ikon-loader-wc/{p-df75f952.entry.js → p-93e95ea1.entry.js} +1 -1
  439. package/dist/proto-ikon-loader-wc/{p-d19da4ac.entry.js → p-93ec3f3d.entry.js} +1 -1
  440. package/dist/proto-ikon-loader-wc/{p-eb8151bb.entry.js → p-9423fa0b.entry.js} +1 -1
  441. package/dist/proto-ikon-loader-wc/{p-7e3f589d.entry.js → p-98e30cda.entry.js} +1 -1
  442. package/dist/proto-ikon-loader-wc/{p-67a1af0e.entry.js → p-9930e9bd.entry.js} +1 -1
  443. package/dist/proto-ikon-loader-wc/{p-f569cae3.entry.js → p-99811a48.entry.js} +1 -1
  444. package/dist/proto-ikon-loader-wc/{p-f9026590.entry.js → p-9ae760d6.entry.js} +1 -1
  445. package/dist/proto-ikon-loader-wc/{p-30e0bd0d.entry.js → p-9be0b3dc.entry.js} +1 -1
  446. package/dist/proto-ikon-loader-wc/{p-955434f4.entry.js → p-9d4aff04.entry.js} +1 -1
  447. package/dist/proto-ikon-loader-wc/p-C5gShwAu.js +2 -0
  448. package/dist/proto-ikon-loader-wc/{p-778f0f98.entry.js → p-a1ca11ec.entry.js} +1 -1
  449. package/dist/proto-ikon-loader-wc/{p-c2ade4cf.entry.js → p-a32cf0ee.entry.js} +1 -1
  450. package/dist/proto-ikon-loader-wc/{p-8b803760.entry.js → p-a3de24d9.entry.js} +1 -1
  451. package/dist/proto-ikon-loader-wc/{p-b5062456.entry.js → p-a41e9a5b.entry.js} +1 -1
  452. package/dist/proto-ikon-loader-wc/{p-78dadf06.entry.js → p-a8622082.entry.js} +1 -1
  453. package/dist/proto-ikon-loader-wc/{p-ba95e0a6.entry.js → p-aa0d2e20.entry.js} +1 -1
  454. package/dist/proto-ikon-loader-wc/{p-1993169a.entry.js → p-ae3134ee.entry.js} +1 -1
  455. package/dist/proto-ikon-loader-wc/{p-9c185aee.entry.js → p-af90eb57.entry.js} +1 -1
  456. package/dist/proto-ikon-loader-wc/{p-0533a908.entry.js → p-b07cde47.entry.js} +1 -1
  457. package/dist/proto-ikon-loader-wc/{p-6610c485.entry.js → p-b6a7cad9.entry.js} +1 -1
  458. package/dist/proto-ikon-loader-wc/{p-f36f664f.entry.js → p-b6f7326b.entry.js} +1 -1
  459. package/dist/proto-ikon-loader-wc/{p-02cdc9ce.entry.js → p-b843e16f.entry.js} +1 -1
  460. package/dist/proto-ikon-loader-wc/{p-8ee75ce3.entry.js → p-b8804780.entry.js} +1 -1
  461. package/dist/proto-ikon-loader-wc/{p-b137af4c.entry.js → p-bc94be8f.entry.js} +1 -1
  462. package/dist/proto-ikon-loader-wc/{p-d584141c.entry.js → p-c21d218a.entry.js} +1 -1
  463. package/dist/proto-ikon-loader-wc/{p-1bd262b8.entry.js → p-c4adc217.entry.js} +1 -1
  464. package/dist/proto-ikon-loader-wc/{p-10d97264.entry.js → p-c51fe452.entry.js} +1 -1
  465. package/dist/proto-ikon-loader-wc/{p-58e7f657.entry.js → p-c8e80b91.entry.js} +1 -1
  466. package/dist/proto-ikon-loader-wc/{p-3c0d8fb6.entry.js → p-c9f23dff.entry.js} +1 -1
  467. package/dist/proto-ikon-loader-wc/{p-32fa4824.entry.js → p-cd14bfc9.entry.js} +1 -1
  468. package/dist/proto-ikon-loader-wc/{p-093eb577.entry.js → p-cdc72158.entry.js} +1 -1
  469. package/dist/proto-ikon-loader-wc/{p-51b88e6e.entry.js → p-d08a5162.entry.js} +1 -1
  470. package/dist/proto-ikon-loader-wc/{p-8dfd87c6.entry.js → p-d10c5746.entry.js} +1 -1
  471. package/dist/proto-ikon-loader-wc/{p-5e759854.entry.js → p-d7ba4311.entry.js} +1 -1
  472. package/dist/proto-ikon-loader-wc/{p-441064dd.entry.js → p-d7eb5a77.entry.js} +1 -1
  473. package/dist/proto-ikon-loader-wc/{p-363d672a.entry.js → p-d8b002fb.entry.js} +1 -1
  474. package/dist/proto-ikon-loader-wc/{p-a7e8e50d.entry.js → p-d8e298bf.entry.js} +1 -1
  475. package/dist/proto-ikon-loader-wc/p-dad6f9d9.entry.js +1 -0
  476. package/dist/proto-ikon-loader-wc/{p-de33c760.entry.js → p-e3452232.entry.js} +1 -1
  477. package/dist/proto-ikon-loader-wc/{p-ff3f13b6.entry.js → p-e3470717.entry.js} +1 -1
  478. package/dist/proto-ikon-loader-wc/{p-667abe82.entry.js → p-e9d2a093.entry.js} +1 -1
  479. package/dist/proto-ikon-loader-wc/{p-ea3ccb58.entry.js → p-ec60befd.entry.js} +1 -1
  480. package/dist/proto-ikon-loader-wc/{p-fb17f27e.entry.js → p-eea1af9e.entry.js} +1 -1
  481. package/dist/proto-ikon-loader-wc/{p-277b76d1.entry.js → p-efccff91.entry.js} +1 -1
  482. package/dist/proto-ikon-loader-wc/{p-7065fcdf.entry.js → p-f0c40670.entry.js} +1 -1
  483. package/dist/proto-ikon-loader-wc/{p-754dafef.entry.js → p-f3b82ef8.entry.js} +1 -1
  484. package/dist/proto-ikon-loader-wc/{p-36e62813.entry.js → p-fa1fb22b.entry.js} +1 -1
  485. package/dist/proto-ikon-loader-wc/{p-d8b8980f.entry.js → p-fb4b9a9d.entry.js} +1 -1
  486. package/dist/proto-ikon-loader-wc/{p-202aa82f.entry.js → p-fb995b90.entry.js} +1 -1
  487. package/dist/proto-ikon-loader-wc/{p-335dfc2b.entry.js → p-fc6d9920.entry.js} +1 -1
  488. package/dist/proto-ikon-loader-wc/{p-6c2d44b3.entry.js → p-fcc06a4d.entry.js} +1 -1
  489. package/dist/proto-ikon-loader-wc/{p-b3e2c7b8.entry.js → p-fd15a4ff.entry.js} +1 -1
  490. package/dist/proto-ikon-loader-wc/{p-3ae47ce1.entry.js → p-fde28ed9.entry.js} +1 -1
  491. package/dist/proto-ikon-loader-wc/{p-2f0e9f61.entry.js → p-fe0016ab.entry.js} +1 -1
  492. package/dist/proto-ikon-loader-wc/{p-b9c2067b.entry.js → p-fe4b8b6b.entry.js} +1 -1
  493. package/dist/proto-ikon-loader-wc/proto-ikon-loader-wc.esm.js +1 -1
  494. package/dist/types/stencil-public-runtime.d.ts +14 -3
  495. package/package.json +2 -2
  496. package/dist/cjs/index-khaT_l8O.js +0 -1470
  497. package/dist/esm/index-C0SYXKsm.js +0 -1463
  498. package/dist/proto-ikon-loader-wc/p-65207b6b.entry.js +0 -1
  499. package/dist/proto-ikon-loader-wc/p-844814ce.entry.js +0 -1
  500. package/dist/proto-ikon-loader-wc/p-C0SYXKsm.js +0 -2
@@ -1,1463 +0,0 @@
1
- const NAMESPACE = 'proto-ikon-loader-wc';
2
- const BUILD = /* proto-ikon-loader-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: false, updatable: true};
3
-
4
- /*
5
- Stencil Client Platform v4.39.0 | MIT Licensed | https://stenciljs.com
6
- */
7
- var __defProp = Object.defineProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
-
13
- // src/utils/constants.ts
14
- var SVG_NS = "http://www.w3.org/2000/svg";
15
- var HTML_NS = "http://www.w3.org/1999/xhtml";
16
- var reWireGetterSetter = (instance, hostRef) => {
17
- var _a;
18
- const cmpMeta = hostRef.$cmpMeta$;
19
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
20
- members.map(([memberName, [memberFlags]]) => {
21
- if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
22
- const ogValue = instance[memberName];
23
- const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
24
- if (ogDescriptor) {
25
- Object.defineProperty(instance, memberName, {
26
- get() {
27
- return ogDescriptor.get.call(this);
28
- },
29
- set(newValue) {
30
- ogDescriptor.set.call(this, newValue);
31
- },
32
- configurable: true,
33
- enumerable: true
34
- });
35
- }
36
- instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
37
- }
38
- });
39
- };
40
- function getPropertyDescriptor(obj, memberName) {
41
- while (obj) {
42
- const desc = Object.getOwnPropertyDescriptor(obj, memberName);
43
- if (desc == null ? void 0 : desc.get) return desc;
44
- obj = Object.getPrototypeOf(obj);
45
- }
46
- return void 0;
47
- }
48
-
49
- // src/client/client-host-ref.ts
50
- var getHostRef = (ref) => {
51
- if (ref.__stencil__getHostRef) {
52
- return ref.__stencil__getHostRef();
53
- }
54
- return void 0;
55
- };
56
- var registerInstance = (lazyInstance, hostRef) => {
57
- if (!hostRef) return;
58
- lazyInstance.__stencil__getHostRef = () => hostRef;
59
- hostRef.$lazyInstance$ = lazyInstance;
60
- if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
61
- reWireGetterSetter(lazyInstance, hostRef);
62
- }
63
- };
64
- var registerHost = (hostElement, cmpMeta) => {
65
- const hostRef = {
66
- $flags$: 0,
67
- $hostElement$: hostElement,
68
- $cmpMeta$: cmpMeta,
69
- $instanceValues$: /* @__PURE__ */ new Map(),
70
- $serializerValues$: /* @__PURE__ */ new Map()
71
- };
72
- {
73
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
74
- hostElement["s-p"] = [];
75
- hostElement["s-rc"] = [];
76
- }
77
- {
78
- hostRef.$fetchedCbList$ = [];
79
- }
80
- const ref = hostRef;
81
- hostElement.__stencil__getHostRef = () => ref;
82
- return ref;
83
- };
84
- var isMemberInElement = (elm, memberName) => memberName in elm;
85
- var consoleError = (e, el) => (0, console.error)(e, el);
86
-
87
- // src/client/client-load-module.ts
88
- var cmpModules = /* @__PURE__ */ new Map();
89
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
90
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
91
- const bundleId = cmpMeta.$lazyBundleId$;
92
- if (!bundleId) {
93
- return void 0;
94
- }
95
- const module = cmpModules.get(bundleId) ;
96
- if (module) {
97
- return module[exportName];
98
- }
99
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
100
- return import(
101
- /* @vite-ignore */
102
- /* webpackInclude: /\.entry\.js$/ */
103
- /* webpackExclude: /\.system\.entry\.js$/ */
104
- /* webpackMode: "lazy" */
105
- `./${bundleId}.entry.js${""}`
106
- ).then(
107
- (importedModule) => {
108
- {
109
- cmpModules.set(bundleId, importedModule);
110
- }
111
- return importedModule[exportName];
112
- },
113
- (e) => {
114
- consoleError(e, hostRef.$hostElement$);
115
- }
116
- );
117
- };
118
-
119
- // src/client/client-style.ts
120
- var styles = /* @__PURE__ */ new Map();
121
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
122
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
123
- var XLINK_NS = "http://www.w3.org/1999/xlink";
124
- var win = typeof window !== "undefined" ? window : {};
125
- var plt = {
126
- $flags$: 0,
127
- $resourcesUrl$: "",
128
- jmp: (h2) => h2(),
129
- raf: (h2) => requestAnimationFrame(h2),
130
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
131
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
132
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
133
- };
134
- var promiseResolve = (v) => Promise.resolve(v);
135
- var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
136
- try {
137
- new CSSStyleSheet();
138
- return typeof new CSSStyleSheet().replaceSync === "function";
139
- } catch (e) {
140
- }
141
- return false;
142
- })() ;
143
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
144
- var queuePending = false;
145
- var queueDomReads = [];
146
- var queueDomWrites = [];
147
- var queueTask = (queue, write) => (cb) => {
148
- queue.push(cb);
149
- if (!queuePending) {
150
- queuePending = true;
151
- if (write && plt.$flags$ & 4 /* queueSync */) {
152
- nextTick(flush);
153
- } else {
154
- plt.raf(flush);
155
- }
156
- }
157
- };
158
- var consume = (queue) => {
159
- for (let i2 = 0; i2 < queue.length; i2++) {
160
- try {
161
- queue[i2](performance.now());
162
- } catch (e) {
163
- consoleError(e);
164
- }
165
- }
166
- queue.length = 0;
167
- };
168
- var flush = () => {
169
- consume(queueDomReads);
170
- {
171
- consume(queueDomWrites);
172
- if (queuePending = queueDomReads.length > 0) {
173
- plt.raf(flush);
174
- }
175
- }
176
- };
177
- var nextTick = (cb) => promiseResolve().then(cb);
178
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
179
- var isComplexType = (o) => {
180
- o = typeof o;
181
- return o === "object" || o === "function";
182
- };
183
-
184
- // src/utils/query-nonce-meta-tag-content.ts
185
- function queryNonceMetaTagContent(doc) {
186
- var _a, _b, _c;
187
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
188
- }
189
-
190
- // src/utils/regular-expression.ts
191
- var escapeRegExpSpecialCharacters = (text) => {
192
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
193
- };
194
-
195
- // src/utils/result.ts
196
- var result_exports = {};
197
- __export(result_exports, {
198
- err: () => err,
199
- map: () => map,
200
- ok: () => ok,
201
- unwrap: () => unwrap,
202
- unwrapErr: () => unwrapErr
203
- });
204
- var ok = (value) => ({
205
- isOk: true,
206
- isErr: false,
207
- value
208
- });
209
- var err = (value) => ({
210
- isOk: false,
211
- isErr: true,
212
- value
213
- });
214
- function map(result, fn) {
215
- if (result.isOk) {
216
- const val = fn(result.value);
217
- if (val instanceof Promise) {
218
- return val.then((newVal) => ok(newVal));
219
- } else {
220
- return ok(val);
221
- }
222
- }
223
- if (result.isErr) {
224
- const value = result.value;
225
- return err(value);
226
- }
227
- throw "should never get here";
228
- }
229
- var unwrap = (result) => {
230
- if (result.isOk) {
231
- return result.value;
232
- } else {
233
- throw result.value;
234
- }
235
- };
236
- var unwrapErr = (result) => {
237
- if (result.isErr) {
238
- return result.value;
239
- } else {
240
- throw result.value;
241
- }
242
- };
243
-
244
- // src/utils/style.ts
245
- function createStyleSheetIfNeededAndSupported(styles2) {
246
- return void 0;
247
- }
248
-
249
- // src/utils/shadow-root.ts
250
- var globalStyleSheet;
251
- function createShadowRoot(cmpMeta) {
252
- var _a;
253
- const shadowRoot = this.attachShadow({ mode: "open" });
254
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
255
- if (globalStyleSheet) {
256
- if (supportsMutableAdoptedStyleSheets) {
257
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
258
- } else {
259
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
260
- }
261
- }
262
- }
263
- var createTime = (fnName, tagName = "") => {
264
- {
265
- return () => {
266
- return;
267
- };
268
- }
269
- };
270
- var uniqueTime = (key, measureText) => {
271
- {
272
- return () => {
273
- return;
274
- };
275
- }
276
- };
277
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
278
- var registerStyle = (scopeId2, cssText, allowCS) => {
279
- let style = styles.get(scopeId2);
280
- if (supportsConstructableStylesheets && allowCS) {
281
- style = style || new CSSStyleSheet();
282
- if (typeof style === "string") {
283
- style = cssText;
284
- } else {
285
- style.replaceSync(cssText);
286
- }
287
- } else {
288
- style = cssText;
289
- }
290
- styles.set(scopeId2, style);
291
- };
292
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
293
- var _a;
294
- const scopeId2 = getScopeId(cmpMeta);
295
- const style = styles.get(scopeId2);
296
- if (!win.document) {
297
- return scopeId2;
298
- }
299
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
300
- if (style) {
301
- if (typeof style === "string") {
302
- styleContainerNode = styleContainerNode.head || styleContainerNode;
303
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
304
- let styleElm;
305
- if (!appliedStyles) {
306
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
307
- }
308
- if (!appliedStyles.has(scopeId2)) {
309
- {
310
- styleElm = win.document.createElement("style");
311
- styleElm.innerHTML = style;
312
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
313
- if (nonce != null) {
314
- styleElm.setAttribute("nonce", nonce);
315
- }
316
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
317
- if (styleContainerNode.nodeName === "HEAD") {
318
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
319
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
320
- styleContainerNode.insertBefore(
321
- styleElm,
322
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
323
- );
324
- } else if ("host" in styleContainerNode) {
325
- if (supportsConstructableStylesheets) {
326
- const stylesheet = new CSSStyleSheet();
327
- stylesheet.replaceSync(style);
328
- if (supportsMutableAdoptedStyleSheets) {
329
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
330
- } else {
331
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
332
- }
333
- } else {
334
- const existingStyleContainer = styleContainerNode.querySelector("style");
335
- if (existingStyleContainer) {
336
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
337
- } else {
338
- styleContainerNode.prepend(styleElm);
339
- }
340
- }
341
- } else {
342
- styleContainerNode.append(styleElm);
343
- }
344
- }
345
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
346
- styleContainerNode.insertBefore(styleElm, null);
347
- }
348
- }
349
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
350
- styleElm.innerHTML += SLOT_FB_CSS;
351
- }
352
- if (appliedStyles) {
353
- appliedStyles.add(scopeId2);
354
- }
355
- }
356
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
357
- if (supportsMutableAdoptedStyleSheets) {
358
- styleContainerNode.adoptedStyleSheets.push(style);
359
- } else {
360
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
361
- }
362
- }
363
- }
364
- return scopeId2;
365
- };
366
- var attachStyles = (hostRef) => {
367
- const cmpMeta = hostRef.$cmpMeta$;
368
- const elm = hostRef.$hostElement$;
369
- const flags = cmpMeta.$flags$;
370
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
371
- const scopeId2 = addStyle(
372
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
373
- cmpMeta);
374
- if (flags & 10 /* needsScopedEncapsulation */) {
375
- elm["s-sc"] = scopeId2;
376
- elm.classList.add(scopeId2 + "-h");
377
- }
378
- endAttachStyles();
379
- };
380
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
381
- var h = (nodeName, vnodeData, ...children) => {
382
- if (typeof nodeName === "string") {
383
- nodeName = transformTag(nodeName);
384
- }
385
- let child = null;
386
- let key = null;
387
- let simple = false;
388
- let lastSimple = false;
389
- const vNodeChildren = [];
390
- const walk = (c) => {
391
- for (let i2 = 0; i2 < c.length; i2++) {
392
- child = c[i2];
393
- if (Array.isArray(child)) {
394
- walk(child);
395
- } else if (child != null && typeof child !== "boolean") {
396
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
397
- child = String(child);
398
- }
399
- if (simple && lastSimple) {
400
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
401
- } else {
402
- vNodeChildren.push(simple ? newVNode(null, child) : child);
403
- }
404
- lastSimple = simple;
405
- }
406
- }
407
- };
408
- walk(children);
409
- if (vnodeData) {
410
- if (vnodeData.key) {
411
- key = vnodeData.key;
412
- }
413
- {
414
- const classData = vnodeData.className || vnodeData.class;
415
- if (classData) {
416
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
417
- }
418
- }
419
- }
420
- if (typeof nodeName === "function") {
421
- return nodeName(
422
- vnodeData === null ? {} : vnodeData,
423
- vNodeChildren,
424
- vdomFnUtils
425
- );
426
- }
427
- const vnode = newVNode(nodeName, null);
428
- vnode.$attrs$ = vnodeData;
429
- if (vNodeChildren.length > 0) {
430
- vnode.$children$ = vNodeChildren;
431
- }
432
- {
433
- vnode.$key$ = key;
434
- }
435
- return vnode;
436
- };
437
- var newVNode = (tag, text) => {
438
- const vnode = {
439
- $flags$: 0,
440
- $tag$: tag,
441
- $text$: text,
442
- $elm$: null,
443
- $children$: null
444
- };
445
- {
446
- vnode.$attrs$ = null;
447
- }
448
- {
449
- vnode.$key$ = null;
450
- }
451
- return vnode;
452
- };
453
- var Host = {};
454
- var isHost = (node) => node && node.$tag$ === Host;
455
- var vdomFnUtils = {
456
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
457
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
458
- };
459
- var convertToPublic = (node) => ({
460
- vattrs: node.$attrs$,
461
- vchildren: node.$children$,
462
- vkey: node.$key$,
463
- vname: node.$name$,
464
- vtag: node.$tag$,
465
- vtext: node.$text$
466
- });
467
- var convertToPrivate = (node) => {
468
- if (typeof node.vtag === "function") {
469
- const vnodeData = { ...node.vattrs };
470
- if (node.vkey) {
471
- vnodeData.key = node.vkey;
472
- }
473
- if (node.vname) {
474
- vnodeData.name = node.vname;
475
- }
476
- return h(node.vtag, vnodeData, ...node.vchildren || []);
477
- }
478
- const vnode = newVNode(node.vtag, node.vtext);
479
- vnode.$attrs$ = node.vattrs;
480
- vnode.$children$ = node.vchildren;
481
- vnode.$key$ = node.vkey;
482
- vnode.$name$ = node.vname;
483
- return vnode;
484
- };
485
- var createSupportsRuleRe = (selector) => {
486
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
487
- return new RegExp(
488
- // First capture group: match any context before the selector that's not inside @supports selector()
489
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
490
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
491
- "g"
492
- );
493
- };
494
- createSupportsRuleRe("::slotted");
495
- createSupportsRuleRe(":host");
496
- createSupportsRuleRe(":host-context");
497
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
498
- if (propValue != null && !isComplexType(propValue)) {
499
- if (propType & 4 /* Boolean */) {
500
- {
501
- return propValue === "false" ? false : propValue === "" || !!propValue;
502
- }
503
- }
504
- if (propType & 2 /* Number */) {
505
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
506
- }
507
- if (propType & 1 /* String */) {
508
- return String(propValue);
509
- }
510
- return propValue;
511
- }
512
- return propValue;
513
- };
514
- var getElement = (ref) => {
515
- var _a;
516
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
517
- };
518
- var emitEvent = (elm, name, opts) => {
519
- const ev = plt.ce(name, opts);
520
- elm.dispatchEvent(ev);
521
- return ev;
522
- };
523
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
524
- if (oldValue === newValue) {
525
- return;
526
- }
527
- let isProp = isMemberInElement(elm, memberName);
528
- let ln = memberName.toLowerCase();
529
- if (memberName === "class") {
530
- const classList = elm.classList;
531
- const oldClasses = parseClassList(oldValue);
532
- let newClasses = parseClassList(newValue);
533
- {
534
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
535
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
536
- }
537
- } else if (memberName === "key") ; else {
538
- const isComplex = isComplexType(newValue);
539
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
540
- try {
541
- if (!elm.tagName.includes("-")) {
542
- const n = newValue == null ? "" : newValue;
543
- if (memberName === "list") {
544
- isProp = false;
545
- } else if (oldValue == null || elm[memberName] != n) {
546
- if (typeof elm.__lookupSetter__(memberName) === "function") {
547
- elm[memberName] = n;
548
- } else {
549
- elm.setAttribute(memberName, n);
550
- }
551
- }
552
- } else if (elm[memberName] !== newValue) {
553
- elm[memberName] = newValue;
554
- }
555
- } catch (e) {
556
- }
557
- }
558
- let xlink = false;
559
- {
560
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
561
- memberName = ln;
562
- xlink = true;
563
- }
564
- }
565
- if (newValue == null || newValue === false) {
566
- if (newValue !== false || elm.getAttribute(memberName) === "") {
567
- if (xlink) {
568
- elm.removeAttributeNS(XLINK_NS, memberName);
569
- } else {
570
- elm.removeAttribute(memberName);
571
- }
572
- }
573
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
574
- newValue = newValue === true ? "" : newValue;
575
- if (xlink) {
576
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
577
- } else {
578
- elm.setAttribute(memberName, newValue);
579
- }
580
- }
581
- }
582
- };
583
- var parseClassListRegex = /\s/;
584
- var parseClassList = (value) => {
585
- if (typeof value === "object" && value && "baseVal" in value) {
586
- value = value.baseVal;
587
- }
588
- if (!value || typeof value !== "string") {
589
- return [];
590
- }
591
- return value.split(parseClassListRegex);
592
- };
593
-
594
- // src/runtime/vdom/update-element.ts
595
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
596
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
597
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
598
- const newVnodeAttrs = newVnode.$attrs$ || {};
599
- {
600
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
601
- if (!(memberName in newVnodeAttrs)) {
602
- setAccessor(
603
- elm,
604
- memberName,
605
- oldVnodeAttrs[memberName],
606
- void 0,
607
- isSvgMode2,
608
- newVnode.$flags$);
609
- }
610
- }
611
- }
612
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
613
- setAccessor(
614
- elm,
615
- memberName,
616
- oldVnodeAttrs[memberName],
617
- newVnodeAttrs[memberName],
618
- isSvgMode2,
619
- newVnode.$flags$);
620
- }
621
- };
622
- function sortedAttrNames(attrNames) {
623
- return attrNames.includes("ref") ? (
624
- // we need to sort these to ensure that `'ref'` is the last attr
625
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
626
- ) : (
627
- // no need to sort, return the original array
628
- attrNames
629
- );
630
- }
631
- var hostTagName;
632
- var isSvgMode = false;
633
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
634
- const newVNode2 = newParentVNode.$children$[childIndex];
635
- let i2 = 0;
636
- let elm;
637
- let childNode;
638
- if (newVNode2.$text$ !== null) {
639
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
640
- } else {
641
- if (!isSvgMode) {
642
- isSvgMode = newVNode2.$tag$ === "svg";
643
- }
644
- if (!win.document) {
645
- throw new Error(
646
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
647
- );
648
- }
649
- elm = newVNode2.$elm$ = win.document.createElementNS(
650
- isSvgMode ? SVG_NS : HTML_NS,
651
- newVNode2.$tag$
652
- ) ;
653
- if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
654
- isSvgMode = false;
655
- }
656
- {
657
- updateElement(null, newVNode2, isSvgMode);
658
- }
659
- if (newVNode2.$children$) {
660
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
661
- childNode = createElm(oldParentVNode, newVNode2, i2);
662
- if (childNode) {
663
- elm.appendChild(childNode);
664
- }
665
- }
666
- }
667
- {
668
- if (newVNode2.$tag$ === "svg") {
669
- isSvgMode = false;
670
- } else if (elm.tagName === "foreignObject") {
671
- isSvgMode = true;
672
- }
673
- }
674
- }
675
- elm["s-hn"] = hostTagName;
676
- return elm;
677
- };
678
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
679
- let containerElm = parentElm;
680
- let childNode;
681
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
682
- containerElm = containerElm.shadowRoot;
683
- }
684
- for (; startIdx <= endIdx; ++startIdx) {
685
- if (vnodes[startIdx]) {
686
- childNode = createElm(null, parentVNode, startIdx);
687
- if (childNode) {
688
- vnodes[startIdx].$elm$ = childNode;
689
- insertBefore(containerElm, childNode, before);
690
- }
691
- }
692
- }
693
- };
694
- var removeVnodes = (vnodes, startIdx, endIdx) => {
695
- for (let index = startIdx; index <= endIdx; ++index) {
696
- const vnode = vnodes[index];
697
- if (vnode) {
698
- const elm = vnode.$elm$;
699
- if (elm) {
700
- elm.remove();
701
- }
702
- }
703
- }
704
- };
705
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
706
- let oldStartIdx = 0;
707
- let newStartIdx = 0;
708
- let idxInOld = 0;
709
- let i2 = 0;
710
- let oldEndIdx = oldCh.length - 1;
711
- let oldStartVnode = oldCh[0];
712
- let oldEndVnode = oldCh[oldEndIdx];
713
- let newEndIdx = newCh.length - 1;
714
- let newStartVnode = newCh[0];
715
- let newEndVnode = newCh[newEndIdx];
716
- let node;
717
- let elmToMove;
718
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
719
- if (oldStartVnode == null) {
720
- oldStartVnode = oldCh[++oldStartIdx];
721
- } else if (oldEndVnode == null) {
722
- oldEndVnode = oldCh[--oldEndIdx];
723
- } else if (newStartVnode == null) {
724
- newStartVnode = newCh[++newStartIdx];
725
- } else if (newEndVnode == null) {
726
- newEndVnode = newCh[--newEndIdx];
727
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
728
- patch(oldStartVnode, newStartVnode, isInitialRender);
729
- oldStartVnode = oldCh[++oldStartIdx];
730
- newStartVnode = newCh[++newStartIdx];
731
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
732
- patch(oldEndVnode, newEndVnode, isInitialRender);
733
- oldEndVnode = oldCh[--oldEndIdx];
734
- newEndVnode = newCh[--newEndIdx];
735
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
736
- patch(oldStartVnode, newEndVnode, isInitialRender);
737
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
738
- oldStartVnode = oldCh[++oldStartIdx];
739
- newEndVnode = newCh[--newEndIdx];
740
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
741
- patch(oldEndVnode, newStartVnode, isInitialRender);
742
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
743
- oldEndVnode = oldCh[--oldEndIdx];
744
- newStartVnode = newCh[++newStartIdx];
745
- } else {
746
- idxInOld = -1;
747
- {
748
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
749
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
750
- idxInOld = i2;
751
- break;
752
- }
753
- }
754
- }
755
- if (idxInOld >= 0) {
756
- elmToMove = oldCh[idxInOld];
757
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
758
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
759
- } else {
760
- patch(elmToMove, newStartVnode, isInitialRender);
761
- oldCh[idxInOld] = void 0;
762
- node = elmToMove.$elm$;
763
- }
764
- newStartVnode = newCh[++newStartIdx];
765
- } else {
766
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
767
- newStartVnode = newCh[++newStartIdx];
768
- }
769
- if (node) {
770
- {
771
- insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
772
- }
773
- }
774
- }
775
- }
776
- if (oldStartIdx > oldEndIdx) {
777
- addVnodes(
778
- parentElm,
779
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
780
- newVNode2,
781
- newCh,
782
- newStartIdx,
783
- newEndIdx
784
- );
785
- } else if (newStartIdx > newEndIdx) {
786
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
787
- }
788
- };
789
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
790
- if (leftVNode.$tag$ === rightVNode.$tag$) {
791
- if (!isInitialRender) {
792
- return leftVNode.$key$ === rightVNode.$key$;
793
- }
794
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
795
- leftVNode.$key$ = rightVNode.$key$;
796
- }
797
- return true;
798
- }
799
- return false;
800
- };
801
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
802
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
803
- const oldChildren = oldVNode.$children$;
804
- const newChildren = newVNode2.$children$;
805
- const tag = newVNode2.$tag$;
806
- const text = newVNode2.$text$;
807
- if (text === null) {
808
- {
809
- isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
810
- }
811
- {
812
- updateElement(oldVNode, newVNode2, isSvgMode);
813
- }
814
- if (oldChildren !== null && newChildren !== null) {
815
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
816
- } else if (newChildren !== null) {
817
- if (oldVNode.$text$ !== null) {
818
- elm.textContent = "";
819
- }
820
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
821
- } else if (
822
- // don't do this on initial render as it can cause non-hydrated content to be removed
823
- !isInitialRender && BUILD.updatable && oldChildren !== null
824
- ) {
825
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
826
- } else ;
827
- if (isSvgMode && tag === "svg") {
828
- isSvgMode = false;
829
- }
830
- } else if (oldVNode.$text$ !== text) {
831
- elm.data = text;
832
- }
833
- };
834
- var insertBefore = (parent, newNode, reference) => {
835
- {
836
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
837
- }
838
- };
839
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
840
- const hostElm = hostRef.$hostElement$;
841
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
842
- const isHostElement = isHost(renderFnResults);
843
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
844
- hostTagName = hostElm.tagName;
845
- if (isInitialLoad && rootVnode.$attrs$) {
846
- for (const key of Object.keys(rootVnode.$attrs$)) {
847
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
848
- rootVnode.$attrs$[key] = hostElm[key];
849
- }
850
- }
851
- }
852
- rootVnode.$tag$ = null;
853
- rootVnode.$flags$ |= 4 /* isHost */;
854
- hostRef.$vnode$ = rootVnode;
855
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
856
- patch(oldVNode, rootVnode, isInitialLoad);
857
- };
858
-
859
- // src/runtime/update-component.ts
860
- var attachToAncestor = (hostRef, ancestorComponent) => {
861
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
862
- const index = ancestorComponent["s-p"].push(
863
- new Promise(
864
- (r) => hostRef.$onRenderResolve$ = () => {
865
- ancestorComponent["s-p"].splice(index - 1, 1);
866
- r();
867
- }
868
- )
869
- );
870
- }
871
- };
872
- var scheduleUpdate = (hostRef, isInitialLoad) => {
873
- {
874
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
875
- }
876
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
877
- hostRef.$flags$ |= 512 /* needsRerender */;
878
- return;
879
- }
880
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
881
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
882
- if (isInitialLoad) {
883
- queueMicrotask(() => {
884
- dispatch();
885
- });
886
- return;
887
- }
888
- return writeTask(dispatch) ;
889
- };
890
- var dispatchHooks = (hostRef, isInitialLoad) => {
891
- const elm = hostRef.$hostElement$;
892
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
893
- const instance = hostRef.$lazyInstance$ ;
894
- if (!instance) {
895
- throw new Error(
896
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
897
- );
898
- }
899
- let maybePromise;
900
- if (isInitialLoad) {
901
- {
902
- if (hostRef.$fetchedCbList$.length) {
903
- hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
904
- }
905
- }
906
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
907
- } else {
908
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
909
- }
910
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
911
- endSchedule();
912
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
913
- };
914
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
915
- console.error(err2);
916
- fn();
917
- }) : fn();
918
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
919
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
920
- var _a;
921
- const elm = hostRef.$hostElement$;
922
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
923
- const rc = elm["s-rc"];
924
- if (isInitialLoad) {
925
- attachStyles(hostRef);
926
- }
927
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
928
- {
929
- callRender(hostRef, instance, elm, isInitialLoad);
930
- }
931
- if (rc) {
932
- rc.map((cb) => cb());
933
- elm["s-rc"] = void 0;
934
- }
935
- endRender();
936
- endUpdate();
937
- {
938
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
939
- const postUpdate = () => postUpdateComponent(hostRef);
940
- if (childrenPromises.length === 0) {
941
- postUpdate();
942
- } else {
943
- Promise.all(childrenPromises).then(postUpdate);
944
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
945
- childrenPromises.length = 0;
946
- }
947
- }
948
- };
949
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
950
- try {
951
- instance = instance.render() ;
952
- {
953
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
954
- }
955
- {
956
- hostRef.$flags$ |= 2 /* hasRendered */;
957
- }
958
- {
959
- {
960
- {
961
- renderVdom(hostRef, instance, isInitialLoad);
962
- }
963
- }
964
- }
965
- } catch (e) {
966
- consoleError(e, hostRef.$hostElement$);
967
- }
968
- return null;
969
- };
970
- var postUpdateComponent = (hostRef) => {
971
- const tagName = hostRef.$cmpMeta$.$tagName$;
972
- const elm = hostRef.$hostElement$;
973
- const endPostUpdate = createTime("postUpdate", tagName);
974
- const instance = hostRef.$lazyInstance$ ;
975
- const ancestorComponent = hostRef.$ancestorComponent$;
976
- safeCall(instance, "componentDidRender", void 0, elm);
977
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
978
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
979
- {
980
- addHydratedFlag(elm);
981
- }
982
- safeCall(instance, "componentDidLoad", void 0, elm);
983
- endPostUpdate();
984
- {
985
- hostRef.$onReadyResolve$(elm);
986
- if (!ancestorComponent) {
987
- appDidLoad();
988
- }
989
- }
990
- } else {
991
- safeCall(instance, "componentDidUpdate", void 0, elm);
992
- endPostUpdate();
993
- }
994
- {
995
- if (hostRef.$onRenderResolve$) {
996
- hostRef.$onRenderResolve$();
997
- hostRef.$onRenderResolve$ = void 0;
998
- }
999
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1000
- nextTick(() => scheduleUpdate(hostRef, false));
1001
- }
1002
- hostRef.$flags$ &= -517;
1003
- }
1004
- };
1005
- var appDidLoad = (who) => {
1006
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1007
- };
1008
- var safeCall = (instance, method, arg, elm) => {
1009
- if (instance && instance[method]) {
1010
- try {
1011
- return instance[method](arg);
1012
- } catch (e) {
1013
- consoleError(e, elm);
1014
- }
1015
- }
1016
- return void 0;
1017
- };
1018
- var addHydratedFlag = (elm) => {
1019
- var _a;
1020
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1021
- };
1022
-
1023
- // src/runtime/set-value.ts
1024
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1025
- var setValue = (ref, propName, newVal, cmpMeta) => {
1026
- const hostRef = getHostRef(ref);
1027
- if (!hostRef) {
1028
- return;
1029
- }
1030
- if (!hostRef) {
1031
- throw new Error(
1032
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1033
- );
1034
- }
1035
- const oldVal = hostRef.$instanceValues$.get(propName);
1036
- const flags = hostRef.$flags$;
1037
- const instance = hostRef.$lazyInstance$ ;
1038
- newVal = parsePropertyValue(
1039
- newVal,
1040
- cmpMeta.$members$[propName][0]);
1041
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1042
- const didValueChange = newVal !== oldVal && !areBothNaN;
1043
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1044
- hostRef.$instanceValues$.set(propName, newVal);
1045
- if (instance) {
1046
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1047
- if (instance.componentShouldUpdate) {
1048
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1049
- return;
1050
- }
1051
- }
1052
- scheduleUpdate(hostRef, false);
1053
- }
1054
- }
1055
- }
1056
- };
1057
-
1058
- // src/runtime/proxy-component.ts
1059
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1060
- var _a, _b;
1061
- const prototype = Cstr.prototype;
1062
- if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1063
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1064
- members.map(([memberName, [memberFlags]]) => {
1065
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1066
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1067
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1068
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1069
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1070
- Object.defineProperty(prototype, memberName, {
1071
- get() {
1072
- {
1073
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1074
- return getValue(this, memberName);
1075
- }
1076
- const ref = getHostRef(this);
1077
- const instance = ref ? ref.$lazyInstance$ : prototype;
1078
- if (!instance) return;
1079
- return instance[memberName];
1080
- }
1081
- },
1082
- configurable: true,
1083
- enumerable: true
1084
- });
1085
- }
1086
- Object.defineProperty(prototype, memberName, {
1087
- set(newValue) {
1088
- const ref = getHostRef(this);
1089
- if (!ref) {
1090
- return;
1091
- }
1092
- if (origSetter) {
1093
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1094
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1095
- newValue = ref.$instanceValues$.get(memberName);
1096
- }
1097
- origSetter.apply(this, [
1098
- parsePropertyValue(
1099
- newValue,
1100
- memberFlags)
1101
- ]);
1102
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1103
- setValue(this, memberName, newValue, cmpMeta);
1104
- return;
1105
- }
1106
- {
1107
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1108
- setValue(this, memberName, newValue, cmpMeta);
1109
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1110
- ref.$fetchedCbList$.push(() => {
1111
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1112
- ref.$lazyInstance$[memberName] = newValue;
1113
- }
1114
- });
1115
- }
1116
- return;
1117
- }
1118
- const setterSetVal = () => {
1119
- const currentValue = ref.$lazyInstance$[memberName];
1120
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1121
- ref.$instanceValues$.set(memberName, currentValue);
1122
- }
1123
- ref.$lazyInstance$[memberName] = parsePropertyValue(
1124
- newValue,
1125
- memberFlags);
1126
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1127
- };
1128
- if (ref.$lazyInstance$) {
1129
- setterSetVal();
1130
- } else {
1131
- ref.$fetchedCbList$.push(() => {
1132
- setterSetVal();
1133
- });
1134
- }
1135
- }
1136
- }
1137
- });
1138
- }
1139
- });
1140
- if ((flags & 1 /* isElementConstructor */)) {
1141
- const attrNameToPropName = /* @__PURE__ */ new Map();
1142
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1143
- plt.jmp(() => {
1144
- var _a2;
1145
- const propName = attrNameToPropName.get(attrName);
1146
- const hostRef = getHostRef(this);
1147
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1148
- newValue = this[propName];
1149
- delete this[propName];
1150
- }
1151
- if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1152
- this[propName] == newValue) {
1153
- return;
1154
- } else if (propName == null) {
1155
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1156
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1157
- const instance = hostRef.$lazyInstance$ ;
1158
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1159
- entry == null ? void 0 : entry.forEach((callbackName) => {
1160
- if (instance[callbackName] != null) {
1161
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1162
- }
1163
- });
1164
- }
1165
- return;
1166
- }
1167
- const propFlags = members.find(([m]) => m === propName);
1168
- if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1169
- newValue = newValue === null || newValue === "false" ? false : true;
1170
- }
1171
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1172
- if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1173
- this[propName] = newValue;
1174
- }
1175
- });
1176
- };
1177
- Cstr.observedAttributes = Array.from(
1178
- /* @__PURE__ */ new Set([
1179
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1180
- ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
1181
- const attrName = m[1] || propName;
1182
- attrNameToPropName.set(attrName, propName);
1183
- return attrName;
1184
- })
1185
- ])
1186
- );
1187
- }
1188
- }
1189
- return Cstr;
1190
- };
1191
-
1192
- // src/runtime/initialize-component.ts
1193
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1194
- let Cstr;
1195
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1196
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1197
- const bundleId = cmpMeta.$lazyBundleId$;
1198
- if (bundleId) {
1199
- const CstrImport = loadModule(cmpMeta, hostRef);
1200
- if (CstrImport && "then" in CstrImport) {
1201
- const endLoad = uniqueTime();
1202
- Cstr = await CstrImport;
1203
- endLoad();
1204
- } else {
1205
- Cstr = CstrImport;
1206
- }
1207
- if (!Cstr) {
1208
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1209
- }
1210
- if (!Cstr.isProxied) {
1211
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1212
- Cstr.isProxied = true;
1213
- }
1214
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1215
- {
1216
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1217
- }
1218
- try {
1219
- new Cstr(hostRef);
1220
- } catch (e) {
1221
- consoleError(e, elm);
1222
- }
1223
- {
1224
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1225
- }
1226
- endNewInstance();
1227
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1228
- } else {
1229
- Cstr = elm.constructor;
1230
- const cmpTag = elm.localName;
1231
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1232
- }
1233
- if (Cstr && Cstr.style) {
1234
- let style;
1235
- if (typeof Cstr.style === "string") {
1236
- style = Cstr.style;
1237
- }
1238
- const scopeId2 = getScopeId(cmpMeta);
1239
- if (!styles.has(scopeId2)) {
1240
- const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
1241
- registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1242
- endRegisterStyles();
1243
- }
1244
- }
1245
- }
1246
- const ancestorComponent = hostRef.$ancestorComponent$;
1247
- const schedule = () => scheduleUpdate(hostRef, true);
1248
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1249
- ancestorComponent["s-rc"].push(schedule);
1250
- } else {
1251
- schedule();
1252
- }
1253
- };
1254
- var fireConnectedCallback = (instance, elm) => {
1255
- {
1256
- safeCall(instance, "connectedCallback", void 0, elm);
1257
- }
1258
- };
1259
-
1260
- // src/runtime/connected-callback.ts
1261
- var connectedCallback = (elm) => {
1262
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1263
- const hostRef = getHostRef(elm);
1264
- if (!hostRef) {
1265
- return;
1266
- }
1267
- const cmpMeta = hostRef.$cmpMeta$;
1268
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1269
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1270
- hostRef.$flags$ |= 1 /* hasConnected */;
1271
- {
1272
- let ancestorComponent = elm;
1273
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1274
- if (ancestorComponent["s-p"]) {
1275
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1276
- break;
1277
- }
1278
- }
1279
- }
1280
- if (cmpMeta.$members$) {
1281
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1282
- if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1283
- const value = elm[memberName];
1284
- delete elm[memberName];
1285
- elm[memberName] = value;
1286
- }
1287
- });
1288
- }
1289
- {
1290
- initializeComponent(elm, hostRef, cmpMeta);
1291
- }
1292
- } else {
1293
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1294
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1295
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1296
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1297
- }
1298
- }
1299
- endConnected();
1300
- }
1301
- };
1302
- var disconnectInstance = (instance, elm) => {
1303
- {
1304
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1305
- }
1306
- };
1307
- var disconnectedCallback = async (elm) => {
1308
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1309
- const hostRef = getHostRef(elm);
1310
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1311
- disconnectInstance(hostRef.$lazyInstance$, elm);
1312
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1313
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1314
- }
1315
- }
1316
- if (rootAppliedStyles.has(elm)) {
1317
- rootAppliedStyles.delete(elm);
1318
- }
1319
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1320
- rootAppliedStyles.delete(elm.shadowRoot);
1321
- }
1322
- };
1323
-
1324
- // src/runtime/bootstrap-lazy.ts
1325
- var bootstrapLazy = (lazyBundles, options = {}) => {
1326
- var _a;
1327
- if (!win.document) {
1328
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1329
- return;
1330
- }
1331
- const endBootstrap = createTime();
1332
- const cmpTags = [];
1333
- const exclude = options.exclude || [];
1334
- const customElements2 = win.customElements;
1335
- const head = win.document.head;
1336
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1337
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1338
- const deferredConnectedCallbacks = [];
1339
- let appLoadFallback;
1340
- let isBootstrapping = true;
1341
- Object.assign(plt, options);
1342
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1343
- let hasSlotRelocation = false;
1344
- lazyBundles.map((lazyBundle) => {
1345
- lazyBundle[1].map((compactMeta) => {
1346
- const cmpMeta = {
1347
- $flags$: compactMeta[0],
1348
- $tagName$: compactMeta[1],
1349
- $members$: compactMeta[2],
1350
- $listeners$: compactMeta[3]
1351
- };
1352
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1353
- hasSlotRelocation = true;
1354
- }
1355
- {
1356
- cmpMeta.$members$ = compactMeta[2];
1357
- }
1358
- const tagName = transformTag(cmpMeta.$tagName$);
1359
- const HostElement = class extends HTMLElement {
1360
- // StencilLazyHost
1361
- constructor(self) {
1362
- super(self);
1363
- this.hasRegisteredEventListeners = false;
1364
- self = this;
1365
- registerHost(self, cmpMeta);
1366
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1367
- {
1368
- if (!self.shadowRoot) {
1369
- createShadowRoot.call(self, cmpMeta);
1370
- } else {
1371
- if (self.shadowRoot.mode !== "open") {
1372
- throw new Error(
1373
- `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
1374
- );
1375
- }
1376
- }
1377
- }
1378
- }
1379
- }
1380
- connectedCallback() {
1381
- const hostRef = getHostRef(this);
1382
- if (!hostRef) {
1383
- return;
1384
- }
1385
- if (!this.hasRegisteredEventListeners) {
1386
- this.hasRegisteredEventListeners = true;
1387
- }
1388
- if (appLoadFallback) {
1389
- clearTimeout(appLoadFallback);
1390
- appLoadFallback = null;
1391
- }
1392
- if (isBootstrapping) {
1393
- deferredConnectedCallbacks.push(this);
1394
- } else {
1395
- plt.jmp(() => connectedCallback(this));
1396
- }
1397
- }
1398
- disconnectedCallback() {
1399
- plt.jmp(() => disconnectedCallback(this));
1400
- plt.raf(() => {
1401
- var _a3;
1402
- const hostRef = getHostRef(this);
1403
- if (!hostRef) {
1404
- return;
1405
- }
1406
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1407
- if (i2 > -1) {
1408
- deferredConnectedCallbacks.splice(i2, 1);
1409
- }
1410
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1411
- delete hostRef.$vnode$.$elm$;
1412
- }
1413
- });
1414
- }
1415
- componentOnReady() {
1416
- var _a3;
1417
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1418
- }
1419
- };
1420
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1421
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1422
- cmpTags.push(tagName);
1423
- customElements2.define(
1424
- tagName,
1425
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1426
- );
1427
- }
1428
- });
1429
- });
1430
- if (cmpTags.length > 0) {
1431
- if (hasSlotRelocation) {
1432
- dataStyles.textContent += SLOT_FB_CSS;
1433
- }
1434
- {
1435
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1436
- }
1437
- if (dataStyles.innerHTML.length) {
1438
- dataStyles.setAttribute("data-styles", "");
1439
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1440
- if (nonce != null) {
1441
- dataStyles.setAttribute("nonce", nonce);
1442
- }
1443
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1444
- }
1445
- }
1446
- isBootstrapping = false;
1447
- if (deferredConnectedCallbacks.length) {
1448
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1449
- } else {
1450
- {
1451
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1452
- }
1453
- }
1454
- endBootstrap();
1455
- };
1456
-
1457
- // src/runtime/nonce.ts
1458
- var setNonce = (nonce) => plt.$nonce$ = nonce;
1459
- function transformTag(tag) {
1460
- return tag;
1461
- }
1462
-
1463
- export { bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };