@siemens/ix-icons 0.0.0-20240422125504

Sign up to get free protection for your applications and to get access to all the features.
Files changed (802) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +69 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  4. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  5. package/dist/cjs/icon-58cf66e3.js +244 -0
  6. package/dist/cjs/icon-58cf66e3.js.map +1 -0
  7. package/dist/cjs/icons-0dd6f96e.js +1405 -0
  8. package/dist/cjs/icons-0dd6f96e.js.map +1 -0
  9. package/dist/cjs/index-af0541e0.js +1808 -0
  10. package/dist/cjs/index-af0541e0.js.map +1 -0
  11. package/dist/cjs/index.cjs.js +12 -0
  12. package/dist/cjs/index.cjs.js.map +1 -0
  13. package/dist/cjs/ix-icon.cjs.entry.js +12 -0
  14. package/dist/cjs/ix-icon.cjs.entry.js.map +1 -0
  15. package/dist/cjs/ix-icons.cjs.js +27 -0
  16. package/dist/cjs/ix-icons.cjs.js.map +1 -0
  17. package/dist/cjs/loader.cjs.js +17 -0
  18. package/dist/cjs/loader.cjs.js.map +1 -0
  19. package/dist/collection/collection-manifest.json +12 -0
  20. package/dist/collection/components/icon/icon.css +54 -0
  21. package/dist/collection/components/icon/icon.js +165 -0
  22. package/dist/collection/components/icon/icon.js.map +1 -0
  23. package/dist/collection/components/icon/icons.js +702 -0
  24. package/dist/collection/components/icon/icons.js.map +1 -0
  25. package/dist/collection/components/icon/meta-tag.js +42 -0
  26. package/dist/collection/components/icon/meta-tag.js.map +1 -0
  27. package/dist/collection/components/icon/resolveIcon.js +131 -0
  28. package/dist/collection/components/icon/resolveIcon.js.map +1 -0
  29. package/dist/collection/components/icon/test/ix-icon.spec.js +61 -0
  30. package/dist/collection/components/icon/test/ix-icon.spec.js.map +1 -0
  31. package/dist/collection/components/icon/test/resolveIcon.spec.js +72 -0
  32. package/dist/collection/components/icon/test/resolveIcon.spec.js.map +1 -0
  33. package/dist/collection/components/icon/test/rocker-example.js +5 -0
  34. package/dist/collection/components/icon/test/rocker-example.js.map +1 -0
  35. package/dist/collection/index.js +2 -0
  36. package/dist/collection/index.js.map +1 -0
  37. package/dist/components/icon.js +266 -0
  38. package/dist/components/icon.js.map +1 -0
  39. package/dist/components/icons.js +705 -0
  40. package/dist/components/icons.js.map +1 -0
  41. package/dist/components/index.d.ts +33 -0
  42. package/dist/components/index.js +4 -0
  43. package/dist/components/index.js.map +1 -0
  44. package/dist/components/ix-icon.d.ts +11 -0
  45. package/dist/components/ix-icon.js +8 -0
  46. package/dist/components/ix-icon.js.map +1 -0
  47. package/dist/esm/app-globals-0f993ce5.js +5 -0
  48. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  49. package/dist/esm/icon-022f3b5e.js +242 -0
  50. package/dist/esm/icon-022f3b5e.js.map +1 -0
  51. package/dist/esm/icons-84dc9236.js +705 -0
  52. package/dist/esm/icons-84dc9236.js.map +1 -0
  53. package/dist/esm/index-8088fea1.js +1779 -0
  54. package/dist/esm/index-8088fea1.js.map +1 -0
  55. package/dist/esm/index.js +4 -0
  56. package/dist/esm/index.js.map +1 -0
  57. package/dist/esm/ix-icon.entry.js +4 -0
  58. package/dist/esm/ix-icon.entry.js.map +1 -0
  59. package/dist/esm/ix-icons.js +22 -0
  60. package/dist/esm/ix-icons.js.map +1 -0
  61. package/dist/esm/loader.js +13 -0
  62. package/dist/esm/loader.js.map +1 -0
  63. package/dist/esm/polyfills/core-js.js +11 -0
  64. package/dist/esm/polyfills/dom.js +79 -0
  65. package/dist/esm/polyfills/es5-html-element.js +1 -0
  66. package/dist/esm/polyfills/index.js +34 -0
  67. package/dist/esm/polyfills/system.js +6 -0
  68. package/dist/index.cjs.js +1 -0
  69. package/dist/index.js +1 -0
  70. package/dist/ix-icons/index.esm.js +2 -0
  71. package/dist/ix-icons/index.esm.js.map +1 -0
  72. package/dist/ix-icons/ix-icons.esm.js +2 -0
  73. package/dist/ix-icons/ix-icons.esm.js.map +1 -0
  74. package/dist/ix-icons/p-51684ec4.js +2 -0
  75. package/dist/ix-icons/p-51684ec4.js.map +1 -0
  76. package/dist/ix-icons/p-7d7f048e.js +2 -0
  77. package/dist/ix-icons/p-7d7f048e.js.map +1 -0
  78. package/dist/ix-icons/p-99baafb2.entry.js +2 -0
  79. package/dist/ix-icons/p-99baafb2.entry.js.map +1 -0
  80. package/dist/ix-icons/p-e1255160.js +2 -0
  81. package/dist/ix-icons/p-e1255160.js.map +1 -0
  82. package/dist/ix-icons/p-efdd4090.js +3 -0
  83. package/dist/ix-icons/p-efdd4090.js.map +1 -0
  84. package/dist/sample.json +703 -0
  85. package/dist/types/components/icon/icon.d.ts +32 -0
  86. package/dist/types/components/icon/icons.d.ts +700 -0
  87. package/dist/types/components/icon/meta-tag.d.ts +12 -0
  88. package/dist/types/components/icon/resolveIcon.d.ts +9 -0
  89. package/dist/types/components/icon/test/rocker-example.d.ts +1 -0
  90. package/dist/types/components.d.ts +63 -0
  91. package/dist/types/index.d.ts +2 -0
  92. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  93. package/icons/index.d.ts +702 -0
  94. package/icons/index.js +702 -0
  95. package/icons/index.mjs +702 -0
  96. package/icons/package.json +8 -0
  97. package/loader/cdn.js +3 -0
  98. package/loader/index.cjs.js +3 -0
  99. package/loader/index.d.ts +21 -0
  100. package/loader/index.es2017.js +3 -0
  101. package/loader/index.js +4 -0
  102. package/loader/package.json +11 -0
  103. package/package.json +70 -0
  104. package/svg/about-filled.svg +1 -0
  105. package/svg/about.svg +1 -0
  106. package/svg/add-application.svg +1 -0
  107. package/svg/add-circle-filled.svg +1 -0
  108. package/svg/add-circle.svg +1 -0
  109. package/svg/add-document-note.svg +1 -0
  110. package/svg/add-eye-filled.svg +1 -0
  111. package/svg/add-eye.svg +1 -0
  112. package/svg/add-task-list.svg +1 -0
  113. package/svg/add-task.svg +1 -0
  114. package/svg/add-user-filled.svg +1 -0
  115. package/svg/add-user.svg +1 -0
  116. package/svg/add.svg +1 -0
  117. package/svg/ai.svg +1 -0
  118. package/svg/alarm-bell-cancelled-filled.svg +1 -0
  119. package/svg/alarm-bell-cancelled.svg +1 -0
  120. package/svg/alarm-bell-filled.svg +1 -0
  121. package/svg/alarm-bell.svg +1 -0
  122. package/svg/alarm-clock-filled.svg +1 -0
  123. package/svg/alarm-clock.svg +1 -0
  124. package/svg/alarm-filled.svg +1 -0
  125. package/svg/alarm.svg +1 -0
  126. package/svg/analyze.svg +1 -0
  127. package/svg/anomaly-found.svg +1 -0
  128. package/svg/anomaly.svg +1 -0
  129. package/svg/app-menu.svg +1 -0
  130. package/svg/application-screen.svg +1 -0
  131. package/svg/applications.svg +1 -0
  132. package/svg/apps.svg +1 -0
  133. package/svg/arrow-diagonal-bottom-left.svg +1 -0
  134. package/svg/arrow-diagonal-bottom-right.svg +1 -0
  135. package/svg/arrow-diagonal-top-left.svg +1 -0
  136. package/svg/arrow-diagonal-top-right.svg +1 -0
  137. package/svg/arrow-down-right.svg +1 -0
  138. package/svg/arrow-down.svg +1 -0
  139. package/svg/arrow-left.svg +1 -0
  140. package/svg/arrow-right-down.svg +1 -0
  141. package/svg/arrow-right.svg +1 -0
  142. package/svg/arrow-up.svg +1 -0
  143. package/svg/attach.svg +1 -0
  144. package/svg/attachment-upload.svg +1 -0
  145. package/svg/audio-description1.svg +1 -0
  146. package/svg/audio-description2.svg +1 -0
  147. package/svg/audit-report.svg +1 -0
  148. package/svg/average.svg +1 -0
  149. package/svg/backup-filled.svg +1 -0
  150. package/svg/backup.svg +1 -0
  151. package/svg/bar-code.svg +1 -0
  152. package/svg/barchart.svg +1 -0
  153. package/svg/battery-check.svg +1 -0
  154. package/svg/battery-empty-question.svg +1 -0
  155. package/svg/battery-empty.svg +1 -0
  156. package/svg/battery-exclamation.svg +1 -0
  157. package/svg/battery-full-check.svg +1 -0
  158. package/svg/battery-full.svg +1 -0
  159. package/svg/battery-half.svg +1 -0
  160. package/svg/battery-low.svg +1 -0
  161. package/svg/battery-quarter.svg +1 -0
  162. package/svg/battery-slash.svg +1 -0
  163. package/svg/battery-three-quarter.svg +1 -0
  164. package/svg/battery-xmark.svg +1 -0
  165. package/svg/bezier-curve.svg +1 -0
  166. package/svg/binoculars-filled.svg +1 -0
  167. package/svg/binoculars.svg +1 -0
  168. package/svg/blazor.svg +1 -0
  169. package/svg/book.svg +1 -0
  170. package/svg/bookmark-filled.svg +1 -0
  171. package/svg/bookmark.svg +1 -0
  172. package/svg/boundary-signals.svg +1 -0
  173. package/svg/building1-filled.svg +1 -0
  174. package/svg/building1.svg +1 -0
  175. package/svg/building2-filled.svg +1 -0
  176. package/svg/building2.svg +1 -0
  177. package/svg/bulb-filled.svg +1 -0
  178. package/svg/bulb.svg +1 -0
  179. package/svg/calendar-filled.svg +1 -0
  180. package/svg/calendar-settings.svg +1 -0
  181. package/svg/calendar.svg +1 -0
  182. package/svg/cancel.svg +1 -0
  183. package/svg/cancelled.svg +1 -0
  184. package/svg/capacity-filled.svg +1 -0
  185. package/svg/capacity.svg +1 -0
  186. package/svg/capture.svg +1 -0
  187. package/svg/car-filled.svg +1 -0
  188. package/svg/car.svg +1 -0
  189. package/svg/card-layout-filled.svg +1 -0
  190. package/svg/card-layout.svg +1 -0
  191. package/svg/certificate-error-filled.svg +1 -0
  192. package/svg/certificate-error.svg +1 -0
  193. package/svg/certificate-exclamation-filled.svg +1 -0
  194. package/svg/certificate-exclamation.svg +1 -0
  195. package/svg/certificate-success-filled.svg +1 -0
  196. package/svg/certificate-success.svg +1 -0
  197. package/svg/chart-cursor.svg +1 -0
  198. package/svg/chart-curve-linear.svg +1 -0
  199. package/svg/chart-curve-spline.svg +1 -0
  200. package/svg/chart-curve-stepped.svg +1 -0
  201. package/svg/chart-diagram-add.svg +1 -0
  202. package/svg/chart-diagram.svg +1 -0
  203. package/svg/chart-diagrams.svg +1 -0
  204. package/svg/chart-labels-filled.svg +1 -0
  205. package/svg/chart-labels.svg +1 -0
  206. package/svg/check-in.svg +1 -0
  207. package/svg/check-out.svg +1 -0
  208. package/svg/check.svg +1 -0
  209. package/svg/checkbox-component-checked.svg +1 -0
  210. package/svg/checkbox-component-mixed.svg +1 -0
  211. package/svg/checkbox-component-unchecked.svg +1 -0
  212. package/svg/checkbox-filled.svg +1 -0
  213. package/svg/checkbox.svg +1 -0
  214. package/svg/checkboxes-filled.svg +1 -0
  215. package/svg/checkboxes.svg +1 -0
  216. package/svg/chevron-down-small.svg +1 -0
  217. package/svg/chevron-down.svg +1 -0
  218. package/svg/chevron-left-small.svg +1 -0
  219. package/svg/chevron-left.svg +1 -0
  220. package/svg/chevron-right-small.svg +1 -0
  221. package/svg/chevron-right.svg +1 -0
  222. package/svg/chevron-up-small.svg +1 -0
  223. package/svg/chevron-up.svg +1 -0
  224. package/svg/circle-dot-filled.svg +1 -0
  225. package/svg/circle-dot.svg +1 -0
  226. package/svg/circle-filled.svg +1 -0
  227. package/svg/circle-pause-filled.svg +1 -0
  228. package/svg/circle-pause.svg +1 -0
  229. package/svg/circle-play-filled.svg +1 -0
  230. package/svg/circle-play.svg +1 -0
  231. package/svg/circle-stop-filled.svg +1 -0
  232. package/svg/circle-stop.svg +1 -0
  233. package/svg/circle.svg +1 -0
  234. package/svg/clear-filter-filled.svg +1 -0
  235. package/svg/clear-filter.svg +1 -0
  236. package/svg/clear.svg +1 -0
  237. package/svg/clock-filled.svg +1 -0
  238. package/svg/clock.svg +1 -0
  239. package/svg/close-small.svg +1 -0
  240. package/svg/close.svg +1 -0
  241. package/svg/cloud-download-add-filled.svg +1 -0
  242. package/svg/cloud-download-add.svg +1 -0
  243. package/svg/cloud-download-filled.svg +1 -0
  244. package/svg/cloud-download-list-filled.svg +1 -0
  245. package/svg/cloud-download-list.svg +1 -0
  246. package/svg/cloud-download.svg +1 -0
  247. package/svg/cloud-fail-filled.svg +1 -0
  248. package/svg/cloud-fail.svg +1 -0
  249. package/svg/cloud-filled.svg +1 -0
  250. package/svg/cloud-new-filled.svg +1 -0
  251. package/svg/cloud-new.svg +1 -0
  252. package/svg/cloud-success-filled.svg +1 -0
  253. package/svg/cloud-success.svg +1 -0
  254. package/svg/cloud-upload-filled.svg +1 -0
  255. package/svg/cloud-upload.svg +1 -0
  256. package/svg/cloud.svg +1 -0
  257. package/svg/code.svg +1 -0
  258. package/svg/coffee-empty-filled.svg +1 -0
  259. package/svg/coffee-empty.svg +1 -0
  260. package/svg/coffee-filled.svg +1 -0
  261. package/svg/coffee.svg +1 -0
  262. package/svg/cogwheel-filled.svg +1 -0
  263. package/svg/cogwheel.svg +1 -0
  264. package/svg/combine.svg +1 -0
  265. package/svg/compact-disc-filled.svg +1 -0
  266. package/svg/compact-disc.svg +1 -0
  267. package/svg/compound-block.svg +1 -0
  268. package/svg/configuration.svg +1 -0
  269. package/svg/configure-filled.svg +1 -0
  270. package/svg/configure.svg +1 -0
  271. package/svg/connected.svg +1 -0
  272. package/svg/connector-chart-filled.svg +1 -0
  273. package/svg/connector-chart.svg +1 -0
  274. package/svg/connector-filled.svg +1 -0
  275. package/svg/connector-hex-filled.svg +1 -0
  276. package/svg/connector-hex.svg +1 -0
  277. package/svg/connector-rect-filled.svg +1 -0
  278. package/svg/connector-rect.svg +1 -0
  279. package/svg/connector-rhomb-filled.svg +1 -0
  280. package/svg/connector-rhomb.svg +1 -0
  281. package/svg/connector.svg +1 -0
  282. package/svg/consistency-check.svg +1 -0
  283. package/svg/contact-details-filled.svg +1 -0
  284. package/svg/contact-details.svg +1 -0
  285. package/svg/context-menu.svg +1 -0
  286. package/svg/controlled-device.svg +1 -0
  287. package/svg/controller-device.svg +1 -0
  288. package/svg/copy.svg +1 -0
  289. package/svg/corner-arrow-up-left.svg +1 -0
  290. package/svg/couch-filled.svg +1 -0
  291. package/svg/couch.svg +1 -0
  292. package/svg/create-plant-filled.svg +1 -0
  293. package/svg/create-plant.svg +1 -0
  294. package/svg/cut.svg +1 -0
  295. package/svg/cycle.svg +1 -0
  296. package/svg/data-egress.svg +1 -0
  297. package/svg/data-ingress-egress.svg +1 -0
  298. package/svg/data-ingress.svg +1 -0
  299. package/svg/database-filled.svg +1 -0
  300. package/svg/database.svg +1 -0
  301. package/svg/details.svg +1 -0
  302. package/svg/diagram-module-library.svg +1 -0
  303. package/svg/diagram-module-new.svg +1 -0
  304. package/svg/diagram-module.svg +1 -0
  305. package/svg/diamond.svg +1 -0
  306. package/svg/disconnected.svg +1 -0
  307. package/svg/disk-filled.svg +1 -0
  308. package/svg/disk-pen.svg +1 -0
  309. package/svg/disk.svg +1 -0
  310. package/svg/distribution.svg +1 -0
  311. package/svg/doc-document.svg +1 -0
  312. package/svg/document-bulk.svg +1 -0
  313. package/svg/document-fail.svg +1 -0
  314. package/svg/document-info.svg +1 -0
  315. package/svg/document-link.svg +1 -0
  316. package/svg/document-management.svg +1 -0
  317. package/svg/document-reference.svg +1 -0
  318. package/svg/document-settings.svg +1 -0
  319. package/svg/document-success.svg +1 -0
  320. package/svg/document.svg +1 -0
  321. package/svg/double-check.svg +1 -0
  322. package/svg/double-chevron-down.svg +1 -0
  323. package/svg/double-chevron-left.svg +1 -0
  324. package/svg/double-chevron-right.svg +1 -0
  325. package/svg/double-chevron-up.svg +1 -0
  326. package/svg/doublet-filled.svg +1 -0
  327. package/svg/doublet.svg +1 -0
  328. package/svg/download-add.svg +1 -0
  329. package/svg/download-list.svg +1 -0
  330. package/svg/download.svg +1 -0
  331. package/svg/drop.svg +1 -0
  332. package/svg/duplicate-document.svg +1 -0
  333. package/svg/duplicate.svg +1 -0
  334. package/svg/e-mail-filled.svg +1 -0
  335. package/svg/e-mail.svg +1 -0
  336. package/svg/earth-filled.svg +1 -0
  337. package/svg/earth.svg +1 -0
  338. package/svg/edit-plant.svg +1 -0
  339. package/svg/electrical-energy-filled.svg +1 -0
  340. package/svg/electrical-energy.svg +1 -0
  341. package/svg/ellipse-arc.svg +1 -0
  342. package/svg/ellipse-filled.svg +1 -0
  343. package/svg/ellipse.svg +1 -0
  344. package/svg/error-filled.svg +1 -0
  345. package/svg/error.svg +1 -0
  346. package/svg/explore-filled.svg +1 -0
  347. package/svg/explore.svg +1 -0
  348. package/svg/export.svg +1 -0
  349. package/svg/eye-cancelled-filled.svg +1 -0
  350. package/svg/eye-cancelled.svg +1 -0
  351. package/svg/eye-filled.svg +1 -0
  352. package/svg/eye.svg +1 -0
  353. package/svg/factory-reset-filled.svg +1 -0
  354. package/svg/factory-reset.svg +1 -0
  355. package/svg/filter-filled.svg +1 -0
  356. package/svg/filter-outline.svg +1 -0
  357. package/svg/filter.svg +1 -0
  358. package/svg/fit-to-screen.svg +1 -0
  359. package/svg/flag-filled.svg +1 -0
  360. package/svg/flag.svg +1 -0
  361. package/svg/folder-down-filled.svg +1 -0
  362. package/svg/folder-down.svg +1 -0
  363. package/svg/folder-filled.svg +1 -0
  364. package/svg/folder-new-filled.svg +1 -0
  365. package/svg/folder-new-outline.svg +1 -0
  366. package/svg/folder-new.svg +1 -0
  367. package/svg/folder-open-filled.svg +1 -0
  368. package/svg/folder-open-outline.svg +1 -0
  369. package/svg/folder-open.svg +1 -0
  370. package/svg/folder-outline.svg +1 -0
  371. package/svg/folder-up-filled.svg +1 -0
  372. package/svg/folder-up.svg +1 -0
  373. package/svg/folder.svg +1 -0
  374. package/svg/full-screeen-exit.svg +1 -0
  375. package/svg/full-screeen.svg +1 -0
  376. package/svg/full-screen-exit.svg +1 -0
  377. package/svg/full-screen.svg +1 -0
  378. package/svg/function-block-library.svg +1 -0
  379. package/svg/function-block-new.svg +1 -0
  380. package/svg/function-block.svg +1 -0
  381. package/svg/function-diagram-new.svg +1 -0
  382. package/svg/function-diagram.svg +1 -0
  383. package/svg/gauge-filled.svg +1 -0
  384. package/svg/gauge.svg +1 -0
  385. package/svg/gaugechart.svg +1 -0
  386. package/svg/global-plant-filled.svg +1 -0
  387. package/svg/global-plant.svg +1 -0
  388. package/svg/globe-filled.svg +1 -0
  389. package/svg/globe.svg +1 -0
  390. package/svg/goto.svg +1 -0
  391. package/svg/group.svg +1 -0
  392. package/svg/hard-reset.svg +1 -0
  393. package/svg/hardware-cabinet.svg +1 -0
  394. package/svg/health-filled.svg +1 -0
  395. package/svg/health.svg +1 -0
  396. package/svg/heart-filled.svg +1 -0
  397. package/svg/heart.svg +1 -0
  398. package/svg/hexagon-vertical-bars-database-filled.svg +1 -0
  399. package/svg/hexagon-vertical-bars-database.svg +1 -0
  400. package/svg/hexagon-vertical-bars-filled.svg +1 -0
  401. package/svg/hexagon-vertical-bars.svg +1 -0
  402. package/svg/hierarchy.svg +1 -0
  403. package/svg/highlight-filled.svg +1 -0
  404. package/svg/highlight.svg +1 -0
  405. package/svg/history-list.svg +1 -0
  406. package/svg/history.svg +1 -0
  407. package/svg/home-filled.svg +1 -0
  408. package/svg/home.svg +1 -0
  409. package/svg/hourglass.svg +1 -0
  410. package/svg/image-filled.svg +1 -0
  411. package/svg/image.svg +1 -0
  412. package/svg/import.svg +1 -0
  413. package/svg/info-feed.svg +1 -0
  414. package/svg/info-filled.svg +1 -0
  415. package/svg/info.svg +1 -0
  416. package/svg/ingestion-report.svg +1 -0
  417. package/svg/ingestion.svg +1 -0
  418. package/svg/ink-pen.svg +1 -0
  419. package/svg/inquiry-filled.svg +1 -0
  420. package/svg/inquiry-mail.svg +1 -0
  421. package/svg/inquiry.svg +1 -0
  422. package/svg/item-details-filled.svg +1 -0
  423. package/svg/item-details.svg +1 -0
  424. package/svg/label-filled.svg +1 -0
  425. package/svg/label.svg +1 -0
  426. package/svg/landing-page-logo.svg +1 -0
  427. package/svg/language-filled.svg +1 -0
  428. package/svg/language.svg +1 -0
  429. package/svg/layers-filled.svg +1 -0
  430. package/svg/layers.svg +1 -0
  431. package/svg/leaf.svg +1 -0
  432. package/svg/legal.svg +1 -0
  433. package/svg/library-new.svg +1 -0
  434. package/svg/library.svg +1 -0
  435. package/svg/license.svg +1 -0
  436. package/svg/light-dark.svg +1 -0
  437. package/svg/line-diagonal.svg +1 -0
  438. package/svg/link.svg +1 -0
  439. package/svg/list.svg +1 -0
  440. package/svg/live-schedule.svg +1 -0
  441. package/svg/location-filled.svg +1 -0
  442. package/svg/location-outline.svg +1 -0
  443. package/svg/location.svg +1 -0
  444. package/svg/lock-filled.svg +1 -0
  445. package/svg/lock-key-filled.svg +1 -0
  446. package/svg/lock-key.svg +1 -0
  447. package/svg/lock.svg +1 -0
  448. package/svg/log-in.svg +1 -0
  449. package/svg/log-out.svg +1 -0
  450. package/svg/log.svg +1 -0
  451. package/svg/logic-diagram.svg +1 -0
  452. package/svg/lower-limit.svg +1 -0
  453. package/svg/mail-filled.svg +1 -0
  454. package/svg/mail.svg +1 -0
  455. package/svg/maintenance-documents.svg +1 -0
  456. package/svg/maintenance-info.svg +1 -0
  457. package/svg/maintenance-warning-filled.svg +1 -0
  458. package/svg/maintenance-warning.svg +1 -0
  459. package/svg/maintenance.svg +1 -0
  460. package/svg/mandatory-done.svg +1 -0
  461. package/svg/mandatory.svg +1 -0
  462. package/svg/map.svg +1 -0
  463. package/svg/maximize.svg +1 -0
  464. package/svg/microphone-filled.svg +1 -0
  465. package/svg/microphone.svg +1 -0
  466. package/svg/minimize.svg +1 -0
  467. package/svg/minus.svg +1 -0
  468. package/svg/missing-symbol.svg +1 -0
  469. package/svg/mix.svg +1 -0
  470. package/svg/monitor-filled.svg +1 -0
  471. package/svg/monitor-trend.svg +1 -0
  472. package/svg/monitor.svg +1 -0
  473. package/svg/monitoring-add.svg +1 -0
  474. package/svg/monitoring.svg +1 -0
  475. package/svg/monitorings.svg +1 -0
  476. package/svg/moon-filled.svg +1 -0
  477. package/svg/moon.svg +1 -0
  478. package/svg/more-menu.svg +1 -0
  479. package/svg/mouse-click-filled.svg +1 -0
  480. package/svg/mouse-click.svg +1 -0
  481. package/svg/mouse-select-filled.svg +1 -0
  482. package/svg/mouse-select.svg +1 -0
  483. package/svg/mp4-document.svg +1 -0
  484. package/svg/namur-check-function-filled.svg +1 -0
  485. package/svg/namur-check-function.svg +1 -0
  486. package/svg/namur-failure-filled.svg +1 -0
  487. package/svg/namur-failure.svg +1 -0
  488. package/svg/namur-maintenance-required-filled.svg +1 -0
  489. package/svg/namur-maintenance-required.svg +1 -0
  490. package/svg/namur-ok-filled.svg +1 -0
  491. package/svg/namur-ok.svg +1 -0
  492. package/svg/namur-out-of-spec-filled.svg +1 -0
  493. package/svg/namur-out-of-spec.svg +1 -0
  494. package/svg/navigation-filled.svg +1 -0
  495. package/svg/navigation-left.svg +1 -0
  496. package/svg/navigation-right.svg +1 -0
  497. package/svg/navigation.svg +1 -0
  498. package/svg/new-indicator-filled.svg +1 -0
  499. package/svg/new-indicator.svg +1 -0
  500. package/svg/no-filter-filled.svg +1 -0
  501. package/svg/no-filter.svg +1 -0
  502. package/svg/no-image.svg +1 -0
  503. package/svg/note-filled.svg +1 -0
  504. package/svg/note.svg +1 -0
  505. package/svg/notification-filled.svg +1 -0
  506. package/svg/notification.svg +1 -0
  507. package/svg/notifications-filled.svg +1 -0
  508. package/svg/notifications.svg +1 -0
  509. package/svg/ontology-filled.svg +1 -0
  510. package/svg/ontology.svg +1 -0
  511. package/svg/open-external.svg +1 -0
  512. package/svg/open-file-filled.svg +1 -0
  513. package/svg/open-file.svg +1 -0
  514. package/svg/operate-plant-filled.svg +1 -0
  515. package/svg/operate-plant.svg +1 -0
  516. package/svg/optimize.svg +1 -0
  517. package/svg/p-and-i-symbols.svg +1 -0
  518. package/svg/p-i-diagram.svg +1 -0
  519. package/svg/pan.svg +1 -0
  520. package/svg/paste.svg +1 -0
  521. package/svg/pause.svg +1 -0
  522. package/svg/pc-tower-filled.svg +1 -0
  523. package/svg/pc-tower.svg +1 -0
  524. package/svg/pdf-document.svg +1 -0
  525. package/svg/pen-filled.svg +1 -0
  526. package/svg/pen.svg +1 -0
  527. package/svg/phone-filled.svg +1 -0
  528. package/svg/phone.svg +1 -0
  529. package/svg/photo-camera-add.svg +1 -0
  530. package/svg/photo-camera-cancelled-filled.svg +1 -0
  531. package/svg/photo-camera-cancelled.svg +1 -0
  532. package/svg/photo-camera-filled.svg +1 -0
  533. package/svg/photo-camera.svg +1 -0
  534. package/svg/photo-cameras.svg +1 -0
  535. package/svg/piechart-filled.svg +1 -0
  536. package/svg/piechart.svg +1 -0
  537. package/svg/pin-filled.svg +1 -0
  538. package/svg/pin.svg +1 -0
  539. package/svg/plant-filled.svg +1 -0
  540. package/svg/plant-handbook-filled.svg +1 -0
  541. package/svg/plant-handbook.svg +1 -0
  542. package/svg/plant-outline.svg +1 -0
  543. package/svg/plant-security.svg +1 -0
  544. package/svg/plant-settings-filled.svg +1 -0
  545. package/svg/plant-settings.svg +1 -0
  546. package/svg/plant-user-filled.svg +1 -0
  547. package/svg/plant-user.svg +1 -0
  548. package/svg/plant.svg +1 -0
  549. package/svg/plants-filled.svg +1 -0
  550. package/svg/plants.svg +1 -0
  551. package/svg/play-filled.svg +1 -0
  552. package/svg/play-pause-filled.svg +1 -0
  553. package/svg/play-pause.svg +1 -0
  554. package/svg/play-stepwise-filled.svg +1 -0
  555. package/svg/play-stepwise.svg +1 -0
  556. package/svg/play.svg +1 -0
  557. package/svg/plus-minus-times-divide.svg +1 -0
  558. package/svg/plus.svg +1 -0
  559. package/svg/point-up-filled.svg +1 -0
  560. package/svg/point-up.svg +1 -0
  561. package/svg/polar-plot.svg +1 -0
  562. package/svg/polygon-filled.svg +1 -0
  563. package/svg/polygon-line.svg +1 -0
  564. package/svg/polygon.svg +1 -0
  565. package/svg/ppt-document.svg +1 -0
  566. package/svg/print-filled.svg +1 -0
  567. package/svg/print.svg +1 -0
  568. package/svg/prio-high.svg +1 -0
  569. package/svg/prio-low.svg +1 -0
  570. package/svg/prio-middle.svg +1 -0
  571. package/svg/product-catalog.svg +1 -0
  572. package/svg/product-management.svg +1 -0
  573. package/svg/product.svg +1 -0
  574. package/svg/project-configuration.svg +1 -0
  575. package/svg/project-new.svg +1 -0
  576. package/svg/project-scenarios.svg +1 -0
  577. package/svg/project-server-filled.svg +1 -0
  578. package/svg/project-server.svg +1 -0
  579. package/svg/project.svg +1 -0
  580. package/svg/protocol.svg +1 -0
  581. package/svg/publish-document.svg +1 -0
  582. package/svg/publish.svg +1 -0
  583. package/svg/qr-code.svg +1 -0
  584. package/svg/quality-report.svg +1 -0
  585. package/svg/question-filled.svg +1 -0
  586. package/svg/question.svg +1 -0
  587. package/svg/radarchart.svg +1 -0
  588. package/svg/radio-waves-off.svg +1 -0
  589. package/svg/radio-waves-warning.svg +1 -0
  590. package/svg/radio-waves.svg +1 -0
  591. package/svg/random-filled.svg +1 -0
  592. package/svg/random.svg +1 -0
  593. package/svg/reboot.svg +1 -0
  594. package/svg/rectangle-filled.svg +1 -0
  595. package/svg/rectangle.svg +1 -0
  596. package/svg/redo.svg +1 -0
  597. package/svg/reference.svg +1 -0
  598. package/svg/refresh-cancelled.svg +1 -0
  599. package/svg/refresh.svg +1 -0
  600. package/svg/reload.svg +1 -0
  601. package/svg/remove-application.svg +1 -0
  602. package/svg/remove-eye-filled.svg +1 -0
  603. package/svg/remove-eye.svg +1 -0
  604. package/svg/rename.svg +1 -0
  605. package/svg/replace.svg +1 -0
  606. package/svg/report-barchart.svg +1 -0
  607. package/svg/report-linechart.svg +1 -0
  608. package/svg/report-text.svg +1 -0
  609. package/svg/reset.svg +1 -0
  610. package/svg/restore-backup-filled.svg +1 -0
  611. package/svg/restore-backup-pc.svg +1 -0
  612. package/svg/restore-backup.svg +1 -0
  613. package/svg/rhomb-filled.svg +1 -0
  614. package/svg/rhomb.svg +1 -0
  615. package/svg/road-filled.svg +1 -0
  616. package/svg/road.svg +1 -0
  617. package/svg/rocket-filled.svg +1 -0
  618. package/svg/rocket.svg +1 -0
  619. package/svg/route-target.svg +1 -0
  620. package/svg/route.svg +1 -0
  621. package/svg/scatterplot.svg +1 -0
  622. package/svg/scheduler-filled.svg +1 -0
  623. package/svg/scheduler.svg +1 -0
  624. package/svg/screen-filled.svg +1 -0
  625. package/svg/screen.svg +1 -0
  626. package/svg/screenshot-filled.svg +1 -0
  627. package/svg/screenshot.svg +1 -0
  628. package/svg/script-add.svg +1 -0
  629. package/svg/script.svg +1 -0
  630. package/svg/scripts.svg +1 -0
  631. package/svg/search.svg +1 -0
  632. package/svg/share-filled.svg +1 -0
  633. package/svg/share.svg +1 -0
  634. package/svg/shopping-cart-filled.svg +1 -0
  635. package/svg/shopping-cart.svg +1 -0
  636. package/svg/shout-filled.svg +1 -0
  637. package/svg/shout.svg +1 -0
  638. package/svg/sign-language.svg +1 -0
  639. package/svg/signal-strength-0.svg +1 -0
  640. package/svg/signal-strength-1.svg +1 -0
  641. package/svg/signal-strength-2.svg +1 -0
  642. package/svg/signal-strength-3.svg +1 -0
  643. package/svg/signal-strength-4.svg +1 -0
  644. package/svg/signal-strength-5.svg +1 -0
  645. package/svg/signal-strength-6.svg +1 -0
  646. package/svg/signal-strength-7.svg +1 -0
  647. package/svg/signal-strength-8.svg +1 -0
  648. package/svg/simit-component.svg +1 -0
  649. package/svg/simit-macro-component-editor.svg +1 -0
  650. package/svg/simit-macro.svg +1 -0
  651. package/svg/single-check.svg +1 -0
  652. package/svg/skip-back-filled.svg +1 -0
  653. package/svg/skip-back.svg +1 -0
  654. package/svg/skip-filled.svg +1 -0
  655. package/svg/skip.svg +1 -0
  656. package/svg/snowflake.svg +1 -0
  657. package/svg/sort-ascending.svg +1 -0
  658. package/svg/sort-descending.svg +1 -0
  659. package/svg/sort.svg +1 -0
  660. package/svg/sound-loud-filled.svg +1 -0
  661. package/svg/sound-loud.svg +1 -0
  662. package/svg/sound-mute-filled.svg +1 -0
  663. package/svg/sound-mute.svg +1 -0
  664. package/svg/sound-off-filled.svg +1 -0
  665. package/svg/sound-off.svg +1 -0
  666. package/svg/sound-quiet-filled.svg +1 -0
  667. package/svg/sound-quiet.svg +1 -0
  668. package/svg/spatial.svg +1 -0
  669. package/svg/split-horizontally.svg +1 -0
  670. package/svg/split-vertically.svg +1 -0
  671. package/svg/stamp-filled.svg +1 -0
  672. package/svg/stamp.svg +1 -0
  673. package/svg/standby.svg +1 -0
  674. package/svg/star-add-filled.svg +1 -0
  675. package/svg/star-add.svg +1 -0
  676. package/svg/star-cancelled-filled.svg +1 -0
  677. package/svg/star-cancelled.svg +1 -0
  678. package/svg/star-filled.svg +1 -0
  679. package/svg/star-list-filled.svg +1 -0
  680. package/svg/star-list.svg +1 -0
  681. package/svg/star.svg +1 -0
  682. package/svg/start-data-analysis.svg +1 -0
  683. package/svg/steering-user-filled.svg +1 -0
  684. package/svg/steering-user.svg +1 -0
  685. package/svg/steering.svg +1 -0
  686. package/svg/stethoscope.svg +1 -0
  687. package/svg/stop-filled.svg +1 -0
  688. package/svg/stop.svg +1 -0
  689. package/svg/success-filled.svg +1 -0
  690. package/svg/success.svg +1 -0
  691. package/svg/sun-filled.svg +1 -0
  692. package/svg/sun.svg +1 -0
  693. package/svg/support.svg +1 -0
  694. package/svg/surveillance-cancelled-filled.svg +1 -0
  695. package/svg/surveillance-cancelled.svg +1 -0
  696. package/svg/surveillance-filled.svg +1 -0
  697. package/svg/surveillance.svg +1 -0
  698. package/svg/svg-document.svg +1 -0
  699. package/svg/swap-left-right.svg +1 -0
  700. package/svg/switch-slider.svg +1 -0
  701. package/svg/table-columns.svg +1 -0
  702. package/svg/table-rows.svg +1 -0
  703. package/svg/table-settings.svg +1 -0
  704. package/svg/table.svg +1 -0
  705. package/svg/tag-filled.svg +1 -0
  706. package/svg/tag-plus-filled.svg +1 -0
  707. package/svg/tag-plus.svg +1 -0
  708. package/svg/tag.svg +1 -0
  709. package/svg/tasks-all.svg +1 -0
  710. package/svg/tasks-done.svg +1 -0
  711. package/svg/tasks-open.svg +1 -0
  712. package/svg/text-circle-rectangle-filled.svg +1 -0
  713. package/svg/text-circle-rectangle.svg +1 -0
  714. package/svg/text-document.svg +1 -0
  715. package/svg/text.svg +1 -0
  716. package/svg/threshold-cancelled.svg +1 -0
  717. package/svg/threshold-off.svg +1 -0
  718. package/svg/threshold-on.svg +1 -0
  719. package/svg/to-be-published.svg +1 -0
  720. package/svg/to-search.svg +1 -0
  721. package/svg/topic-filled.svg +1 -0
  722. package/svg/topic.svg +1 -0
  723. package/svg/touch-filled.svg +1 -0
  724. package/svg/touch.svg +1 -0
  725. package/svg/trashcan-filled.svg +1 -0
  726. package/svg/trashcan.svg +1 -0
  727. package/svg/tree.svg +1 -0
  728. package/svg/trend-downward-filled.svg +1 -0
  729. package/svg/trend-downward.svg +1 -0
  730. package/svg/trend-sideways-filled.svg +1 -0
  731. package/svg/trend-sideways.svg +1 -0
  732. package/svg/trend-upward-filled.svg +1 -0
  733. package/svg/trend-upward.svg +1 -0
  734. package/svg/trend.svg +1 -0
  735. package/svg/triangle-filled.svg +1 -0
  736. package/svg/triangle.svg +1 -0
  737. package/svg/truck-filled.svg +1 -0
  738. package/svg/truck.svg +1 -0
  739. package/svg/tulip-filled.svg +1 -0
  740. package/svg/tulip.svg +1 -0
  741. package/svg/txt-document.svg +1 -0
  742. package/svg/undo.svg +1 -0
  743. package/svg/ungroup.svg +1 -0
  744. package/svg/unlock-filled.svg +1 -0
  745. package/svg/unlock-plant-filled.svg +1 -0
  746. package/svg/unlock-plant.svg +1 -0
  747. package/svg/unlock.svg +1 -0
  748. package/svg/upload-document-note.svg +1 -0
  749. package/svg/upload-fail.svg +1 -0
  750. package/svg/upload-success.svg +1 -0
  751. package/svg/upload.svg +1 -0
  752. package/svg/upper-limit.svg +1 -0
  753. package/svg/user-check-filled.svg +1 -0
  754. package/svg/user-check.svg +1 -0
  755. package/svg/user-fail-filled.svg +1 -0
  756. package/svg/user-fail.svg +1 -0
  757. package/svg/user-filled.svg +1 -0
  758. package/svg/user-management-filled.svg +1 -0
  759. package/svg/user-management.svg +1 -0
  760. package/svg/user-profile-filled.svg +1 -0
  761. package/svg/user-profile.svg +1 -0
  762. package/svg/user-reading-reading.svg +1 -0
  763. package/svg/user-reading.svg +1 -0
  764. package/svg/user-settings-filled.svg +1 -0
  765. package/svg/user-settings.svg +1 -0
  766. package/svg/user.svg +1 -0
  767. package/svg/validate.svg +1 -0
  768. package/svg/vdi-folder.svg +1 -0
  769. package/svg/version-history.svg +1 -0
  770. package/svg/video-file-filled.svg +1 -0
  771. package/svg/video-file.svg +1 -0
  772. package/svg/warning-filled.svg +1 -0
  773. package/svg/warning-rhomb-filled.svg +1 -0
  774. package/svg/warning-rhomb.svg +1 -0
  775. package/svg/warning.svg +1 -0
  776. package/svg/water-bathing.svg +1 -0
  777. package/svg/water-fish.svg +1 -0
  778. package/svg/water-plant.svg +1 -0
  779. package/svg/water-sunbathing.svg +1 -0
  780. package/svg/waveform.svg +1 -0
  781. package/svg/webcam-cancelled-filled.svg +1 -0
  782. package/svg/webcam-cancelled.svg +1 -0
  783. package/svg/webcam-filled.svg +1 -0
  784. package/svg/webcam.svg +1 -0
  785. package/svg/wlan-off.svg +1 -0
  786. package/svg/wlan-strength-0.svg +1 -0
  787. package/svg/wlan-strength-1.svg +1 -0
  788. package/svg/wlan-strength-2.svg +1 -0
  789. package/svg/wlan-strength-3.svg +1 -0
  790. package/svg/work-case-filled.svg +1 -0
  791. package/svg/work-case.svg +1 -0
  792. package/svg/workspace.svg +1 -0
  793. package/svg/workspaces.svg +1 -0
  794. package/svg/x-axis-settings.svg +1 -0
  795. package/svg/xls-document.svg +1 -0
  796. package/svg/xml-document.svg +1 -0
  797. package/svg/y-axis-settings.svg +1 -0
  798. package/svg/youtube-filled.svg +1 -0
  799. package/svg/youtube.svg +1 -0
  800. package/svg/zoom-in.svg +1 -0
  801. package/svg/zoom-out.svg +1 -0
  802. package/svg/zoom-selection.svg +1 -0
@@ -0,0 +1,1779 @@
1
+ const NAMESPACE = 'ix-icons';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let hostTagName;
13
+ let isSvgMode = false;
14
+ let queuePending = false;
15
+ const getAssetPath = (path) => {
16
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
17
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
18
+ };
19
+ const createTime = (fnName, tagName = '') => {
20
+ {
21
+ return () => {
22
+ return;
23
+ };
24
+ }
25
+ };
26
+ const uniqueTime = (key, measureText) => {
27
+ {
28
+ return () => {
29
+ return;
30
+ };
31
+ }
32
+ };
33
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
34
+ /**
35
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
36
+ *
37
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
38
+ * support as of Stencil v4.
39
+ */
40
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
41
+ /**
42
+ * Default style mode id
43
+ */
44
+ /**
45
+ * Reusable empty obj/array
46
+ * Don't add values to these!!
47
+ */
48
+ const EMPTY_OBJ = {};
49
+ /**
50
+ * Namespaces
51
+ */
52
+ const SVG_NS = 'http://www.w3.org/2000/svg';
53
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
54
+ const isDef = (v) => v != null;
55
+ /**
56
+ * Check whether a value is a 'complex type', defined here as an object or a
57
+ * function.
58
+ *
59
+ * @param o the value to check
60
+ * @returns whether it's a complex type or not
61
+ */
62
+ const isComplexType = (o) => {
63
+ // https://jsperf.com/typeof-fn-object/5
64
+ o = typeof o;
65
+ return o === 'object' || o === 'function';
66
+ };
67
+ /**
68
+ * Helper method for querying a `meta` tag that contains a nonce value
69
+ * out of a DOM's head.
70
+ *
71
+ * @param doc The DOM containing the `head` to query against
72
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
73
+ * exists or the tag has no content.
74
+ */
75
+ function queryNonceMetaTagContent(doc) {
76
+ var _a, _b, _c;
77
+ 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;
78
+ }
79
+ /**
80
+ * Production h() function based on Preact by
81
+ * Jason Miller (@developit)
82
+ * Licensed under the MIT License
83
+ * https://github.com/developit/preact/blob/master/LICENSE
84
+ *
85
+ * Modified for Stencil's compiler and vdom
86
+ */
87
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
88
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
89
+ const h = (nodeName, vnodeData, ...children) => {
90
+ let child = null;
91
+ let key = null;
92
+ let simple = false;
93
+ let lastSimple = false;
94
+ const vNodeChildren = [];
95
+ const walk = (c) => {
96
+ for (let i = 0; i < c.length; i++) {
97
+ child = c[i];
98
+ if (Array.isArray(child)) {
99
+ walk(child);
100
+ }
101
+ else if (child != null && typeof child !== 'boolean') {
102
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
103
+ child = String(child);
104
+ }
105
+ if (simple && lastSimple) {
106
+ // If the previous child was simple (string), we merge both
107
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
108
+ }
109
+ else {
110
+ // Append a new vNode, if it's text, we create a text vNode
111
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
112
+ }
113
+ lastSimple = simple;
114
+ }
115
+ }
116
+ };
117
+ walk(children);
118
+ if (vnodeData) {
119
+ if (vnodeData.key) {
120
+ key = vnodeData.key;
121
+ }
122
+ // normalize class / className attributes
123
+ {
124
+ const classData = vnodeData.className || vnodeData.class;
125
+ if (classData) {
126
+ vnodeData.class =
127
+ typeof classData !== 'object'
128
+ ? classData
129
+ : Object.keys(classData)
130
+ .filter((k) => classData[k])
131
+ .join(' ');
132
+ }
133
+ }
134
+ }
135
+ const vnode = newVNode(nodeName, null);
136
+ vnode.$attrs$ = vnodeData;
137
+ if (vNodeChildren.length > 0) {
138
+ vnode.$children$ = vNodeChildren;
139
+ }
140
+ {
141
+ vnode.$key$ = key;
142
+ }
143
+ return vnode;
144
+ };
145
+ /**
146
+ * A utility function for creating a virtual DOM node from a tag and some
147
+ * possible text content.
148
+ *
149
+ * @param tag the tag for this element
150
+ * @param text possible text content for the node
151
+ * @returns a newly-minted virtual DOM node
152
+ */
153
+ const newVNode = (tag, text) => {
154
+ const vnode = {
155
+ $flags$: 0,
156
+ $tag$: tag,
157
+ $text$: text,
158
+ $elm$: null,
159
+ $children$: null,
160
+ };
161
+ {
162
+ vnode.$attrs$ = null;
163
+ }
164
+ {
165
+ vnode.$key$ = null;
166
+ }
167
+ return vnode;
168
+ };
169
+ const Host = {};
170
+ /**
171
+ * Check whether a given node is a Host node or not
172
+ *
173
+ * @param node the virtual DOM node to check
174
+ * @returns whether it's a Host node or not
175
+ */
176
+ const isHost = (node) => node && node.$tag$ === Host;
177
+ /**
178
+ * Parse a new property value for a given property type.
179
+ *
180
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
181
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
182
+ * 1. `any`, the type given to `propValue` in the function signature
183
+ * 2. the type stored from `propType`.
184
+ *
185
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
186
+ *
187
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
188
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
189
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
190
+ * ```tsx
191
+ * <my-cmp prop-val={0}></my-cmp>
192
+ * ```
193
+ *
194
+ * HTML prop values on the other hand, will always a string
195
+ *
196
+ * @param propValue the new value to coerce to some type
197
+ * @param propType the type of the prop, expressed as a binary number
198
+ * @returns the parsed/coerced value
199
+ */
200
+ const parsePropertyValue = (propValue, propType) => {
201
+ // ensure this value is of the correct prop type
202
+ if (propValue != null && !isComplexType(propValue)) {
203
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
204
+ // per the HTML spec, any string value means it is a boolean true value
205
+ // but we'll cheat here and say that the string "false" is the boolean false
206
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
207
+ }
208
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
209
+ // could have been passed as a number or boolean
210
+ // but we still want it as a string
211
+ return String(propValue);
212
+ }
213
+ // redundant return here for better minification
214
+ return propValue;
215
+ }
216
+ // not sure exactly what type we want
217
+ // so no need to change to a different type
218
+ return propValue;
219
+ };
220
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
221
+ /**
222
+ * Helper function to create & dispatch a custom Event on a provided target
223
+ * @param elm the target of the Event
224
+ * @param name the name to give the custom Event
225
+ * @param opts options for configuring a custom Event
226
+ * @returns the custom Event
227
+ */
228
+ const emitEvent = (elm, name, opts) => {
229
+ const ev = plt.ce(name, opts);
230
+ elm.dispatchEvent(ev);
231
+ return ev;
232
+ };
233
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
234
+ const registerStyle = (scopeId, cssText, allowCS) => {
235
+ let style = styles.get(scopeId);
236
+ if (supportsConstructableStylesheets && allowCS) {
237
+ style = (style || new CSSStyleSheet());
238
+ if (typeof style === 'string') {
239
+ style = cssText;
240
+ }
241
+ else {
242
+ style.replaceSync(cssText);
243
+ }
244
+ }
245
+ else {
246
+ style = cssText;
247
+ }
248
+ styles.set(scopeId, style);
249
+ };
250
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
251
+ var _a;
252
+ const scopeId = getScopeId(cmpMeta);
253
+ const style = styles.get(scopeId);
254
+ // if an element is NOT connected then getRootNode() will return the wrong root node
255
+ // so the fallback is to always use the document for the root node in those cases
256
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
257
+ if (style) {
258
+ if (typeof style === 'string') {
259
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
260
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
261
+ let styleElm;
262
+ if (!appliedStyles) {
263
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
264
+ }
265
+ if (!appliedStyles.has(scopeId)) {
266
+ {
267
+ styleElm = doc.createElement('style');
268
+ styleElm.innerHTML = style;
269
+ // Apply CSP nonce to the style tag if it exists
270
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
271
+ if (nonce != null) {
272
+ styleElm.setAttribute('nonce', nonce);
273
+ }
274
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
275
+ }
276
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
277
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
278
+ styleElm.innerHTML += SLOT_FB_CSS;
279
+ }
280
+ if (appliedStyles) {
281
+ appliedStyles.add(scopeId);
282
+ }
283
+ }
284
+ }
285
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
286
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
287
+ }
288
+ }
289
+ return scopeId;
290
+ };
291
+ const attachStyles = (hostRef) => {
292
+ const cmpMeta = hostRef.$cmpMeta$;
293
+ const elm = hostRef.$hostElement$;
294
+ const flags = cmpMeta.$flags$;
295
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
296
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
297
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
298
+ // only required when we're NOT using native shadow dom (slot)
299
+ // or this browser doesn't support native shadow dom
300
+ // and this host element was NOT created with SSR
301
+ // let's pick out the inner content for slot projection
302
+ // create a node to represent where the original
303
+ // content was first placed, which is useful later on
304
+ // DOM WRITE!!
305
+ elm['s-sc'] = scopeId;
306
+ elm.classList.add(scopeId + '-h');
307
+ }
308
+ endAttachStyles();
309
+ };
310
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
311
+ /**
312
+ * Production setAccessor() function based on Preact by
313
+ * Jason Miller (@developit)
314
+ * Licensed under the MIT License
315
+ * https://github.com/developit/preact/blob/master/LICENSE
316
+ *
317
+ * Modified for Stencil's compiler and vdom
318
+ */
319
+ /**
320
+ * When running a VDom render set properties present on a VDom node onto the
321
+ * corresponding HTML element.
322
+ *
323
+ * Note that this function has special functionality for the `class`,
324
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
325
+ * `onClick`, etc). All others are just passed through as-is.
326
+ *
327
+ * @param elm the HTMLElement onto which attributes should be set
328
+ * @param memberName the name of the attribute to set
329
+ * @param oldValue the old value for the attribute
330
+ * @param newValue the new value for the attribute
331
+ * @param isSvg whether we're in an svg context or not
332
+ * @param flags bitflags for Vdom variables
333
+ */
334
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
335
+ if (oldValue !== newValue) {
336
+ let isProp = isMemberInElement(elm, memberName);
337
+ memberName.toLowerCase();
338
+ if (memberName === 'class') {
339
+ const classList = elm.classList;
340
+ const oldClasses = parseClassList(oldValue);
341
+ const newClasses = parseClassList(newValue);
342
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
343
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
344
+ }
345
+ else if (memberName === 'style') {
346
+ // update style attribute, css properties and values
347
+ {
348
+ for (const prop in oldValue) {
349
+ if (!newValue || newValue[prop] == null) {
350
+ if (prop.includes('-')) {
351
+ elm.style.removeProperty(prop);
352
+ }
353
+ else {
354
+ elm.style[prop] = '';
355
+ }
356
+ }
357
+ }
358
+ }
359
+ for (const prop in newValue) {
360
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
361
+ if (prop.includes('-')) {
362
+ elm.style.setProperty(prop, newValue[prop]);
363
+ }
364
+ else {
365
+ elm.style[prop] = newValue[prop];
366
+ }
367
+ }
368
+ }
369
+ }
370
+ else if (memberName === 'key')
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 of sortedAttrNames(Object.keys(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 of sortedAttrNames(Object.keys(newVnodeAttrs))) {
439
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
440
+ }
441
+ };
442
+ /**
443
+ * Sort a list of attribute names to ensure that all the attribute names which
444
+ * are _not_ `"ref"` come before `"ref"`. Preserve the order of the non-ref
445
+ * attributes.
446
+ *
447
+ * **Note**: if the supplied attributes do not include `'ref'` then the same
448
+ * (by reference) array will be returned without modification.
449
+ *
450
+ * @param attrNames attribute names to sort
451
+ * @returns a list of attribute names, sorted if they include `"ref"`
452
+ */
453
+ function sortedAttrNames(attrNames) {
454
+ return attrNames.includes('ref')
455
+ ? // we need to sort these to ensure that `'ref'` is the last attr
456
+ [...attrNames.filter((attr) => attr !== 'ref'), 'ref']
457
+ : // no need to sort, return the original array
458
+ attrNames;
459
+ }
460
+ /**
461
+ * Create a DOM Node corresponding to one of the children of a given VNode.
462
+ *
463
+ * @param oldParentVNode the parent VNode from the previous render
464
+ * @param newParentVNode the parent VNode from the current render
465
+ * @param childIndex the index of the VNode, in the _new_ parent node's
466
+ * children, for which we will create a new DOM node
467
+ * @param parentElm the parent DOM node which our new node will be a child of
468
+ * @returns the newly created node
469
+ */
470
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
471
+ // tslint:disable-next-line: prefer-const
472
+ const newVNode = newParentVNode.$children$[childIndex];
473
+ let i = 0;
474
+ let elm;
475
+ let childNode;
476
+ {
477
+ if (!isSvgMode) {
478
+ isSvgMode = newVNode.$tag$ === 'svg';
479
+ }
480
+ // create element
481
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
482
+ );
483
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
484
+ isSvgMode = false;
485
+ }
486
+ // add css classes, attrs, props, listeners, etc.
487
+ {
488
+ updateElement(null, newVNode, isSvgMode);
489
+ }
490
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
491
+ // if there is a scopeId and this is the initial render
492
+ // then let's add the scopeId as a css class
493
+ elm.classList.add((elm['s-si'] = scopeId));
494
+ }
495
+ if (newVNode.$children$) {
496
+ for (i = 0; i < newVNode.$children$.length; ++i) {
497
+ // create the node
498
+ childNode = createElm(oldParentVNode, newVNode, i);
499
+ // return node could have been null
500
+ if (childNode) {
501
+ // append our new node
502
+ elm.appendChild(childNode);
503
+ }
504
+ }
505
+ }
506
+ {
507
+ if (newVNode.$tag$ === 'svg') {
508
+ // Only reset the SVG context when we're exiting <svg> element
509
+ isSvgMode = false;
510
+ }
511
+ else if (elm.tagName === 'foreignObject') {
512
+ // Reenter SVG context when we're exiting <foreignObject> element
513
+ isSvgMode = true;
514
+ }
515
+ }
516
+ }
517
+ // This needs to always happen so we can hide nodes that are projected
518
+ // to another component but don't end up in a slot
519
+ elm['s-hn'] = hostTagName;
520
+ return elm;
521
+ };
522
+ /**
523
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
524
+ * add them to the DOM in the appropriate place.
525
+ *
526
+ * @param parentElm the DOM node which should be used as a parent for the new
527
+ * DOM nodes
528
+ * @param before a child of the `parentElm` which the new children should be
529
+ * inserted before (optional)
530
+ * @param parentVNode the parent virtual DOM node
531
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
532
+ * @param startIdx the index in the child virtual DOM nodes at which to start
533
+ * creating DOM nodes (inclusive)
534
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
535
+ * creating DOM nodes (inclusive)
536
+ */
537
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
538
+ let containerElm = (parentElm);
539
+ let childNode;
540
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
541
+ containerElm = containerElm.shadowRoot;
542
+ }
543
+ for (; startIdx <= endIdx; ++startIdx) {
544
+ if (vnodes[startIdx]) {
545
+ childNode = createElm(null, parentVNode, startIdx);
546
+ if (childNode) {
547
+ vnodes[startIdx].$elm$ = childNode;
548
+ containerElm.insertBefore(childNode, before);
549
+ }
550
+ }
551
+ }
552
+ };
553
+ /**
554
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
555
+ * This can be used to, for instance, clean up after a list of children which
556
+ * should no longer be shown.
557
+ *
558
+ * This function also handles some of Stencil's slot relocation logic.
559
+ *
560
+ * @param vnodes a list of virtual DOM nodes to remove
561
+ * @param startIdx the index at which to start removing nodes (inclusive)
562
+ * @param endIdx the index at which to stop removing nodes (inclusive)
563
+ */
564
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
565
+ for (let index = startIdx; index <= endIdx; ++index) {
566
+ const vnode = vnodes[index];
567
+ if (vnode) {
568
+ const elm = vnode.$elm$;
569
+ if (elm) {
570
+ // remove the vnode's element from the dom
571
+ elm.remove();
572
+ }
573
+ }
574
+ }
575
+ };
576
+ /**
577
+ * Reconcile the children of a new VNode with the children of an old VNode by
578
+ * traversing the two collections of children, identifying nodes that are
579
+ * conserved or changed, calling out to `patch` to make any necessary
580
+ * updates to the DOM, and rearranging DOM nodes as needed.
581
+ *
582
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
583
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
584
+ * 'windows' by storing start and end indices and references to the
585
+ * corresponding array entries. Initially the two 'windows' are basically equal
586
+ * to the entire array, but we progressively narrow the windows until there are
587
+ * no children left to update by doing the following:
588
+ *
589
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
590
+ * that if we have an initial array like the following we'll end up dealing
591
+ * only with a window bounded by the highlighted elements:
592
+ *
593
+ * [null, null, VNode1 , ... , VNode2, null, null]
594
+ * ^^^^^^ ^^^^^^
595
+ *
596
+ * 2. Check to see if the elements at the head and tail positions are equal
597
+ * across the windows. This will basically detect elements which haven't
598
+ * been added, removed, or changed position, i.e. if you had the following
599
+ * VNode elements (represented as HTML):
600
+ *
601
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
602
+ * newVNode: `<div><p><span>THERE</span></p></div>`
603
+ *
604
+ * Then when comparing the children of the `<div>` tag we check the equality
605
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
606
+ * same tag in the same position, we'd be able to avoid completely
607
+ * re-rendering the subtree under them with a new DOM element and would just
608
+ * call out to `patch` to handle reconciling their children and so on.
609
+ *
610
+ * 3. Check, for both windows, to see if the element at the beginning of the
611
+ * window corresponds to the element at the end of the other window. This is
612
+ * a heuristic which will let us identify _some_ situations in which
613
+ * elements have changed position, for instance it _should_ detect that the
614
+ * children nodes themselves have not changed but merely moved in the
615
+ * following example:
616
+ *
617
+ * oldVNode: `<div><element-one /><element-two /></div>`
618
+ * newVNode: `<div><element-two /><element-one /></div>`
619
+ *
620
+ * If we find cases like this then we also need to move the concrete DOM
621
+ * elements corresponding to the moved children to write the re-order to the
622
+ * DOM.
623
+ *
624
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
625
+ * nodes in the old children which have the same key as the first element in
626
+ * our window on the new children. If we find such a node we handle calling
627
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
628
+ * what we find.
629
+ *
630
+ * Finally, once we've narrowed our 'windows' to the point that either of them
631
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
632
+ * insertion or deletion that needs to happen to get a DOM state that correctly
633
+ * reflects the new child VNodes. If, for instance, after our window on the old
634
+ * children has collapsed we still have more nodes on the new children that
635
+ * we haven't dealt with yet then we need to add them, or if the new children
636
+ * collapse but we still have unhandled _old_ children then we need to make
637
+ * sure the corresponding DOM nodes are removed.
638
+ *
639
+ * @param parentElm the node into which the parent VNode is rendered
640
+ * @param oldCh the old children of the parent node
641
+ * @param newVNode the new VNode which will replace the parent
642
+ * @param newCh the new children of the parent node
643
+ * @param isInitialRender whether or not this is the first render of the vdom
644
+ */
645
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
646
+ let oldStartIdx = 0;
647
+ let newStartIdx = 0;
648
+ let idxInOld = 0;
649
+ let i = 0;
650
+ let oldEndIdx = oldCh.length - 1;
651
+ let oldStartVnode = oldCh[0];
652
+ let oldEndVnode = oldCh[oldEndIdx];
653
+ let newEndIdx = newCh.length - 1;
654
+ let newStartVnode = newCh[0];
655
+ let newEndVnode = newCh[newEndIdx];
656
+ let node;
657
+ let elmToMove;
658
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
659
+ if (oldStartVnode == null) {
660
+ // VNode might have been moved left
661
+ oldStartVnode = oldCh[++oldStartIdx];
662
+ }
663
+ else if (oldEndVnode == null) {
664
+ oldEndVnode = oldCh[--oldEndIdx];
665
+ }
666
+ else if (newStartVnode == null) {
667
+ newStartVnode = newCh[++newStartIdx];
668
+ }
669
+ else if (newEndVnode == null) {
670
+ newEndVnode = newCh[--newEndIdx];
671
+ }
672
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
673
+ // if the start nodes are the same then we should patch the new VNode
674
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
675
+ // indices to reflect that. We don't need to move any DOM Nodes around
676
+ // since things are matched up in order.
677
+ patch(oldStartVnode, newStartVnode, isInitialRender);
678
+ oldStartVnode = oldCh[++oldStartIdx];
679
+ newStartVnode = newCh[++newStartIdx];
680
+ }
681
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
682
+ // likewise, if the end nodes are the same we patch new onto old and
683
+ // decrement our end indices, and also likewise in this case we don't
684
+ // need to move any DOM Nodes.
685
+ patch(oldEndVnode, newEndVnode, isInitialRender);
686
+ oldEndVnode = oldCh[--oldEndIdx];
687
+ newEndVnode = newCh[--newEndIdx];
688
+ }
689
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
690
+ patch(oldStartVnode, newEndVnode, isInitialRender);
691
+ // We need to move the element for `oldStartVnode` into a position which
692
+ // will be appropriate for `newEndVnode`. For this we can use
693
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
694
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
695
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
696
+ //
697
+ // <old-start-node />
698
+ // <some-intervening-node />
699
+ // <old-end-node />
700
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
701
+ // <next-sibling />
702
+ //
703
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
704
+ // the node for `oldStartVnode` at the end of the children of
705
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
706
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
707
+ // append it to the children of the parent element.
708
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
709
+ oldStartVnode = oldCh[++oldStartIdx];
710
+ newEndVnode = newCh[--newEndIdx];
711
+ }
712
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
713
+ patch(oldEndVnode, newStartVnode, isInitialRender);
714
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
715
+ // the same node, so since we're here we know that they are not. Thus we
716
+ // can move the element for `oldEndVnode` _before_ the element for
717
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
718
+ // future.
719
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
720
+ oldEndVnode = oldCh[--oldEndIdx];
721
+ newStartVnode = newCh[++newStartIdx];
722
+ }
723
+ else {
724
+ // Here we do some checks to match up old and new nodes based on the
725
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
726
+ // in the JSX for a DOM element in the implementation of a Stencil
727
+ // component.
728
+ //
729
+ // First we check to see if there are any nodes in the array of old
730
+ // children which have the same key as the first node in the new
731
+ // children.
732
+ idxInOld = -1;
733
+ {
734
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
735
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
736
+ idxInOld = i;
737
+ break;
738
+ }
739
+ }
740
+ }
741
+ if (idxInOld >= 0) {
742
+ // We found a node in the old children which matches up with the first
743
+ // node in the new children! So let's deal with that
744
+ elmToMove = oldCh[idxInOld];
745
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
746
+ // the tag doesn't match so we'll need a new DOM element
747
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
748
+ }
749
+ else {
750
+ patch(elmToMove, newStartVnode, isInitialRender);
751
+ // invalidate the matching old node so that we won't try to update it
752
+ // again later on
753
+ oldCh[idxInOld] = undefined;
754
+ node = elmToMove.$elm$;
755
+ }
756
+ newStartVnode = newCh[++newStartIdx];
757
+ }
758
+ else {
759
+ // We either didn't find an element in the old children that matches
760
+ // the key of the first new child OR the build is not using `key`
761
+ // attributes at all. In either case we need to create a new element
762
+ // for the new node.
763
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
764
+ newStartVnode = newCh[++newStartIdx];
765
+ }
766
+ if (node) {
767
+ // if we created a new node then handle inserting it to the DOM
768
+ {
769
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
770
+ }
771
+ }
772
+ }
773
+ }
774
+ if (oldStartIdx > oldEndIdx) {
775
+ // we have some more new nodes to add which don't match up with old nodes
776
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
777
+ }
778
+ else if (newStartIdx > newEndIdx) {
779
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
780
+ // in the new array, so lets remove them (which entails cleaning up the
781
+ // relevant DOM nodes)
782
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
783
+ }
784
+ };
785
+ /**
786
+ * Compare two VNodes to determine if they are the same
787
+ *
788
+ * **NB**: This function is an equality _heuristic_ based on the available
789
+ * information set on the two VNodes and can be misleading under certain
790
+ * circumstances. In particular, if the two nodes do not have `key` attrs
791
+ * (available under `$key$` on VNodes) then the function falls back on merely
792
+ * checking that they have the same tag.
793
+ *
794
+ * So, in other words, if `key` attrs are not set on VNodes which may be
795
+ * changing order within a `children` array or something along those lines then
796
+ * we could obtain a false negative and then have to do needless re-rendering
797
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
798
+ *
799
+ * @param leftVNode the first VNode to check
800
+ * @param rightVNode the second VNode to check
801
+ * @param isInitialRender whether or not this is the first render of the vdom
802
+ * @returns whether they're equal or not
803
+ */
804
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
805
+ // compare if two vnode to see if they're "technically" the same
806
+ // need to have the same element tag, and same key to be the same
807
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
808
+ // this will be set if JSX tags in the build have `key` attrs set on them
809
+ // we only want to check this if we're not on the first render since on
810
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
811
+ // astray and, for instance, accidentally delete a DOM node that we want to
812
+ // keep around.
813
+ if (!isInitialRender) {
814
+ return leftVNode.$key$ === rightVNode.$key$;
815
+ }
816
+ return true;
817
+ }
818
+ return false;
819
+ };
820
+ /**
821
+ * Handle reconciling an outdated VNode with a new one which corresponds to
822
+ * it. This function handles flushing updates to the DOM and reconciling the
823
+ * children of the two nodes (if any).
824
+ *
825
+ * @param oldVNode an old VNode whose DOM element and children we want to update
826
+ * @param newVNode a new VNode representing an updated version of the old one
827
+ * @param isInitialRender whether or not this is the first render of the vdom
828
+ */
829
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
830
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
831
+ const oldChildren = oldVNode.$children$;
832
+ const newChildren = newVNode.$children$;
833
+ const tag = newVNode.$tag$;
834
+ {
835
+ {
836
+ // test if we're rendering an svg element, or still rendering nodes inside of one
837
+ // only add this to the when the compiler sees we're using an svg somewhere
838
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
839
+ }
840
+ {
841
+ {
842
+ // either this is the first render of an element OR it's an update
843
+ // AND we already know it's possible it could have changed
844
+ // this updates the element's css classes, attrs, props, listeners, etc.
845
+ updateElement(oldVNode, newVNode, isSvgMode);
846
+ }
847
+ }
848
+ if (oldChildren !== null && newChildren !== null) {
849
+ // looks like there's child vnodes for both the old and new vnodes
850
+ // so we need to call `updateChildren` to reconcile them
851
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
852
+ }
853
+ else if (newChildren !== null) {
854
+ // add the new vnode children
855
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
856
+ }
857
+ else if (oldChildren !== null) {
858
+ // no new child vnodes, but there are old child vnodes to remove
859
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
860
+ }
861
+ if (isSvgMode && tag === 'svg') {
862
+ isSvgMode = false;
863
+ }
864
+ }
865
+ };
866
+ /**
867
+ * The main entry point for Stencil's virtual DOM-based rendering engine
868
+ *
869
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
870
+ * function will handle creating a virtual DOM tree with a single root, patching
871
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
872
+ * relocation, and reflecting attributes.
873
+ *
874
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
875
+ * the DOM node into which it should be rendered.
876
+ * @param renderFnResults the virtual DOM nodes to be rendered
877
+ * @param isInitialLoad whether or not this is the first call after page load
878
+ */
879
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
880
+ const hostElm = hostRef.$hostElement$;
881
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
882
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
883
+ // we need to call `h` again to wrap the children of our component in a
884
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
885
+ // implicitly that the top-level vdom node is 1) an only child and 2)
886
+ // contains attrs that need to be set on the host element.
887
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
888
+ hostTagName = hostElm.tagName;
889
+ // On the first render and *only* on the first render we want to check for
890
+ // any attributes set on the host element which are also set on the vdom
891
+ // node. If we find them, we override the value on the VDom node attrs with
892
+ // the value from the host element, which allows developers building apps
893
+ // with Stencil components to override e.g. the `role` attribute on a
894
+ // component even if it's already set on the `Host`.
895
+ if (isInitialLoad && rootVnode.$attrs$) {
896
+ for (const key of Object.keys(rootVnode.$attrs$)) {
897
+ // We have a special implementation in `setAccessor` for `style` and
898
+ // `class` which reconciles values coming from the VDom with values
899
+ // already present on the DOM element, so we don't want to override those
900
+ // attributes on the VDom tree with values from the host element if they
901
+ // are present.
902
+ //
903
+ // Likewise, `ref` and `key` are special internal values for the Stencil
904
+ // runtime and we don't want to override those either.
905
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
906
+ rootVnode.$attrs$[key] = hostElm[key];
907
+ }
908
+ }
909
+ }
910
+ rootVnode.$tag$ = null;
911
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
912
+ hostRef.$vnode$ = rootVnode;
913
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
914
+ {
915
+ scopeId = hostElm['s-sc'];
916
+ }
917
+ // synchronous patch
918
+ patch(oldVNode, rootVnode, isInitialLoad);
919
+ };
920
+ const attachToAncestor = (hostRef, ancestorComponent) => {
921
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
922
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
923
+ }
924
+ };
925
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
926
+ {
927
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
928
+ }
929
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
930
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
931
+ return;
932
+ }
933
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
934
+ // there is no ancestor component or the ancestor component
935
+ // has already fired off its lifecycle update then
936
+ // fire off the initial update
937
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
938
+ return writeTask(dispatch) ;
939
+ };
940
+ /**
941
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
942
+ * component lifecycle methods like `componentWillLoad` as well as
943
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
944
+ *
945
+ * @param hostRef a reference to a host DOM node
946
+ * @param isInitialLoad whether we're on the initial load or not
947
+ * @returns an empty Promise which is used to enqueue a series of operations for
948
+ * the component
949
+ */
950
+ const dispatchHooks = (hostRef, isInitialLoad) => {
951
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
952
+ const instance = hostRef.$lazyInstance$ ;
953
+ // We're going to use this variable together with `enqueue` to implement a
954
+ // little promise-based queue. We start out with it `undefined`. When we add
955
+ // the first function to the queue we'll set this variable to be that
956
+ // function's return value. When we attempt to add subsequent values to the
957
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
958
+ // the new function off of that `Promise` using `.then()`. This will give our
959
+ // queue two nice properties:
960
+ //
961
+ // 1. If all functions added to the queue are synchronous they'll be called
962
+ // synchronously right away.
963
+ // 2. If all functions added to the queue are asynchronous they'll all be
964
+ // called in order after `dispatchHooks` exits.
965
+ let maybePromise;
966
+ endSchedule();
967
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
968
+ };
969
+ /**
970
+ * This function uses a Promise to implement a simple first-in, first-out queue
971
+ * of functions to be called.
972
+ *
973
+ * The queue is ordered on the basis of the first argument. If it's
974
+ * `undefined`, then nothing is on the queue yet, so the provided function can
975
+ * be called synchronously (although note that this function may return a
976
+ * `Promise`). The idea is that then the return value of that enqueueing
977
+ * operation is kept around, so that if it was a `Promise` then subsequent
978
+ * functions can be enqueued by calling this function again with that `Promise`
979
+ * as the first argument.
980
+ *
981
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
982
+ * @param fn a function to enqueue
983
+ * @returns either a `Promise` or the return value of the provided function
984
+ */
985
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
986
+ /**
987
+ * Check that a value is a `Promise`. To check, we first see if the value is an
988
+ * instance of the `Promise` global. In a few circumstances, in particular if
989
+ * the global has been overwritten, this is could be misleading, so we also do
990
+ * a little 'duck typing' check to see if the `.then` property of the value is
991
+ * defined and a function.
992
+ *
993
+ * @param maybePromise it might be a promise!
994
+ * @returns whether it is or not
995
+ */
996
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
997
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
998
+ /**
999
+ * Update a component given reference to its host elements and so on.
1000
+ *
1001
+ * @param hostRef an object containing references to the element's host node,
1002
+ * VDom nodes, and other metadata
1003
+ * @param instance a reference to the underlying host element where it will be
1004
+ * rendered
1005
+ * @param isInitialLoad whether or not this function is being called as part of
1006
+ * the first render cycle
1007
+ */
1008
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1009
+ var _a;
1010
+ const elm = hostRef.$hostElement$;
1011
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1012
+ const rc = elm['s-rc'];
1013
+ if (isInitialLoad) {
1014
+ // DOM WRITE!
1015
+ attachStyles(hostRef);
1016
+ }
1017
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1018
+ {
1019
+ callRender(hostRef, instance, elm, isInitialLoad);
1020
+ }
1021
+ if (rc) {
1022
+ // ok, so turns out there are some child host elements
1023
+ // waiting on this parent element to load
1024
+ // let's fire off all update callbacks waiting
1025
+ rc.map((cb) => cb());
1026
+ elm['s-rc'] = undefined;
1027
+ }
1028
+ endRender();
1029
+ endUpdate();
1030
+ {
1031
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1032
+ const postUpdate = () => postUpdateComponent(hostRef);
1033
+ if (childrenPromises.length === 0) {
1034
+ postUpdate();
1035
+ }
1036
+ else {
1037
+ Promise.all(childrenPromises).then(postUpdate);
1038
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1039
+ childrenPromises.length = 0;
1040
+ }
1041
+ }
1042
+ };
1043
+ /**
1044
+ * Handle making the call to the VDom renderer with the proper context given
1045
+ * various build variables
1046
+ *
1047
+ * @param hostRef an object containing references to the element's host node,
1048
+ * VDom nodes, and other metadata
1049
+ * @param instance a reference to the underlying host element where it will be
1050
+ * rendered
1051
+ * @param elm the Host element for the component
1052
+ * @param isInitialLoad whether or not this function is being called as part of
1053
+ * @returns an empty promise
1054
+ */
1055
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1056
+ try {
1057
+ /**
1058
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1059
+ * method, so we can call the method immediately. If not, check before calling it.
1060
+ */
1061
+ instance = instance.render() ;
1062
+ {
1063
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1064
+ }
1065
+ {
1066
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1067
+ }
1068
+ {
1069
+ {
1070
+ // looks like we've got child nodes to render into this host element
1071
+ // or we need to update the css class/attrs on the host element
1072
+ // DOM WRITE!
1073
+ {
1074
+ renderVdom(hostRef, instance, isInitialLoad);
1075
+ }
1076
+ }
1077
+ }
1078
+ }
1079
+ catch (e) {
1080
+ consoleError(e, hostRef.$hostElement$);
1081
+ }
1082
+ return null;
1083
+ };
1084
+ const postUpdateComponent = (hostRef) => {
1085
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1086
+ const elm = hostRef.$hostElement$;
1087
+ const endPostUpdate = createTime('postUpdate', tagName);
1088
+ const ancestorComponent = hostRef.$ancestorComponent$;
1089
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1090
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1091
+ {
1092
+ // DOM WRITE!
1093
+ addHydratedFlag(elm);
1094
+ }
1095
+ endPostUpdate();
1096
+ {
1097
+ hostRef.$onReadyResolve$(elm);
1098
+ if (!ancestorComponent) {
1099
+ appDidLoad();
1100
+ }
1101
+ }
1102
+ }
1103
+ else {
1104
+ endPostUpdate();
1105
+ }
1106
+ // load events fire from bottom to top
1107
+ // the deepest elements load first then bubbles up
1108
+ {
1109
+ if (hostRef.$onRenderResolve$) {
1110
+ hostRef.$onRenderResolve$();
1111
+ hostRef.$onRenderResolve$ = undefined;
1112
+ }
1113
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1114
+ nextTick(() => scheduleUpdate(hostRef, false));
1115
+ }
1116
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1117
+ }
1118
+ // ( •_•)
1119
+ // ( •_•)>⌐■-■
1120
+ // (⌐■_■)
1121
+ };
1122
+ const appDidLoad = (who) => {
1123
+ // on appload
1124
+ // we have finish the first big initial render
1125
+ {
1126
+ addHydratedFlag(doc.documentElement);
1127
+ }
1128
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1129
+ };
1130
+ /**
1131
+ * Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
1132
+ * e.g. custom element node. If a build figures out that e.g. no component
1133
+ * has a `componentDidLoad` method, the instance method gets removed from the
1134
+ * output bundle and this function returns `undefined`.
1135
+ * @param instance any object that may or may not contain methods
1136
+ * @param method method name
1137
+ * @param arg single arbitrary argument
1138
+ * @returns result of method call if it exists, otherwise `undefined`
1139
+ */
1140
+ const safeCall = (instance, method, arg) => {
1141
+ if (instance && instance[method]) {
1142
+ try {
1143
+ return instance[method](arg);
1144
+ }
1145
+ catch (e) {
1146
+ consoleError(e);
1147
+ }
1148
+ }
1149
+ return undefined;
1150
+ };
1151
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1152
+ ;
1153
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1154
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1155
+ // check our new property value against our internal value
1156
+ const hostRef = getHostRef(ref);
1157
+ const elm = hostRef.$hostElement$ ;
1158
+ const oldVal = hostRef.$instanceValues$.get(propName);
1159
+ const flags = hostRef.$flags$;
1160
+ const instance = hostRef.$lazyInstance$ ;
1161
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1162
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1163
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1164
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1165
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1166
+ // gadzooks! the property's value has changed!!
1167
+ // set our new value!
1168
+ hostRef.$instanceValues$.set(propName, newVal);
1169
+ if (instance) {
1170
+ // get an array of method names of watch functions to call
1171
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1172
+ const watchMethods = cmpMeta.$watchers$[propName];
1173
+ if (watchMethods) {
1174
+ // this instance is watching for when this property changed
1175
+ watchMethods.map((watchMethodName) => {
1176
+ try {
1177
+ // fire off each of the watch methods that are watching this property
1178
+ instance[watchMethodName](newVal, oldVal, propName);
1179
+ }
1180
+ catch (e) {
1181
+ consoleError(e, elm);
1182
+ }
1183
+ });
1184
+ }
1185
+ }
1186
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1187
+ // looks like this value actually changed, so we've got work to do!
1188
+ // but only if we've already rendered, otherwise just chill out
1189
+ // queue that we need to do an update, but don't worry about queuing
1190
+ // up millions cuz this function ensures it only runs once
1191
+ scheduleUpdate(hostRef, false);
1192
+ }
1193
+ }
1194
+ }
1195
+ };
1196
+ /**
1197
+ * Attach a series of runtime constructs to a compiled Stencil component
1198
+ * constructor, including getters and setters for the `@Prop` and `@State`
1199
+ * decorators, callbacks for when attributes change, and so on.
1200
+ *
1201
+ * @param Cstr the constructor for a component that we need to process
1202
+ * @param cmpMeta metadata collected previously about the component
1203
+ * @param flags a number used to store a series of bit flags
1204
+ * @returns a reference to the same constructor passed in (but now mutated)
1205
+ */
1206
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1207
+ var _a;
1208
+ const prototype = Cstr.prototype;
1209
+ if (cmpMeta.$members$) {
1210
+ if (Cstr.watchers) {
1211
+ cmpMeta.$watchers$ = Cstr.watchers;
1212
+ }
1213
+ // It's better to have a const than two Object.entries()
1214
+ const members = Object.entries(cmpMeta.$members$);
1215
+ members.map(([memberName, [memberFlags]]) => {
1216
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1217
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1218
+ // proxyComponent - prop
1219
+ Object.defineProperty(prototype, memberName, {
1220
+ get() {
1221
+ // proxyComponent, get value
1222
+ return getValue(this, memberName);
1223
+ },
1224
+ set(newValue) {
1225
+ // proxyComponent, set value
1226
+ setValue(this, memberName, newValue, cmpMeta);
1227
+ },
1228
+ configurable: true,
1229
+ enumerable: true,
1230
+ });
1231
+ }
1232
+ });
1233
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1234
+ const attrNameToPropName = new Map();
1235
+ prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1236
+ plt.jmp(() => {
1237
+ var _a;
1238
+ const propName = attrNameToPropName.get(attrName);
1239
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1240
+ // in the case where an attribute was set inline.
1241
+ // ```html
1242
+ // <my-component some-attribute="some-value"></my-component>
1243
+ // ```
1244
+ //
1245
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1246
+ // programmatically changes it before it has been upgraded as shown below:
1247
+ //
1248
+ // ```html
1249
+ // <!-- this component has _not_ been upgraded yet -->
1250
+ // <my-component id="test" some-attribute="some-value"></my-component>
1251
+ // <script>
1252
+ // // grab non-upgraded component
1253
+ // el = document.querySelector("#test");
1254
+ // el.someAttribute = "another-value";
1255
+ // // upgrade component
1256
+ // customElements.define('my-component', MyComponent);
1257
+ // </script>
1258
+ // ```
1259
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1260
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1261
+ // to the value that was set inline i.e. "some-value" from above example. When
1262
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1263
+ //
1264
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1265
+ // by connectedCallback as this attributeChangedCallback will not fire.
1266
+ //
1267
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1268
+ //
1269
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1270
+ // properties here given that this goes against best practices outlined here
1271
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1272
+ if (this.hasOwnProperty(propName)) {
1273
+ newValue = this[propName];
1274
+ delete this[propName];
1275
+ }
1276
+ else if (prototype.hasOwnProperty(propName) &&
1277
+ typeof this[propName] === 'number' &&
1278
+ this[propName] == newValue) {
1279
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1280
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1281
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1282
+ return;
1283
+ }
1284
+ else if (propName == null) {
1285
+ // At this point we should know this is not a "member", so we can treat it like watching an attribute
1286
+ // on a vanilla web component
1287
+ const hostRef = getHostRef(this);
1288
+ const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
1289
+ // We only want to trigger the callback(s) if:
1290
+ // 1. The instance is ready
1291
+ // 2. The watchers are ready
1292
+ // 3. The value has changed
1293
+ if (flags &&
1294
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1295
+ flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1296
+ newValue !== oldValue) {
1297
+ const instance = hostRef.$lazyInstance$ ;
1298
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1299
+ entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1300
+ if (instance[callbackName] != null) {
1301
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
1302
+ }
1303
+ });
1304
+ }
1305
+ return;
1306
+ }
1307
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1308
+ });
1309
+ };
1310
+ // Create an array of attributes to observe
1311
+ // This list in comprised of all strings used within a `@Watch()` decorator
1312
+ // on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
1313
+ // As such, there is no way to guarantee type-safety here that a user hasn't entered
1314
+ // an invalid attribute.
1315
+ Cstr.observedAttributes = Array.from(new Set([
1316
+ ...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
1317
+ ...members
1318
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1319
+ .map(([propName, m]) => {
1320
+ const attrName = m[1] || propName;
1321
+ attrNameToPropName.set(attrName, propName);
1322
+ return attrName;
1323
+ }),
1324
+ ]));
1325
+ }
1326
+ }
1327
+ return Cstr;
1328
+ };
1329
+ /**
1330
+ * Initialize a Stencil component given a reference to its host element, its
1331
+ * runtime bookkeeping data structure, runtime metadata about the component,
1332
+ * and (optionally) an HMR version ID.
1333
+ *
1334
+ * @param elm a host element
1335
+ * @param hostRef the element's runtime bookkeeping object
1336
+ * @param cmpMeta runtime metadata for the Stencil component
1337
+ * @param hmrVersionId an (optional) HMR version ID
1338
+ */
1339
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1340
+ let Cstr;
1341
+ // initializeComponent
1342
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1343
+ // Let the runtime know that the component has been initialized
1344
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1345
+ const bundleId = cmpMeta.$lazyBundleId$;
1346
+ if (bundleId) {
1347
+ // lazy loaded components
1348
+ // request the component's implementation to be
1349
+ // wired up with the host element
1350
+ Cstr = loadModule(cmpMeta);
1351
+ if (Cstr.then) {
1352
+ // Await creates a micro-task avoid if possible
1353
+ const endLoad = uniqueTime();
1354
+ Cstr = await Cstr;
1355
+ endLoad();
1356
+ }
1357
+ if (!Cstr.isProxied) {
1358
+ // we've never proxied this Constructor before
1359
+ // let's add the getters/setters to its prototype before
1360
+ // the first time we create an instance of the implementation
1361
+ {
1362
+ cmpMeta.$watchers$ = Cstr.watchers;
1363
+ }
1364
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1365
+ Cstr.isProxied = true;
1366
+ }
1367
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1368
+ // ok, time to construct the instance
1369
+ // but let's keep track of when we start and stop
1370
+ // so that the getters/setters don't incorrectly step on data
1371
+ {
1372
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1373
+ }
1374
+ // construct the lazy-loaded component implementation
1375
+ // passing the hostRef is very important during
1376
+ // construction in order to directly wire together the
1377
+ // host element and the lazy-loaded instance
1378
+ try {
1379
+ new Cstr(hostRef);
1380
+ }
1381
+ catch (e) {
1382
+ consoleError(e);
1383
+ }
1384
+ {
1385
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1386
+ }
1387
+ {
1388
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1389
+ }
1390
+ endNewInstance();
1391
+ fireConnectedCallback(hostRef.$lazyInstance$);
1392
+ }
1393
+ else {
1394
+ // sync constructor component
1395
+ Cstr = elm.constructor;
1396
+ // wait for the CustomElementRegistry to mark the component as ready before setting `isWatchReady`. Otherwise,
1397
+ // watchers may fire prematurely if `customElements.get()`/`customElements.whenDefined()` resolves _before_
1398
+ // Stencil has completed instantiating the component.
1399
+ customElements.whenDefined(cmpMeta.$tagName$).then(() => (hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */));
1400
+ }
1401
+ if (Cstr.style) {
1402
+ // this component has styles but we haven't registered them yet
1403
+ let style = Cstr.style;
1404
+ const scopeId = getScopeId(cmpMeta);
1405
+ if (!styles.has(scopeId)) {
1406
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1407
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1408
+ endRegisterStyles();
1409
+ }
1410
+ }
1411
+ }
1412
+ // we've successfully created a lazy instance
1413
+ const ancestorComponent = hostRef.$ancestorComponent$;
1414
+ const schedule = () => scheduleUpdate(hostRef, true);
1415
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1416
+ // this is the initial load and this component it has an ancestor component
1417
+ // but the ancestor component has NOT fired its will update lifecycle yet
1418
+ // so let's just cool our jets and wait for the ancestor to continue first
1419
+ // this will get fired off when the ancestor component
1420
+ // finally gets around to rendering its lazy self
1421
+ // fire off the initial update
1422
+ ancestorComponent['s-rc'].push(schedule);
1423
+ }
1424
+ else {
1425
+ schedule();
1426
+ }
1427
+ };
1428
+ const fireConnectedCallback = (instance) => {
1429
+ {
1430
+ safeCall(instance, 'connectedCallback');
1431
+ }
1432
+ };
1433
+ const connectedCallback = (elm) => {
1434
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1435
+ const hostRef = getHostRef(elm);
1436
+ const cmpMeta = hostRef.$cmpMeta$;
1437
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1438
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1439
+ // first time this component has connected
1440
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1441
+ {
1442
+ // find the first ancestor component (if there is one) and register
1443
+ // this component as one of the actively loading child components for its ancestor
1444
+ let ancestorComponent = elm;
1445
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1446
+ // climb up the ancestors looking for the first
1447
+ // component that hasn't finished its lifecycle update yet
1448
+ if (ancestorComponent['s-p']) {
1449
+ // we found this components first ancestor component
1450
+ // keep a reference to this component's ancestor component
1451
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1452
+ break;
1453
+ }
1454
+ }
1455
+ }
1456
+ // Lazy properties
1457
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1458
+ if (cmpMeta.$members$) {
1459
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1460
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1461
+ const value = elm[memberName];
1462
+ delete elm[memberName];
1463
+ elm[memberName] = value;
1464
+ }
1465
+ });
1466
+ }
1467
+ {
1468
+ initializeComponent(elm, hostRef, cmpMeta);
1469
+ }
1470
+ }
1471
+ else {
1472
+ // fire off connectedCallback() on component instance
1473
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1474
+ fireConnectedCallback(hostRef.$lazyInstance$);
1475
+ }
1476
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1477
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1478
+ }
1479
+ }
1480
+ endConnected();
1481
+ }
1482
+ };
1483
+ const disconnectInstance = (instance) => {
1484
+ };
1485
+ const disconnectedCallback = async (elm) => {
1486
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1487
+ const hostRef = getHostRef(elm);
1488
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1489
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1490
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
1491
+ }
1492
+ }
1493
+ };
1494
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1495
+ var _a;
1496
+ const endBootstrap = createTime();
1497
+ const cmpTags = [];
1498
+ const exclude = options.exclude || [];
1499
+ const customElements = win.customElements;
1500
+ const head = doc.head;
1501
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1502
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1503
+ const deferredConnectedCallbacks = [];
1504
+ let appLoadFallback;
1505
+ let isBootstrapping = true;
1506
+ Object.assign(plt, options);
1507
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1508
+ let hasSlotRelocation = false;
1509
+ lazyBundles.map((lazyBundle) => {
1510
+ lazyBundle[1].map((compactMeta) => {
1511
+ var _a;
1512
+ const cmpMeta = {
1513
+ $flags$: compactMeta[0],
1514
+ $tagName$: compactMeta[1],
1515
+ $members$: compactMeta[2],
1516
+ $listeners$: compactMeta[3],
1517
+ };
1518
+ // Check if we are using slots outside the shadow DOM in this component.
1519
+ // We'll use this information later to add styles for `slot-fb` elements
1520
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1521
+ hasSlotRelocation = true;
1522
+ }
1523
+ {
1524
+ cmpMeta.$members$ = compactMeta[2];
1525
+ }
1526
+ {
1527
+ cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1528
+ }
1529
+ const tagName = cmpMeta.$tagName$;
1530
+ const HostElement = class extends HTMLElement {
1531
+ // StencilLazyHost
1532
+ constructor(self) {
1533
+ // @ts-ignore
1534
+ super(self);
1535
+ self = this;
1536
+ registerHost(self, cmpMeta);
1537
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1538
+ // this component is using shadow dom
1539
+ // and this browser supports shadow dom
1540
+ // add the read-only property "shadowRoot" to the host element
1541
+ // adding the shadow root build conditionals to minimize runtime
1542
+ {
1543
+ {
1544
+ self.attachShadow({ mode: 'open' });
1545
+ }
1546
+ }
1547
+ }
1548
+ }
1549
+ connectedCallback() {
1550
+ if (appLoadFallback) {
1551
+ clearTimeout(appLoadFallback);
1552
+ appLoadFallback = null;
1553
+ }
1554
+ if (isBootstrapping) {
1555
+ // connectedCallback will be processed once all components have been registered
1556
+ deferredConnectedCallbacks.push(this);
1557
+ }
1558
+ else {
1559
+ plt.jmp(() => connectedCallback(this));
1560
+ }
1561
+ }
1562
+ disconnectedCallback() {
1563
+ plt.jmp(() => disconnectedCallback(this));
1564
+ }
1565
+ componentOnReady() {
1566
+ return getHostRef(this).$onReadyPromise$;
1567
+ }
1568
+ };
1569
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1570
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1571
+ cmpTags.push(tagName);
1572
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1573
+ }
1574
+ });
1575
+ });
1576
+ // Only bother generating CSS if we have components
1577
+ // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
1578
+ if (cmpTags.length > 0) {
1579
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1580
+ if (hasSlotRelocation) {
1581
+ dataStyles.textContent += SLOT_FB_CSS;
1582
+ }
1583
+ // Add hydration styles
1584
+ {
1585
+ dataStyles.textContent += cmpTags + HYDRATED_CSS;
1586
+ }
1587
+ // If we have styles, add them to the DOM
1588
+ if (dataStyles.innerHTML.length) {
1589
+ dataStyles.setAttribute('data-styles', '');
1590
+ // Apply CSP nonce to the style tag if it exists
1591
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1592
+ if (nonce != null) {
1593
+ dataStyles.setAttribute('nonce', nonce);
1594
+ }
1595
+ // Insert the styles into the document head
1596
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1597
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1598
+ }
1599
+ }
1600
+ // Process deferred connectedCallbacks now all components have been registered
1601
+ isBootstrapping = false;
1602
+ if (deferredConnectedCallbacks.length) {
1603
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1604
+ }
1605
+ else {
1606
+ {
1607
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1608
+ }
1609
+ }
1610
+ // Fallback appLoad event
1611
+ endBootstrap();
1612
+ };
1613
+ /**
1614
+ * Assigns the given value to the nonce property on the runtime platform object.
1615
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1616
+ * @param nonce The value to be assigned to the platform nonce property.
1617
+ * @returns void
1618
+ */
1619
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1620
+ /**
1621
+ * A WeakMap mapping runtime component references to their corresponding host reference
1622
+ * instances.
1623
+ *
1624
+ * **Note**: If we're in an HMR context we need to store a reference to this
1625
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1626
+ * to {@link d.HostRef} across HMR updates.
1627
+ *
1628
+ * This is necessary because when HMR updates for a component are processed by
1629
+ * the browser-side dev server client the JS bundle for that component is
1630
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1631
+ * that bundle, if we do not store a reference to it the new iteration of the
1632
+ * component will not have access to the previous hostRef map, leading to a
1633
+ * bug where the new version of the component cannot properly initialize.
1634
+ */
1635
+ const hostRefs = new WeakMap();
1636
+ /**
1637
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1638
+ *
1639
+ * @param ref the runtime ref of interest
1640
+ * @returns the Host reference (if found) or undefined
1641
+ */
1642
+ const getHostRef = (ref) => hostRefs.get(ref);
1643
+ /**
1644
+ * Register a lazy instance with the {@link hostRefs} object so it's
1645
+ * corresponding {@link d.HostRef} can be retrieved later.
1646
+ *
1647
+ * @param lazyInstance the lazy instance of interest
1648
+ * @param hostRef that instances `HostRef` object
1649
+ * @returns a reference to the host ref WeakMap
1650
+ */
1651
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1652
+ /**
1653
+ * Register a host element for a Stencil component, setting up various metadata
1654
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1655
+ * metadata.
1656
+ *
1657
+ * @param hostElement the host element to register
1658
+ * @param cmpMeta runtime metadata for that component
1659
+ * @returns a reference to the host ref WeakMap
1660
+ */
1661
+ const registerHost = (hostElement, cmpMeta) => {
1662
+ const hostRef = {
1663
+ $flags$: 0,
1664
+ $hostElement$: hostElement,
1665
+ $cmpMeta$: cmpMeta,
1666
+ $instanceValues$: new Map(),
1667
+ };
1668
+ {
1669
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1670
+ hostElement['s-p'] = [];
1671
+ hostElement['s-rc'] = [];
1672
+ }
1673
+ return hostRefs.set(hostElement, hostRef);
1674
+ };
1675
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1676
+ const consoleError = (e, el) => (0, console.error)(e, el);
1677
+ const cmpModules = /*@__PURE__*/ new Map();
1678
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1679
+ // loadModuleImport
1680
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1681
+ const bundleId = cmpMeta.$lazyBundleId$;
1682
+ const module = cmpModules.get(bundleId) ;
1683
+ if (module) {
1684
+ return module[exportName];
1685
+ }
1686
+
1687
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1688
+ const processMod = importedModule => {
1689
+ cmpModules.set(bundleId, importedModule);
1690
+ return importedModule[exportName];
1691
+ }
1692
+ switch(bundleId) {
1693
+
1694
+ case 'ix-icon':
1695
+ return import(
1696
+ /* webpackMode: "lazy" */
1697
+ './ix-icon.entry.js').then(processMod, consoleError);
1698
+ }
1699
+ }
1700
+ return import(
1701
+ /* @vite-ignore */
1702
+ /* webpackInclude: /\.entry\.js$/ */
1703
+ /* webpackExclude: /\.system\.entry\.js$/ */
1704
+ /* webpackMode: "lazy" */
1705
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1706
+ {
1707
+ cmpModules.set(bundleId, importedModule);
1708
+ }
1709
+ return importedModule[exportName];
1710
+ }, consoleError);
1711
+ };
1712
+ const styles = /*@__PURE__*/ new Map();
1713
+ const win = typeof window !== 'undefined' ? window : {};
1714
+ const doc = win.document || { head: {} };
1715
+ const plt = {
1716
+ $flags$: 0,
1717
+ $resourcesUrl$: '',
1718
+ jmp: (h) => h(),
1719
+ raf: (h) => requestAnimationFrame(h),
1720
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1721
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1722
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1723
+ };
1724
+ const promiseResolve = (v) => Promise.resolve(v);
1725
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1726
+ try {
1727
+ new CSSStyleSheet();
1728
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1729
+ }
1730
+ catch (e) { }
1731
+ return false;
1732
+ })()
1733
+ ;
1734
+ const queueDomReads = [];
1735
+ const queueDomWrites = [];
1736
+ const queueTask = (queue, write) => (cb) => {
1737
+ queue.push(cb);
1738
+ if (!queuePending) {
1739
+ queuePending = true;
1740
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1741
+ nextTick(flush);
1742
+ }
1743
+ else {
1744
+ plt.raf(flush);
1745
+ }
1746
+ }
1747
+ };
1748
+ const consume = (queue) => {
1749
+ for (let i = 0; i < queue.length; i++) {
1750
+ try {
1751
+ queue[i](performance.now());
1752
+ }
1753
+ catch (e) {
1754
+ consoleError(e);
1755
+ }
1756
+ }
1757
+ queue.length = 0;
1758
+ };
1759
+ const flush = () => {
1760
+ // always force a bunch of medium callbacks to run, but still have
1761
+ // a throttle on how many can run in a certain time
1762
+ // DOM READS!!!
1763
+ consume(queueDomReads);
1764
+ // DOM WRITES!!!
1765
+ {
1766
+ consume(queueDomWrites);
1767
+ if ((queuePending = queueDomReads.length > 0)) {
1768
+ // still more to do yet, but we've run out of time
1769
+ // let's let this thing cool off and try again in the next tick
1770
+ plt.raf(flush);
1771
+ }
1772
+ }
1773
+ };
1774
+ const nextTick = (cb) => promiseResolve().then(cb);
1775
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1776
+
1777
+ export { Host as H, getElement as a, bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1778
+
1779
+ //# sourceMappingURL=index-8088fea1.js.map