@sparkle-learning/core 0.0.57 → 0.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1100) hide show
  1. package/dist/cjs/PrivateRoute-f97245ce.js +217 -0
  2. package/dist/cjs/active-router-f9e18bd8.js +75 -0
  3. package/dist/cjs/animation-ee586546.js +986 -0
  4. package/dist/cjs/app-globals-33c9f31b.js +9 -0
  5. package/dist/cjs/appdata.service-c8d71e05.js +73 -0
  6. package/dist/cjs/assets.service-bfa75092.js +50 -0
  7. package/dist/cjs/assignment.service-690fb59c.js +19 -0
  8. package/dist/cjs/auth.store-1e630a7d.js +3392 -0
  9. package/dist/cjs/compass-svg.cjs.entry.js +132 -0
  10. package/dist/cjs/context-consumer.cjs.entry.js +29 -0
  11. package/dist/cjs/course-select.cjs.entry.js +30 -0
  12. package/dist/cjs/cubic-bezier-53d26d05.js +93 -0
  13. package/dist/cjs/dir-5af5259a.js +20 -0
  14. package/dist/cjs/environment-config.service-c8ff1f3d.js +28 -0
  15. package/dist/cjs/facilitator.service-ff0e1659.js +95 -0
  16. package/dist/cjs/feed.service-8eca4de6.js +57 -0
  17. package/dist/cjs/focus-visible-b0b07ba6.js +76 -0
  18. package/dist/cjs/framework-delegate-59a98abd.js +111 -0
  19. package/dist/cjs/gesture-controller-0eb5579e.js +196 -0
  20. package/dist/cjs/haptic-780f33c4.js +116 -0
  21. package/dist/cjs/hardware-back-button-92d97ff8.js +76 -0
  22. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +15124 -0
  23. package/dist/cjs/helpers-c2496722.js +425 -0
  24. package/dist/cjs/httpService-d2e7bf8f.js +687 -0
  25. package/dist/cjs/icons-fda820af.js +26 -0
  26. package/dist/cjs/index-12082cba.js +465 -0
  27. package/dist/cjs/index-15ea05f5.js +314 -0
  28. package/dist/cjs/index-51e8292e.js +1928 -0
  29. package/dist/cjs/index-787d4498.js +232 -0
  30. package/dist/cjs/index-8b5629a6.js +186 -0
  31. package/dist/cjs/index-975586fd.js +48 -0
  32. package/dist/cjs/index-9c7b27e4.js +140 -0
  33. package/dist/cjs/index-af080b50.js +139 -0
  34. package/dist/cjs/index-e56e09b8.js +38 -0
  35. package/dist/cjs/index.cjs.js +26 -0
  36. package/dist/cjs/index.es-38cbcdbe.js +10666 -0
  37. package/dist/cjs/input-shims-eff63b88.js +418 -0
  38. package/dist/cjs/ion-accordion-group.cjs.entry.js +205 -0
  39. package/dist/cjs/ion-accordion.cjs.entry.js +336 -0
  40. package/dist/cjs/ion-action-sheet_7.cjs.entry.js +2935 -0
  41. package/dist/cjs/ion-app.cjs.entry.js +79 -0
  42. package/dist/cjs/ion-back-button.cjs.entry.js +94 -0
  43. package/dist/cjs/ion-backdrop.cjs.entry.js +67 -0
  44. package/dist/cjs/ion-badge.cjs.entry.js +29 -0
  45. package/dist/cjs/ion-breadcrumb.cjs.entry.js +95 -0
  46. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +133 -0
  47. package/dist/cjs/ion-buttons_3.cjs.entry.js +153 -0
  48. package/dist/cjs/ion-card-header.cjs.entry.js +37 -0
  49. package/dist/cjs/ion-card-subtitle.cjs.entry.js +30 -0
  50. package/dist/cjs/ion-card-title.cjs.entry.js +30 -0
  51. package/dist/cjs/ion-chip.cjs.entry.js +40 -0
  52. package/dist/cjs/ion-content_2.cjs.entry.js +659 -0
  53. package/dist/cjs/ion-datetime-button.cjs.entry.js +312 -0
  54. package/dist/cjs/ion-datetime.cjs.entry.js +1623 -0
  55. package/dist/cjs/ion-fab-button.cjs.entry.js +108 -0
  56. package/dist/cjs/ion-fab-list.cjs.entry.js +45 -0
  57. package/dist/cjs/ion-fab.cjs.entry.js +76 -0
  58. package/dist/cjs/ion-footer.cjs.entry.js +120 -0
  59. package/dist/cjs/ion-img.cjs.entry.js +101 -0
  60. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +37 -0
  61. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +206 -0
  62. package/dist/cjs/ion-item-divider.cjs.entry.js +40 -0
  63. package/dist/cjs/ion-item-group.cjs.entry.js +31 -0
  64. package/dist/cjs/ion-item-option.cjs.entry.js +60 -0
  65. package/dist/cjs/ion-item-options.cjs.entry.js +47 -0
  66. package/dist/cjs/ion-item-sliding.cjs.entry.js +398 -0
  67. package/dist/cjs/ion-loading.cjs.entry.js +215 -0
  68. package/dist/cjs/ion-menu-button.cjs.entry.js +76 -0
  69. package/dist/cjs/ion-menu-toggle.cjs.entry.js +47 -0
  70. package/dist/cjs/ion-menu.cjs.entry.js +575 -0
  71. package/dist/cjs/ion-modal.cjs.entry.js +1711 -0
  72. package/dist/cjs/ion-nav-link.cjs.entry.js +47 -0
  73. package/dist/cjs/ion-nav.cjs.entry.js +872 -0
  74. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +808 -0
  75. package/dist/cjs/ion-picker-column.cjs.entry.js +331 -0
  76. package/dist/cjs/ion-picker.cjs.entry.js +221 -0
  77. package/dist/cjs/ion-progress-bar.cjs.entry.js +74 -0
  78. package/dist/cjs/ion-refresher-content.cjs.entry.js +35 -0
  79. package/dist/cjs/ion-refresher.cjs.entry.js +802 -0
  80. package/dist/cjs/ion-reorder-group.cjs.entry.js +281 -0
  81. package/dist/cjs/ion-reorder.cjs.entry.js +38 -0
  82. package/dist/cjs/ion-route-redirect.cjs.entry.js +24 -0
  83. package/dist/cjs/ion-route.cjs.entry.js +49 -0
  84. package/dist/cjs/ion-router-link.cjs.entry.js +38 -0
  85. package/dist/cjs/ion-router-outlet.cjs.entry.js +200 -0
  86. package/dist/cjs/ion-router.cjs.entry.js +831 -0
  87. package/dist/cjs/ion-searchbar.cjs.entry.js +370 -0
  88. package/dist/cjs/ion-segment-button.cjs.entry.js +102 -0
  89. package/dist/cjs/ion-segment.cjs.entry.js +417 -0
  90. package/dist/cjs/ion-skeleton-text.cjs.entry.js +33 -0
  91. package/dist/cjs/ion-slide.cjs.entry.js +25 -0
  92. package/dist/cjs/ion-slides.cjs.entry.js +391 -0
  93. package/dist/cjs/ion-split-pane.cjs.entry.js +154 -0
  94. package/dist/cjs/ion-tab-bar.cjs.entry.js +75 -0
  95. package/dist/cjs/ion-tab-button.cjs.entry.js +103 -0
  96. package/dist/cjs/ion-tab.cjs.entry.js +59 -0
  97. package/dist/cjs/ion-tabs.cjs.entry.js +154 -0
  98. package/dist/cjs/ion-thumbnail.cjs.entry.js +20 -0
  99. package/dist/cjs/ion-toast.cjs.entry.js +272 -0
  100. package/dist/cjs/ion-toggle.cjs.entry.js +177 -0
  101. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +555 -0
  102. package/dist/cjs/ionic-global-2cde9d3a.js +231 -0
  103. package/dist/cjs/ios.transition-da235483.js +482 -0
  104. package/dist/cjs/keyboard-91096619.js +140 -0
  105. package/dist/cjs/loader.cjs.js +24 -0
  106. package/dist/cjs/localstorage.service-6346a41d.js +40 -0
  107. package/dist/cjs/md.transition-be429e07.js +57 -0
  108. package/dist/cjs/media.service-8a1b9bc5.js +40 -0
  109. package/dist/cjs/menu-toggle-util-7a01448c.js +14 -0
  110. package/dist/cjs/overlays-32df265a.js +507 -0
  111. package/dist/cjs/parse-d0071120.js +1237 -0
  112. package/dist/cjs/purify-fb9c107e.js +1468 -0
  113. package/dist/cjs/signalR.service-bd6b42f9.js +2985 -0
  114. package/dist/cjs/sparkle-animation-player.cjs.entry.js +515 -0
  115. package/dist/cjs/sparkle-assignment.cjs.entry.js +110 -0
  116. package/dist/cjs/sparkle-character-intro.cjs.entry.js +26 -0
  117. package/dist/cjs/sparkle-code.cjs.entry.js +43 -0
  118. package/dist/cjs/sparkle-compass-post.cjs.entry.js +133 -0
  119. package/dist/cjs/sparkle-compass.cjs.entry.js +126 -0
  120. package/dist/cjs/sparkle-core.cjs.js +22 -0
  121. package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +281 -0
  122. package/dist/cjs/sparkle-discussion.cjs.entry.js +42 -0
  123. package/dist/cjs/sparkle-emoji.cjs.entry.js +80 -0
  124. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +121 -0
  125. package/dist/cjs/sparkle-feed-post.cjs.entry.js +122 -0
  126. package/dist/cjs/sparkle-feedback.cjs.entry.js +101 -0
  127. package/dist/cjs/sparkle-file-upload.cjs.entry.js +53 -0
  128. package/dist/cjs/sparkle-goal-form.cjs.entry.js +179 -0
  129. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +26 -0
  130. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +19 -0
  131. package/dist/cjs/sparkle-input.cjs.entry.js +56 -0
  132. package/dist/cjs/sparkle-intro.cjs.entry.js +26 -0
  133. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +22 -0
  134. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +46 -0
  135. package/dist/cjs/sparkle-modal-image.cjs.entry.js +34 -0
  136. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +25 -0
  137. package/dist/cjs/sparkle-overlay.cjs.entry.js +92 -0
  138. package/dist/cjs/sparkle-poll.cjs.entry.js +19 -0
  139. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +47 -0
  140. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +117 -0
  141. package/dist/cjs/sparkle-quiz-old.cjs.entry.js +120 -0
  142. package/dist/cjs/sparkle-quiz.cjs.entry.js +103 -0
  143. package/dist/cjs/sparkle-select.cjs.entry.js +61 -0
  144. package/dist/cjs/sparkle-sidebar.cjs.entry.js +43 -0
  145. package/dist/cjs/sparkle-tab.cjs.entry.js +26 -0
  146. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +71 -0
  147. package/dist/cjs/sparkle-tabs.cjs.entry.js +66 -0
  148. package/dist/cjs/sparkle-video-player.cjs.entry.js +22 -0
  149. package/dist/cjs/sparkle-youtube.cjs.entry.js +39 -0
  150. package/dist/cjs/spinner-configs-0ac05f2d.js +147 -0
  151. package/dist/cjs/status-tap-033befa2.js +42 -0
  152. package/dist/cjs/stencil-async-content.cjs.entry.js +32 -0
  153. package/dist/cjs/stencil-route-title.cjs.entry.js +32 -0
  154. package/dist/cjs/stencil-router-prompt.cjs.entry.js +59 -0
  155. package/dist/cjs/student.service-7e5385be.js +78 -0
  156. package/dist/cjs/swipe-back-4a826f9b.js +76 -0
  157. package/dist/cjs/swiper.bundle-8c897c07.js +6420 -0
  158. package/dist/cjs/theme-b0b295c1.js +48 -0
  159. package/dist/cjs/token.service-7a41953d.js +97 -0
  160. package/dist/cjs/util-47e320b2.js +2462 -0
  161. package/dist/collection/PrivateRoute.js +27 -0
  162. package/dist/collection/appconst.js +13 -0
  163. package/dist/collection/assets/img/forward.svg +5 -0
  164. package/dist/collection/assets/img/help/fitt-logo.svg +1 -0
  165. package/dist/collection/assets/img/home/big-white-wall.svg +15 -0
  166. package/dist/collection/assets/img/home/find-help.svg +23 -0
  167. package/dist/collection/assets/img/home/lessons.svg +26 -0
  168. package/dist/collection/assets/img/home/my-goals.svg +19 -0
  169. package/dist/collection/assets/img/home/my-health.svg +17 -0
  170. package/dist/collection/assets/img/home/my-mood.svg +26 -0
  171. package/dist/collection/assets/img/pause.svg +5 -0
  172. package/dist/collection/assets/img/play-symbol.svg +8 -0
  173. package/dist/collection/assets/img/play.svg +4 -0
  174. package/dist/collection/assets/img/rewind.svg +5 -0
  175. package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +17 -0
  176. package/dist/collection/assets/lib/sparkleUtility.js +8 -0
  177. package/dist/collection/assets/svg/profile.svg +2 -0
  178. package/dist/collection/collection-manifest.json +219 -0
  179. package/dist/collection/components/compass-svg/compass-svg.css +15 -0
  180. package/dist/collection/components/compass-svg/compass-svg.js +156 -0
  181. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +7 -0
  182. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +110 -0
  183. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +3 -0
  184. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +214 -0
  185. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
  186. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +172 -0
  187. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +104 -0
  188. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +3 -0
  189. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +144 -0
  190. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +14 -0
  191. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +64 -0
  192. package/dist/collection/components/layout/facilitator/facilitator-page.css +196 -0
  193. package/dist/collection/components/layout/facilitator/facilitator-page.js +281 -0
  194. package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
  195. package/dist/collection/components/layout/facilitator/online-students/online-students.js +70 -0
  196. package/dist/collection/components/layout/page/page.css +183 -0
  197. package/dist/collection/components/layout/page/page.js +321 -0
  198. package/dist/collection/components/layout/page/templates/default.js +9 -0
  199. package/dist/collection/components/layout/page/templates/error.js +33 -0
  200. package/dist/collection/components/layout/page/templates/index.js +8 -0
  201. package/dist/collection/components/layout/page/templates/pdf.js +8 -0
  202. package/dist/collection/components/layout/page/to-hypertext.js +27 -0
  203. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +3 -0
  204. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +252 -0
  205. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +12 -0
  206. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +59 -0
  207. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +33 -0
  208. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +37 -0
  209. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +8 -0
  210. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +40 -0
  211. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +7 -0
  212. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +52 -0
  213. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +3 -0
  214. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +14 -0
  215. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +30 -0
  216. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +187 -0
  217. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +3 -0
  218. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +43 -0
  219. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +10 -0
  220. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +111 -0
  221. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +11 -0
  222. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +127 -0
  223. package/dist/collection/components/modal-image/modal-image.css +61 -0
  224. package/dist/collection/components/modal-image/modal-image.js +159 -0
  225. package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
  226. package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
  227. package/dist/collection/components/sparkle-animation-player/caption-parser.js +94 -0
  228. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +157 -0
  229. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +598 -0
  230. package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +30 -0
  231. package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +159 -0
  232. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  233. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  234. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  235. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  236. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  237. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  238. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +74 -0
  239. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +68 -0
  240. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +35 -0
  241. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +171 -0
  242. package/dist/collection/components/sparkle-compass/sparkle-compass.css +25 -0
  243. package/dist/collection/components/sparkle-compass/sparkle-compass.js +283 -0
  244. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +3 -0
  245. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +196 -0
  246. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +157 -0
  247. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +232 -0
  248. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +158 -0
  249. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +274 -0
  250. package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +5 -0
  251. package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +112 -0
  252. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +16 -0
  253. package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +116 -0
  254. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +35 -0
  255. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +199 -0
  256. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +3 -0
  257. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +118 -0
  258. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
  259. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +105 -0
  260. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +4 -0
  261. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +107 -0
  262. package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
  263. package/dist/collection/components/sparkle-input/sparkle-input.js +212 -0
  264. package/dist/collection/components/sparkle-intro/sparkle-intro.css +15 -0
  265. package/dist/collection/components/sparkle-intro/sparkle-intro.js +35 -0
  266. package/dist/collection/components/sparkle-login/sparkle-login.css +4 -0
  267. package/dist/collection/components/sparkle-login/sparkle-login.js +173 -0
  268. package/dist/collection/components/sparkle-poll/sparkle-poll.css +3 -0
  269. package/dist/collection/components/sparkle-poll/sparkle-poll.js +15 -0
  270. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +3 -0
  271. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +69 -0
  272. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +3 -0
  273. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +59 -0
  274. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +48 -0
  275. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +327 -0
  276. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +18 -0
  277. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +106 -0
  278. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +3 -0
  279. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +59 -0
  280. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +3 -0
  281. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +100 -0
  282. package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +48 -0
  283. package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +221 -0
  284. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +3 -0
  285. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +98 -0
  286. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +3 -0
  287. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +126 -0
  288. package/dist/collection/components/sparkle-root/sparkle-root.css +61 -0
  289. package/dist/collection/components/sparkle-root/sparkle-root.js +86 -0
  290. package/dist/collection/components/sparkle-signup/sparkle-signup.css +6 -0
  291. package/dist/collection/components/sparkle-signup/sparkle-signup.js +197 -0
  292. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +13 -0
  293. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +18 -0
  294. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +3 -0
  295. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +93 -0
  296. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +54 -0
  297. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +151 -0
  298. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +11 -0
  299. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +44 -0
  300. package/dist/collection/components/sparkle-video-player/sparkle-video-player.css +0 -0
  301. package/dist/collection/components/sparkle-video-player/sparkle-video-player.js +92 -0
  302. package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +24 -0
  303. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +99 -0
  304. package/dist/collection/global/app.js +4 -0
  305. package/dist/collection/helpers/utils.js +3 -0
  306. package/dist/collection/icons.js +36 -0
  307. package/dist/collection/index.js +3 -0
  308. package/dist/collection/l10n.js +18 -0
  309. package/dist/collection/models/api.model.js +7 -0
  310. package/dist/collection/models/assets.model.js +1 -0
  311. package/dist/collection/models/auth/auth.user.js +1 -0
  312. package/dist/collection/models/class.model.js +5 -0
  313. package/dist/collection/models/course.model.js +10 -0
  314. package/dist/collection/models/definitions.js +1 -0
  315. package/dist/collection/models/facilitator-dashboard.model.js +5 -0
  316. package/dist/collection/models/goal.model.js +1 -0
  317. package/dist/collection/models/index.js +1 -0
  318. package/dist/collection/models/markdown.model.js +1 -0
  319. package/dist/collection/models/page.model.js +1 -0
  320. package/dist/collection/models/quiz.model.js +3 -0
  321. package/dist/collection/models/user.model.js +1 -0
  322. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +2727 -0
  323. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +2042 -0
  324. package/dist/collection/services/account.service.js +61 -0
  325. package/dist/collection/services/appdata.service.js +60 -0
  326. package/dist/collection/services/assignment.service.js +14 -0
  327. package/dist/collection/services/auth/auth.service.js +64 -0
  328. package/dist/collection/services/core/assets.service.js +45 -0
  329. package/dist/collection/services/core/localstorage.service.js +34 -0
  330. package/dist/collection/services/environment/environment-config.js +24 -0
  331. package/dist/collection/services/environment/environment-config.service.js +24 -0
  332. package/dist/collection/services/facilitator.service.js +76 -0
  333. package/dist/collection/services/feed.service.js +43 -0
  334. package/dist/collection/services/httpService.js +103 -0
  335. package/dist/collection/services/index.js +4 -0
  336. package/dist/collection/services/media.service.js +29 -0
  337. package/dist/collection/services/signalR.service.js +83 -0
  338. package/dist/collection/services/store.service.js +13 -0
  339. package/dist/collection/services/student.service.js +56 -0
  340. package/dist/collection/services/token.service.js +79 -0
  341. package/dist/collection/stores/auth.store.js +12 -0
  342. package/dist/collection/stores/class.store.js +5 -0
  343. package/dist/collection/stores/error.store.js +5 -0
  344. package/dist/collection/stores/facilitator.store.js +15 -0
  345. package/dist/collection/stores/feed.store.js +8 -0
  346. package/dist/collection/stores/goal.store.js +7 -0
  347. package/dist/collection/stores/index.js +1 -0
  348. package/dist/collection/stores/media.store.js +5 -0
  349. package/dist/collection/stores/mood.store.js +5 -0
  350. package/dist/collection/stores/nav.store.js +11 -0
  351. package/dist/collection/stores/signalR.store.js +6 -0
  352. package/dist/collection/stores/theme.store.js +9 -0
  353. package/dist/collection/stores/toc.store.js +5 -0
  354. package/dist/collection/stores/user.store.js +16 -0
  355. package/dist/collection/util.js +55 -0
  356. package/dist/collection/utils.js +92 -0
  357. package/dist/esm/PrivateRoute-90ac95b8.js +212 -0
  358. package/dist/esm/active-router-fc9e4e06.js +73 -0
  359. package/dist/esm/animation-12377cb3.js +984 -0
  360. package/dist/esm/app-globals-3f0347b0.js +7 -0
  361. package/dist/esm/appdata.service-2e84e167.js +70 -0
  362. package/dist/esm/assets.service-def1d63c.js +48 -0
  363. package/dist/esm/assignment.service-8d31f141.js +17 -0
  364. package/dist/esm/auth.store-dba2c2da.js +3381 -0
  365. package/dist/esm/compass-svg.entry.js +128 -0
  366. package/dist/esm/context-consumer.entry.js +25 -0
  367. package/dist/esm/course-select.entry.js +26 -0
  368. package/dist/esm/dir-03012648.js +18 -0
  369. package/dist/esm/environment-config.service-b191f276.js +26 -0
  370. package/dist/esm/facilitator.service-18c47bdf.js +92 -0
  371. package/dist/esm/feed.service-b4f3cae4.js +54 -0
  372. package/dist/esm/framework-delegate-3e634a5c.js +107 -0
  373. package/dist/esm/gesture-controller-7be18351.js +194 -0
  374. package/dist/esm/haptic-522f76f2.js +110 -0
  375. package/dist/esm/header-mobile-collapse_61.entry.js +15060 -0
  376. package/dist/esm/helpers-bf0e23d6.js +403 -0
  377. package/dist/esm/httpService-7986aeed.js +685 -0
  378. package/dist/esm/icons-1c794c74.js +18 -0
  379. package/dist/esm/index-21661af2.js +463 -0
  380. package/dist/esm/index-2b84cad2.js +223 -0
  381. package/dist/esm/index-4044fde9.js +25 -0
  382. package/dist/esm/index-45fec1e7.js +184 -0
  383. package/dist/esm/index-5e8971ae.js +128 -0
  384. package/dist/esm/index-c04b9ed5.js +1888 -0
  385. package/dist/esm/index-cded2d87.js +312 -0
  386. package/dist/esm/index-dad75b83.js +34 -0
  387. package/dist/esm/index.es-e0c0f891.js +10580 -0
  388. package/dist/esm/index.js +12 -0
  389. package/dist/esm/input-shims-671d8d9f.js +416 -0
  390. package/dist/esm/ion-accordion-group.entry.js +201 -0
  391. package/dist/esm/ion-accordion.entry.js +332 -0
  392. package/dist/esm/ion-action-sheet_7.entry.js +2925 -0
  393. package/dist/esm/ion-app.entry.js +75 -0
  394. package/dist/esm/ion-back-button.entry.js +90 -0
  395. package/dist/esm/ion-backdrop.entry.js +63 -0
  396. package/dist/esm/ion-badge.entry.js +25 -0
  397. package/dist/esm/ion-breadcrumb.entry.js +91 -0
  398. package/dist/esm/ion-breadcrumbs.entry.js +129 -0
  399. package/dist/esm/ion-buttons_3.entry.js +147 -0
  400. package/dist/esm/ion-card-header.entry.js +33 -0
  401. package/dist/esm/ion-card-subtitle.entry.js +26 -0
  402. package/dist/esm/ion-card-title.entry.js +26 -0
  403. package/dist/esm/ion-chip.entry.js +36 -0
  404. package/dist/esm/ion-content_2.entry.js +654 -0
  405. package/dist/esm/ion-datetime-button.entry.js +308 -0
  406. package/dist/esm/ion-datetime.entry.js +1619 -0
  407. package/dist/esm/ion-fab-button.entry.js +104 -0
  408. package/dist/esm/ion-fab-list.entry.js +41 -0
  409. package/dist/esm/ion-fab.entry.js +72 -0
  410. package/dist/esm/ion-footer.entry.js +116 -0
  411. package/dist/esm/ion-img.entry.js +97 -0
  412. package/dist/esm/ion-infinite-scroll-content.entry.js +33 -0
  413. package/dist/esm/ion-infinite-scroll.entry.js +202 -0
  414. package/dist/esm/ion-item-divider.entry.js +36 -0
  415. package/dist/esm/ion-item-group.entry.js +27 -0
  416. package/dist/esm/ion-item-option.entry.js +56 -0
  417. package/dist/esm/ion-item-options.entry.js +43 -0
  418. package/dist/esm/ion-item-sliding.entry.js +394 -0
  419. package/dist/esm/ion-loading.entry.js +211 -0
  420. package/dist/esm/ion-menu-button.entry.js +72 -0
  421. package/dist/esm/ion-menu-toggle.entry.js +43 -0
  422. package/dist/esm/ion-menu.entry.js +571 -0
  423. package/dist/esm/ion-modal.entry.js +1707 -0
  424. package/dist/esm/ion-nav-link.entry.js +43 -0
  425. package/dist/esm/ion-nav.entry.js +868 -0
  426. package/dist/esm/ion-picker-column-internal_2.entry.js +803 -0
  427. package/dist/esm/ion-picker-column.entry.js +327 -0
  428. package/dist/esm/ion-picker.entry.js +217 -0
  429. package/dist/esm/ion-progress-bar.entry.js +70 -0
  430. package/dist/esm/ion-refresher-content.entry.js +31 -0
  431. package/dist/esm/ion-refresher.entry.js +798 -0
  432. package/dist/esm/ion-reorder-group.entry.js +277 -0
  433. package/dist/esm/ion-reorder.entry.js +34 -0
  434. package/dist/esm/ion-route-redirect.entry.js +20 -0
  435. package/dist/esm/ion-route.entry.js +45 -0
  436. package/dist/esm/ion-router-link.entry.js +34 -0
  437. package/dist/esm/ion-router-outlet.entry.js +196 -0
  438. package/dist/esm/ion-router.entry.js +827 -0
  439. package/dist/esm/ion-searchbar.entry.js +366 -0
  440. package/dist/esm/ion-segment-button.entry.js +98 -0
  441. package/dist/esm/ion-segment.entry.js +413 -0
  442. package/dist/esm/ion-skeleton-text.entry.js +29 -0
  443. package/dist/esm/ion-slide.entry.js +21 -0
  444. package/dist/esm/ion-slides.entry.js +387 -0
  445. package/dist/esm/ion-split-pane.entry.js +150 -0
  446. package/dist/esm/ion-tab-bar.entry.js +71 -0
  447. package/dist/esm/ion-tab-button.entry.js +99 -0
  448. package/dist/esm/ion-tab.entry.js +55 -0
  449. package/dist/esm/ion-tabs.entry.js +150 -0
  450. package/dist/esm/ion-thumbnail.entry.js +16 -0
  451. package/dist/esm/ion-toast.entry.js +268 -0
  452. package/dist/esm/ion-toggle.entry.js +173 -0
  453. package/dist/esm/ion-virtual-scroll.entry.js +551 -0
  454. package/dist/esm/ionic-global-4903e23e.js +226 -0
  455. package/dist/esm/ios.transition-131d64fe.js +479 -0
  456. package/dist/esm/loader.js +20 -0
  457. package/dist/esm/md.transition-f6126011.js +55 -0
  458. package/dist/esm/media.service-6e90bc41.js +37 -0
  459. package/dist/esm/menu-toggle-util-bace8ae6.js +12 -0
  460. package/dist/esm/overlays-4233a39d.js +491 -0
  461. package/dist/esm/parse-1ae3a9bb.js +1196 -0
  462. package/dist/esm/polyfills/core-js.js +11 -0
  463. package/dist/esm/polyfills/css-shim.js +1 -0
  464. package/dist/esm/polyfills/dom.js +79 -0
  465. package/dist/esm/polyfills/es5-html-element.js +1 -0
  466. package/dist/esm/polyfills/index.js +34 -0
  467. package/dist/esm/polyfills/system.js +6 -0
  468. package/dist/esm/purify-85bfcc69.js +1466 -0
  469. package/dist/esm/signalR.service-c33fba50.js +2982 -0
  470. package/dist/esm/sparkle-animation-player.entry.js +511 -0
  471. package/dist/esm/sparkle-assignment.entry.js +106 -0
  472. package/dist/esm/sparkle-character-intro.entry.js +22 -0
  473. package/dist/esm/sparkle-code.entry.js +39 -0
  474. package/dist/esm/sparkle-compass-post.entry.js +129 -0
  475. package/dist/esm/sparkle-compass.entry.js +122 -0
  476. package/dist/esm/sparkle-core.js +20 -0
  477. package/dist/esm/sparkle-discussion-questions_2.entry.js +276 -0
  478. package/dist/esm/sparkle-discussion.entry.js +38 -0
  479. package/dist/esm/sparkle-emoji.entry.js +76 -0
  480. package/dist/esm/sparkle-facilitator-notes-form.entry.js +117 -0
  481. package/dist/esm/sparkle-feed-post.entry.js +118 -0
  482. package/dist/esm/sparkle-feedback.entry.js +97 -0
  483. package/dist/esm/sparkle-file-upload.entry.js +49 -0
  484. package/dist/esm/sparkle-goal-form.entry.js +175 -0
  485. package/dist/esm/sparkle-gww-comment-list.entry.js +22 -0
  486. package/dist/esm/sparkle-gww-graph.entry.js +15 -0
  487. package/dist/esm/sparkle-input.entry.js +52 -0
  488. package/dist/esm/sparkle-intro.entry.js +22 -0
  489. package/dist/esm/sparkle-lower-content-nav.entry.js +18 -0
  490. package/dist/esm/sparkle-menu-collapsible.entry.js +42 -0
  491. package/dist/esm/sparkle-modal-image.entry.js +30 -0
  492. package/dist/esm/sparkle-notfound-page.entry.js +21 -0
  493. package/dist/esm/sparkle-overlay.entry.js +88 -0
  494. package/dist/esm/sparkle-poll.entry.js +15 -0
  495. package/dist/esm/sparkle-quiz-container.entry.js +43 -0
  496. package/dist/esm/sparkle-quiz-feedback_5.entry.js +109 -0
  497. package/dist/esm/sparkle-quiz-old.entry.js +116 -0
  498. package/dist/esm/sparkle-quiz.entry.js +99 -0
  499. package/dist/esm/sparkle-select.entry.js +57 -0
  500. package/dist/esm/sparkle-sidebar.entry.js +39 -0
  501. package/dist/esm/sparkle-tab.entry.js +22 -0
  502. package/dist/esm/sparkle-table-of-contents.entry.js +67 -0
  503. package/dist/esm/sparkle-tabs.entry.js +62 -0
  504. package/dist/esm/sparkle-video-player.entry.js +18 -0
  505. package/dist/esm/sparkle-youtube.entry.js +35 -0
  506. package/dist/esm/status-tap-dde52787.js +40 -0
  507. package/dist/esm/stencil-async-content.entry.js +28 -0
  508. package/dist/esm/stencil-route-title.entry.js +28 -0
  509. package/dist/esm/stencil-router-prompt.entry.js +55 -0
  510. package/dist/esm/student.service-08af124f.js +75 -0
  511. package/dist/esm/swipe-back-7847a0c1.js +74 -0
  512. package/dist/esm/swiper.bundle-b6a959de.js +6418 -0
  513. package/dist/esm/token.service-71a5d33f.js +94 -0
  514. package/dist/esm/util-57cc8006.js +2451 -0
  515. package/dist/index.cjs.js +1 -0
  516. package/dist/index.js +1 -0
  517. package/dist/loader/cdn.js +3 -0
  518. package/dist/loader/index.cjs.js +3 -0
  519. package/dist/loader/index.d.ts +12 -0
  520. package/dist/loader/index.es2017.js +3 -0
  521. package/dist/loader/index.js +4 -0
  522. package/dist/loader/package.json +10 -0
  523. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +75 -0
  524. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +72 -0
  525. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +25 -0
  526. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +59 -0
  527. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +357 -0
  528. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +290 -0
  529. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +494 -0
  530. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +502 -0
  531. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +17 -0
  532. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +22 -0
  533. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +22 -0
  534. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +281 -0
  535. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +309 -0
  536. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +26 -0
  537. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +26 -0
  538. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +58 -0
  539. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +62 -0
  540. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +234 -0
  541. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +237 -0
  542. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +38 -0
  543. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +37 -0
  544. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +439 -0
  545. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +428 -0
  546. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +128 -0
  547. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +151 -0
  548. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +101 -0
  549. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +95 -0
  550. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +61 -0
  551. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +63 -0
  552. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +37 -0
  553. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +35 -0
  554. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +28 -0
  555. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +26 -0
  556. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +27 -0
  557. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +27 -0
  558. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +169 -0
  559. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +172 -0
  560. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +200 -0
  561. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +200 -0
  562. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +108 -0
  563. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +237 -0
  564. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +648 -0
  565. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +637 -0
  566. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +60 -0
  567. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +61 -0
  568. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +338 -0
  569. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +307 -0
  570. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +116 -0
  571. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +37 -0
  572. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +37 -0
  573. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +151 -0
  574. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +108 -0
  575. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +40 -0
  576. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +12 -0
  577. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +8 -0
  578. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +54 -0
  579. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +54 -0
  580. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +185 -0
  581. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +185 -0
  582. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +669 -0
  583. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +928 -0
  584. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +204 -0
  585. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +297 -0
  586. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +3 -0
  587. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +3 -0
  588. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +186 -0
  589. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +180 -0
  590. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +88 -0
  591. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +85 -0
  592. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +42 -0
  593. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +156 -0
  594. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +250 -0
  595. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +91 -0
  596. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +114 -0
  597. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +118 -0
  598. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +94 -0
  599. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +109 -0
  600. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +100 -0
  601. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +127 -0
  602. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +123 -0
  603. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +175 -0
  604. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +178 -0
  605. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +3 -0
  606. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +250 -0
  607. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +177 -0
  608. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +10 -0
  609. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +16 -0
  610. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +17 -0
  611. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +217 -0
  612. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +204 -0
  613. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +122 -0
  614. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +123 -0
  615. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +82 -0
  616. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +85 -0
  617. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +126 -0
  618. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +122 -0
  619. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +201 -0
  620. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +132 -0
  621. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +206 -0
  622. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +206 -0
  623. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +177 -0
  624. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +178 -0
  625. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +275 -0
  626. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +320 -0
  627. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +189 -0
  628. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +210 -0
  629. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +15 -0
  630. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +15 -0
  631. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +33 -0
  632. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +58 -0
  633. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +29 -0
  634. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +10 -0
  635. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +4 -0
  636. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +348 -0
  637. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +279 -0
  638. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +65 -0
  639. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +36 -0
  640. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +446 -0
  641. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +424 -0
  642. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +145 -0
  643. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +177 -0
  644. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +3 -0
  645. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +14 -0
  646. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
  647. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +53 -0
  648. package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +31 -0
  649. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +764 -0
  650. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +764 -0
  651. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +167 -0
  652. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +108 -0
  653. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +108 -0
  654. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +4 -0
  655. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +97 -0
  656. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +82 -0
  657. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +308 -0
  658. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +331 -0
  659. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +19 -0
  660. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +3 -0
  661. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +175 -0
  662. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +179 -0
  663. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +21 -0
  664. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +122 -0
  665. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +55 -0
  666. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +262 -0
  667. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +295 -0
  668. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +286 -0
  669. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +261 -0
  670. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +175 -0
  671. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +168 -0
  672. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +21 -0
  673. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
  674. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
  675. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
  676. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
  677. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
  678. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +257 -0
  679. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
  680. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
  681. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
  682. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
  683. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
  684. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
  685. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
  686. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +25 -0
  687. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +93 -0
  688. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
  689. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
  690. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
  691. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
  692. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
  693. package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +3 -0
  694. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +101 -0
  695. package/dist/sparkle-core/index.esm.js +1 -19
  696. package/dist/sparkle-core/p-00d10dc9.js +4 -0
  697. package/dist/sparkle-core/p-0147266a.js +1 -0
  698. package/dist/sparkle-core/p-04c7b276.entry.js +1 -0
  699. package/dist/sparkle-core/p-05c032dd.js +4 -0
  700. package/dist/sparkle-core/p-06642405.entry.js +1 -0
  701. package/dist/sparkle-core/p-0664370b.entry.js +1 -0
  702. package/dist/sparkle-core/p-06c7d0f2.entry.js +1 -0
  703. package/dist/sparkle-core/p-076f0239.js +4 -0
  704. package/dist/sparkle-core/p-077c732b.js +4 -0
  705. package/dist/sparkle-core/p-08420531.entry.js +1 -0
  706. package/dist/sparkle-core/p-0ad5c123.entry.js +1 -0
  707. package/dist/sparkle-core/p-0afa3a4d.entry.js +1 -0
  708. package/dist/sparkle-core/p-0c3f3ea6.entry.js +1 -0
  709. package/dist/sparkle-core/p-0e4de1d0.js +4 -0
  710. package/dist/sparkle-core/p-0e8e539f.entry.js +1 -0
  711. package/dist/sparkle-core/p-11356b03.entry.js +1 -0
  712. package/dist/sparkle-core/p-11a6c175.entry.js +1 -0
  713. package/dist/sparkle-core/p-12dd96d7.js +4 -0
  714. package/dist/sparkle-core/p-13ec39db.entry.js +1 -0
  715. package/dist/sparkle-core/p-1adc98f6.js +1 -0
  716. package/dist/sparkle-core/p-1b1ba156.entry.js +1 -0
  717. package/dist/sparkle-core/p-1e125ca5.entry.js +1 -0
  718. package/dist/sparkle-core/p-1e4782af.entry.js +1 -0
  719. package/dist/sparkle-core/p-2033cd86.js +7 -0
  720. package/dist/sparkle-core/p-214d1229.entry.js +1 -0
  721. package/dist/sparkle-core/p-23aca7ca.js +4 -0
  722. package/dist/sparkle-core/p-24cb9a33.entry.js +1 -0
  723. package/dist/sparkle-core/p-27fbabc3.entry.js +1 -0
  724. package/dist/sparkle-core/p-2ba70507.entry.js +1 -0
  725. package/dist/sparkle-core/p-2c1ca854.entry.js +1 -0
  726. package/dist/sparkle-core/p-2caed39f.entry.js +1 -0
  727. package/dist/sparkle-core/p-2d9659e2.entry.js +1 -0
  728. package/dist/sparkle-core/p-2f569553.js +1 -0
  729. package/dist/sparkle-core/p-30b810d1.entry.js +4 -0
  730. package/dist/sparkle-core/p-32f4e565.entry.js +1 -0
  731. package/dist/sparkle-core/p-352677e6.entry.js +1 -0
  732. package/dist/sparkle-core/p-38b7cf68.entry.js +1 -0
  733. package/dist/sparkle-core/p-38c842d5.entry.js +1 -0
  734. package/dist/sparkle-core/p-3963e02b.entry.js +1 -0
  735. package/dist/sparkle-core/p-39712c56.entry.js +4 -0
  736. package/dist/sparkle-core/p-39a31e43.js +1 -0
  737. package/dist/sparkle-core/p-3de0e00c.js +4 -0
  738. package/dist/sparkle-core/p-4053ecdb.entry.js +1 -0
  739. package/dist/sparkle-core/p-408176ba.js +1 -0
  740. package/dist/sparkle-core/p-42ed7d5f.entry.js +1 -0
  741. package/dist/sparkle-core/p-48f72e63.js +4 -0
  742. package/dist/sparkle-core/p-4b4a8703.js +1 -0
  743. package/dist/sparkle-core/p-4c1980f7.entry.js +352 -0
  744. package/dist/sparkle-core/p-4c6a7e52.js +1 -0
  745. package/dist/sparkle-core/p-4d1cfcbe.entry.js +1 -0
  746. package/dist/sparkle-core/p-4d4077ea.js +4 -0
  747. package/dist/sparkle-core/p-4fba3e4c.js +1 -0
  748. package/dist/sparkle-core/p-506221fe.js +4 -0
  749. package/dist/sparkle-core/p-5096739e.entry.js +1 -0
  750. package/dist/sparkle-core/p-5322c920.entry.js +1 -0
  751. package/dist/sparkle-core/p-5893bbe5.entry.js +1 -0
  752. package/dist/sparkle-core/p-594a6982.entry.js +1 -0
  753. package/dist/sparkle-core/p-5c435d5a.entry.js +1 -0
  754. package/dist/sparkle-core/p-5cad23f1.js +3 -0
  755. package/dist/sparkle-core/p-5d409601.js +1 -0
  756. package/dist/sparkle-core/p-601397df.entry.js +1 -0
  757. package/dist/sparkle-core/p-604a7987.js +4 -0
  758. package/dist/sparkle-core/p-616941c6.entry.js +1 -0
  759. package/dist/sparkle-core/p-6316d124.entry.js +1 -0
  760. package/dist/sparkle-core/p-63f71ada.entry.js +1 -0
  761. package/dist/sparkle-core/p-69487d90.entry.js +1 -0
  762. package/dist/sparkle-core/p-6bde0192.entry.js +7 -0
  763. package/dist/sparkle-core/p-6d2f4093.entry.js +7 -0
  764. package/dist/sparkle-core/p-6ffd2420.entry.js +1 -0
  765. package/dist/sparkle-core/p-72053ae0.entry.js +1 -0
  766. package/dist/sparkle-core/p-73721c84.js +4 -0
  767. package/dist/sparkle-core/p-74864276.entry.js +1 -0
  768. package/dist/sparkle-core/p-7d8427eb.js +4 -0
  769. package/dist/sparkle-core/p-7dae0f0e.js +1 -0
  770. package/dist/sparkle-core/p-7dbfc316.js +1 -0
  771. package/dist/sparkle-core/p-7e7ce516.js +4 -0
  772. package/dist/sparkle-core/p-81714d94.entry.js +1 -0
  773. package/dist/sparkle-core/p-8492a765.entry.js +1 -0
  774. package/dist/sparkle-core/p-859563db.entry.js +1 -0
  775. package/dist/sparkle-core/p-85d4cd5c.entry.js +1 -0
  776. package/dist/sparkle-core/p-865f36a8.entry.js +1 -0
  777. package/dist/sparkle-core/p-86ed13f0.js +5 -0
  778. package/dist/sparkle-core/p-871106e0.js +4 -0
  779. package/dist/sparkle-core/p-894ff7e6.entry.js +1 -0
  780. package/dist/sparkle-core/p-8a41b502.entry.js +1 -0
  781. package/dist/sparkle-core/p-8b56f734.js +1 -0
  782. package/dist/sparkle-core/p-8c74cbb6.entry.js +1 -0
  783. package/dist/sparkle-core/p-924b2917.js +4 -0
  784. package/dist/sparkle-core/p-9289cdbc.entry.js +1 -0
  785. package/dist/sparkle-core/p-957715c5.entry.js +1 -0
  786. package/dist/sparkle-core/p-973fe404.entry.js +22 -0
  787. package/dist/sparkle-core/p-975b99ee.entry.js +1 -0
  788. package/dist/sparkle-core/p-98daeddb.entry.js +1 -0
  789. package/dist/sparkle-core/p-99ee9919.js +1 -0
  790. package/dist/sparkle-core/p-9abbd715.entry.js +1 -0
  791. package/dist/sparkle-core/p-9d894ed4.js +4 -0
  792. package/dist/sparkle-core/p-9e309b3e.entry.js +1 -0
  793. package/dist/sparkle-core/p-9e7fee8f.entry.js +1 -0
  794. package/dist/sparkle-core/p-9ebf0537.entry.js +1 -0
  795. package/dist/sparkle-core/p-a208ab2d.js +4 -0
  796. package/dist/sparkle-core/p-a2638250.entry.js +1 -0
  797. package/dist/sparkle-core/p-a2ebcf0a.entry.js +1 -0
  798. package/dist/sparkle-core/p-a98d7ebe.entry.js +1 -0
  799. package/dist/sparkle-core/p-add30d46.js +4 -0
  800. package/dist/sparkle-core/p-b0603d19.js +16 -0
  801. package/dist/sparkle-core/p-b06e2bef.js +1 -0
  802. package/dist/sparkle-core/p-b3f375fb.entry.js +1 -0
  803. package/dist/sparkle-core/p-b5f3e1bf.entry.js +1 -0
  804. package/dist/sparkle-core/p-b6fec622.entry.js +1 -0
  805. package/dist/sparkle-core/p-b8d71ff4.js +1 -0
  806. package/dist/sparkle-core/p-b96f3c84.entry.js +7 -0
  807. package/dist/sparkle-core/p-bd80ff43.js +4 -0
  808. package/dist/sparkle-core/p-bd90903e.js +1 -0
  809. package/dist/sparkle-core/p-be64105c.entry.js +1 -0
  810. package/dist/sparkle-core/p-c0533c23.entry.js +1 -0
  811. package/dist/sparkle-core/p-c2990b24.entry.js +1 -0
  812. package/dist/sparkle-core/p-c3cadfc6.entry.js +1 -0
  813. package/dist/sparkle-core/p-c60b29bd.entry.js +4 -0
  814. package/dist/sparkle-core/p-c64a34cd.entry.js +1 -0
  815. package/dist/sparkle-core/p-c7e21070.entry.js +1 -0
  816. package/dist/sparkle-core/p-c9f753a4.js +1 -0
  817. package/dist/sparkle-core/p-cabe9139.js +1 -0
  818. package/dist/sparkle-core/p-cabfbf22.entry.js +1 -0
  819. package/dist/sparkle-core/p-cc518c36.entry.js +1 -0
  820. package/dist/sparkle-core/p-cffd4817.entry.js +1 -0
  821. package/dist/sparkle-core/p-d0adf726.entry.js +1 -0
  822. package/dist/sparkle-core/p-d20e4fcf.entry.js +1 -0
  823. package/dist/sparkle-core/p-d24e53ab.entry.js +1 -0
  824. package/dist/sparkle-core/p-d288e6c1.entry.js +1 -0
  825. package/dist/sparkle-core/p-d601810e.entry.js +1 -0
  826. package/dist/sparkle-core/p-d68092b7.js +4 -0
  827. package/dist/sparkle-core/p-da391f3f.js +1 -0
  828. package/dist/sparkle-core/p-de4deb61.entry.js +1 -0
  829. package/dist/sparkle-core/p-e0cad1bb.js +1 -0
  830. package/dist/sparkle-core/p-e249aebf.entry.js +1 -0
  831. package/dist/sparkle-core/p-e3e36ce9.entry.js +1 -0
  832. package/dist/sparkle-core/p-e421d638.entry.js +1 -0
  833. package/dist/sparkle-core/p-e686d8b5.entry.js +4 -0
  834. package/dist/sparkle-core/p-e8988989.entry.js +1 -0
  835. package/dist/sparkle-core/p-e9431eeb.js +7 -0
  836. package/dist/sparkle-core/p-ea962e1b.entry.js +1 -0
  837. package/dist/sparkle-core/p-eaa8bbee.js +4 -0
  838. package/dist/sparkle-core/p-ebd4354b.entry.js +1 -0
  839. package/dist/sparkle-core/p-ee1e0eb4.js +2 -0
  840. package/dist/sparkle-core/p-ef4edc48.entry.js +4 -0
  841. package/dist/sparkle-core/p-f196c124.entry.js +7 -0
  842. package/dist/sparkle-core/p-f3cba72a.js +4 -0
  843. package/dist/sparkle-core/p-f47fe1fe.entry.js +1 -0
  844. package/dist/sparkle-core/p-f714f77a.entry.js +1 -0
  845. package/dist/sparkle-core/p-f891c79a.entry.js +1 -0
  846. package/dist/sparkle-core/p-fb0ca75e.entry.js +5 -0
  847. package/dist/sparkle-core/p-fb757951.entry.js +1 -0
  848. package/dist/sparkle-core/p-fd8d0738.entry.js +4 -0
  849. package/dist/sparkle-core/p-fda95b6e.entry.js +1 -0
  850. package/dist/sparkle-core/p-fe6dc976.entry.js +1 -0
  851. package/dist/sparkle-core/p-ff080f82.entry.js +10 -0
  852. package/dist/sparkle-core/p-ff7a8a71.js +4 -0
  853. package/dist/sparkle-core/sparkle-core.css +1 -2660
  854. package/dist/sparkle-core/sparkle-core.esm.js +1 -130
  855. package/package.json +2 -2
  856. package/dist/sparkle-core/PrivateRoute-a12e7ee5.js +0 -37
  857. package/dist/sparkle-core/account.service-e711795d.js +0 -63
  858. package/dist/sparkle-core/active-router-af86c9b4.js +0 -73
  859. package/dist/sparkle-core/animation-676a644d.js +0 -984
  860. package/dist/sparkle-core/app-globals-9ffa9ec3.js +0 -10
  861. package/dist/sparkle-core/appdata.service-703dff70.js +0 -69
  862. package/dist/sparkle-core/assets/user.png +0 -0
  863. package/dist/sparkle-core/assets.service-6508aae6.js +0 -71
  864. package/dist/sparkle-core/assignment.service-e42e9368.js +0 -17
  865. package/dist/sparkle-core/button-active-d68c5eb7.js +0 -67
  866. package/dist/sparkle-core/compass-svg.entry.js +0 -128
  867. package/dist/sparkle-core/context-consumer.entry.js +0 -25
  868. package/dist/sparkle-core/course-select.entry.js +0 -26
  869. package/dist/sparkle-core/css-shim-04165e59.js +0 -4
  870. package/dist/sparkle-core/dom-26e7cb2c.js +0 -73
  871. package/dist/sparkle-core/dom-utils-8e73e88b.js +0 -55
  872. package/dist/sparkle-core/facilitator.service-00a88935.js +0 -79
  873. package/dist/sparkle-core/facilitator.store-01be0386.js +0 -18
  874. package/dist/sparkle-core/feed.service-d495f3e1.js +0 -53
  875. package/dist/sparkle-core/framework-delegate-d3fa493f.js +0 -107
  876. package/dist/sparkle-core/haptic-a9e94599.js +0 -124
  877. package/dist/sparkle-core/header-mobile-collapse.entry.js +0 -86
  878. package/dist/sparkle-core/helpers-f11f0674.js +0 -406
  879. package/dist/sparkle-core/icons-758d1417.js +0 -41
  880. package/dist/sparkle-core/index-05b398c2.js +0 -34
  881. package/dist/sparkle-core/index-0af0deac.js +0 -312
  882. package/dist/sparkle-core/index-0df264ee.js +0 -4518
  883. package/dist/sparkle-core/index-183cda39.js +0 -223
  884. package/dist/sparkle-core/index-18a69883.js +0 -1336
  885. package/dist/sparkle-core/index-1d7a6fa0.js +0 -269
  886. package/dist/sparkle-core/index-1dec9544.js +0 -3064
  887. package/dist/sparkle-core/index-81dab78f.js +0 -85
  888. package/dist/sparkle-core/index-9b5bcea1.js +0 -22
  889. package/dist/sparkle-core/index-bb469fe3.js +0 -128
  890. package/dist/sparkle-core/index-d2990a48.js +0 -184
  891. package/dist/sparkle-core/index-dd414b33.js +0 -653
  892. package/dist/sparkle-core/index-faeec85a.js +0 -8
  893. package/dist/sparkle-core/index.es-1f6eedc5.js +0 -11066
  894. package/dist/sparkle-core/input-shims-0b2f5522.js +0 -418
  895. package/dist/sparkle-core/ion-accordion-group.entry.js +0 -201
  896. package/dist/sparkle-core/ion-accordion.entry.js +0 -332
  897. package/dist/sparkle-core/ion-action-sheet.entry.js +0 -263
  898. package/dist/sparkle-core/ion-alert.entry.js +0 -448
  899. package/dist/sparkle-core/ion-app.entry.js +0 -75
  900. package/dist/sparkle-core/ion-avatar.entry.js +0 -21
  901. package/dist/sparkle-core/ion-back-button.entry.js +0 -90
  902. package/dist/sparkle-core/ion-backdrop.entry.js +0 -63
  903. package/dist/sparkle-core/ion-badge.entry.js +0 -25
  904. package/dist/sparkle-core/ion-breadcrumb.entry.js +0 -91
  905. package/dist/sparkle-core/ion-breadcrumbs.entry.js +0 -129
  906. package/dist/sparkle-core/ion-button.entry.js +0 -125
  907. package/dist/sparkle-core/ion-buttons.entry.js +0 -38
  908. package/dist/sparkle-core/ion-card-content.entry.js +0 -26
  909. package/dist/sparkle-core/ion-card-header.entry.js +0 -33
  910. package/dist/sparkle-core/ion-card-subtitle.entry.js +0 -26
  911. package/dist/sparkle-core/ion-card-title.entry.js +0 -26
  912. package/dist/sparkle-core/ion-card.entry.js +0 -64
  913. package/dist/sparkle-core/ion-checkbox.entry.js +0 -109
  914. package/dist/sparkle-core/ion-chip.entry.js +0 -36
  915. package/dist/sparkle-core/ion-col.entry.js +0 -121
  916. package/dist/sparkle-core/ion-content.entry.js +0 -319
  917. package/dist/sparkle-core/ion-datetime-button.entry.js +0 -308
  918. package/dist/sparkle-core/ion-datetime.entry.js +0 -1619
  919. package/dist/sparkle-core/ion-fab-button.entry.js +0 -104
  920. package/dist/sparkle-core/ion-fab-list.entry.js +0 -41
  921. package/dist/sparkle-core/ion-fab.entry.js +0 -72
  922. package/dist/sparkle-core/ion-footer.entry.js +0 -116
  923. package/dist/sparkle-core/ion-grid.entry.js +0 -24
  924. package/dist/sparkle-core/ion-header.entry.js +0 -341
  925. package/dist/sparkle-core/ion-icon.entry.js +0 -200
  926. package/dist/sparkle-core/ion-img.entry.js +0 -97
  927. package/dist/sparkle-core/ion-infinite-scroll-content.entry.js +0 -33
  928. package/dist/sparkle-core/ion-infinite-scroll.entry.js +0 -202
  929. package/dist/sparkle-core/ion-input.entry.js +0 -293
  930. package/dist/sparkle-core/ion-item-divider.entry.js +0 -36
  931. package/dist/sparkle-core/ion-item-group.entry.js +0 -27
  932. package/dist/sparkle-core/ion-item-option.entry.js +0 -56
  933. package/dist/sparkle-core/ion-item-options.entry.js +0 -43
  934. package/dist/sparkle-core/ion-item-sliding.entry.js +0 -394
  935. package/dist/sparkle-core/ion-item.entry.js +0 -267
  936. package/dist/sparkle-core/ion-label.entry.js +0 -77
  937. package/dist/sparkle-core/ion-list-header.entry.js +0 -27
  938. package/dist/sparkle-core/ion-list.entry.js +0 -48
  939. package/dist/sparkle-core/ion-loading.entry.js +0 -211
  940. package/dist/sparkle-core/ion-menu-button.entry.js +0 -72
  941. package/dist/sparkle-core/ion-menu-toggle.entry.js +0 -43
  942. package/dist/sparkle-core/ion-menu.entry.js +0 -575
  943. package/dist/sparkle-core/ion-modal.entry.js +0 -1706
  944. package/dist/sparkle-core/ion-nav-link.entry.js +0 -43
  945. package/dist/sparkle-core/ion-nav.entry.js +0 -872
  946. package/dist/sparkle-core/ion-note.entry.js +0 -25
  947. package/dist/sparkle-core/ion-picker-column-internal.entry.js +0 -363
  948. package/dist/sparkle-core/ion-picker-column.entry.js +0 -327
  949. package/dist/sparkle-core/ion-picker-internal.entry.js +0 -454
  950. package/dist/sparkle-core/ion-picker.entry.js +0 -217
  951. package/dist/sparkle-core/ion-popover.entry.js +0 -1362
  952. package/dist/sparkle-core/ion-progress-bar.entry.js +0 -70
  953. package/dist/sparkle-core/ion-radio-group.entry.js +0 -121
  954. package/dist/sparkle-core/ion-radio.entry.js +0 -111
  955. package/dist/sparkle-core/ion-range.entry.js +0 -511
  956. package/dist/sparkle-core/ion-refresher-content.entry.js +0 -31
  957. package/dist/sparkle-core/ion-refresher.entry.js +0 -798
  958. package/dist/sparkle-core/ion-reorder-group.entry.js +0 -277
  959. package/dist/sparkle-core/ion-reorder.entry.js +0 -34
  960. package/dist/sparkle-core/ion-ripple-effect.entry.js +0 -89
  961. package/dist/sparkle-core/ion-route-redirect.entry.js +0 -20
  962. package/dist/sparkle-core/ion-route.entry.js +0 -45
  963. package/dist/sparkle-core/ion-router-link.entry.js +0 -34
  964. package/dist/sparkle-core/ion-router-outlet.entry.js +0 -196
  965. package/dist/sparkle-core/ion-router.entry.js +0 -827
  966. package/dist/sparkle-core/ion-row.entry.js +0 -16
  967. package/dist/sparkle-core/ion-searchbar.entry.js +0 -366
  968. package/dist/sparkle-core/ion-segment-button.entry.js +0 -98
  969. package/dist/sparkle-core/ion-segment.entry.js +0 -415
  970. package/dist/sparkle-core/ion-select-option.entry.js +0 -23
  971. package/dist/sparkle-core/ion-select-popover.entry.js +0 -96
  972. package/dist/sparkle-core/ion-select.entry.js +0 -510
  973. package/dist/sparkle-core/ion-skeleton-text.entry.js +0 -29
  974. package/dist/sparkle-core/ion-slide.entry.js +0 -21
  975. package/dist/sparkle-core/ion-slides.entry.js +0 -387
  976. package/dist/sparkle-core/ion-spinner.entry.js +0 -60
  977. package/dist/sparkle-core/ion-split-pane.entry.js +0 -156
  978. package/dist/sparkle-core/ion-tab-bar.entry.js +0 -71
  979. package/dist/sparkle-core/ion-tab-button.entry.js +0 -99
  980. package/dist/sparkle-core/ion-tab.entry.js +0 -63
  981. package/dist/sparkle-core/ion-tabs.entry.js +0 -150
  982. package/dist/sparkle-core/ion-text.entry.js +0 -20
  983. package/dist/sparkle-core/ion-textarea.entry.js +0 -244
  984. package/dist/sparkle-core/ion-thumbnail.entry.js +0 -16
  985. package/dist/sparkle-core/ion-title.entry.js +0 -48
  986. package/dist/sparkle-core/ion-toast.entry.js +0 -268
  987. package/dist/sparkle-core/ion-toggle.entry.js +0 -173
  988. package/dist/sparkle-core/ion-toolbar.entry.js +0 -70
  989. package/dist/sparkle-core/ion-virtual-scroll.entry.js +0 -551
  990. package/dist/sparkle-core/ionic-global-127576f6.js +0 -226
  991. package/dist/sparkle-core/ios.transition-02531dda.js +0 -479
  992. package/dist/sparkle-core/location-utils-fea12957.js +0 -229
  993. package/dist/sparkle-core/match-path-760e1797.js +0 -343
  994. package/dist/sparkle-core/md.transition-f8765467.js +0 -55
  995. package/dist/sparkle-core/media.service-2609406e.js +0 -36
  996. package/dist/sparkle-core/menu-toggle-util-6cc13cbd.js +0 -12
  997. package/dist/sparkle-core/overlays-fd3cfa13.js +0 -493
  998. package/dist/sparkle-core/parse-60474840.js +0 -1196
  999. package/dist/sparkle-core/purify-d9093094.js +0 -1469
  1000. package/dist/sparkle-core/quiz.model-1cff62e4.js +0 -5
  1001. package/dist/sparkle-core/shadow-css-1257b266.js +0 -387
  1002. package/dist/sparkle-core/signalR.service-2b7645c1.js +0 -2983
  1003. package/dist/sparkle-core/sparkle-animation-player.entry.js +0 -513
  1004. package/dist/sparkle-core/sparkle-assignment.entry.js +0 -114
  1005. package/dist/sparkle-core/sparkle-button.entry.js +0 -24
  1006. package/dist/sparkle-core/sparkle-card.entry.js +0 -61
  1007. package/dist/sparkle-core/sparkle-cards.entry.js +0 -15
  1008. package/dist/sparkle-core/sparkle-character-intro.entry.js +0 -22
  1009. package/dist/sparkle-core/sparkle-code.entry.js +0 -39
  1010. package/dist/sparkle-core/sparkle-compass-post.entry.js +0 -129
  1011. package/dist/sparkle-core/sparkle-compass.entry.js +0 -122
  1012. package/dist/sparkle-core/sparkle-course-root.entry.js +0 -155
  1013. package/dist/sparkle-core/sparkle-discussion-questions.entry.js +0 -122
  1014. package/dist/sparkle-core/sparkle-discussion-results.entry.js +0 -189
  1015. package/dist/sparkle-core/sparkle-discussion.entry.js +0 -52
  1016. package/dist/sparkle-core/sparkle-dropdown.entry.js +0 -57
  1017. package/dist/sparkle-core/sparkle-emoji.entry.js +0 -77
  1018. package/dist/sparkle-core/sparkle-export-lessons.entry.js +0 -10081
  1019. package/dist/sparkle-core/sparkle-facilitator-dashboard.entry.js +0 -93
  1020. package/dist/sparkle-core/sparkle-facilitator-header.entry.js +0 -60
  1021. package/dist/sparkle-core/sparkle-facilitator-notes-form.entry.js +0 -160
  1022. package/dist/sparkle-core/sparkle-facilitator-notes.entry.js +0 -65
  1023. package/dist/sparkle-core/sparkle-facilitator-page.entry.js +0 -198
  1024. package/dist/sparkle-core/sparkle-feed-post.entry.js +0 -131
  1025. package/dist/sparkle-core/sparkle-feedback.entry.js +0 -106
  1026. package/dist/sparkle-core/sparkle-file-upload.entry.js +0 -57
  1027. package/dist/sparkle-core/sparkle-forgot-password.entry.js +0 -80
  1028. package/dist/sparkle-core/sparkle-goal-form.entry.js +0 -182
  1029. package/dist/sparkle-core/sparkle-goal-item.entry.js +0 -15
  1030. package/dist/sparkle-core/sparkle-goal-progress.entry.js +0 -15
  1031. package/dist/sparkle-core/sparkle-goals.entry.js +0 -47
  1032. package/dist/sparkle-core/sparkle-gww-comment-list.entry.js +0 -22
  1033. package/dist/sparkle-core/sparkle-gww-graph.entry.js +0 -15
  1034. package/dist/sparkle-core/sparkle-gww-item.entry.js +0 -80
  1035. package/dist/sparkle-core/sparkle-gww.entry.js +0 -44
  1036. package/dist/sparkle-core/sparkle-header.entry.js +0 -97
  1037. package/dist/sparkle-core/sparkle-health.entry.js +0 -70
  1038. package/dist/sparkle-core/sparkle-input.entry.js +0 -52
  1039. package/dist/sparkle-core/sparkle-intro.entry.js +0 -22
  1040. package/dist/sparkle-core/sparkle-login.entry.js +0 -116
  1041. package/dist/sparkle-core/sparkle-lower-content-nav.entry.js +0 -18
  1042. package/dist/sparkle-core/sparkle-menu-collapsible.entry.js +0 -42
  1043. package/dist/sparkle-core/sparkle-menu-toggle.entry.js +0 -24
  1044. package/dist/sparkle-core/sparkle-menu.entry.js +0 -26
  1045. package/dist/sparkle-core/sparkle-modal-image.entry.js +0 -33
  1046. package/dist/sparkle-core/sparkle-mood.entry.js +0 -76
  1047. package/dist/sparkle-core/sparkle-nav.entry.js +0 -113
  1048. package/dist/sparkle-core/sparkle-notfound-page.entry.js +0 -25
  1049. package/dist/sparkle-core/sparkle-online-students.entry.js +0 -55
  1050. package/dist/sparkle-core/sparkle-overlay.entry.js +0 -90
  1051. package/dist/sparkle-core/sparkle-page-footer.entry.js +0 -24
  1052. package/dist/sparkle-core/sparkle-page.entry.js +0 -245
  1053. package/dist/sparkle-core/sparkle-pagination.entry.js +0 -67
  1054. package/dist/sparkle-core/sparkle-poll.entry.js +0 -15
  1055. package/dist/sparkle-core/sparkle-quiz-container.entry.js +0 -43
  1056. package/dist/sparkle-core/sparkle-quiz-feedback.entry.js +0 -18
  1057. package/dist/sparkle-core/sparkle-quiz-input.entry.js +0 -16
  1058. package/dist/sparkle-core/sparkle-quiz-old.entry.js +0 -116
  1059. package/dist/sparkle-core/sparkle-quiz-opinion.entry.js +0 -41
  1060. package/dist/sparkle-core/sparkle-quiz-poll.entry.js +0 -16
  1061. package/dist/sparkle-core/sparkle-quiz-select.entry.js +0 -29
  1062. package/dist/sparkle-core/sparkle-quiz.entry.js +0 -98
  1063. package/dist/sparkle-core/sparkle-reset-password.entry.js +0 -96
  1064. package/dist/sparkle-core/sparkle-root.entry.js +0 -79
  1065. package/dist/sparkle-core/sparkle-select.entry.js +0 -57
  1066. package/dist/sparkle-core/sparkle-sidebar.entry.js +0 -39
  1067. package/dist/sparkle-core/sparkle-signup.entry.js +0 -144
  1068. package/dist/sparkle-core/sparkle-tab.entry.js +0 -22
  1069. package/dist/sparkle-core/sparkle-table-of-contents.entry.js +0 -67
  1070. package/dist/sparkle-core/sparkle-tabs.entry.js +0 -62
  1071. package/dist/sparkle-core/sparkle-unauthorized.entry.js +0 -17
  1072. package/dist/sparkle-core/sparkle-user-enrollment.entry.js +0 -85
  1073. package/dist/sparkle-core/sparkle-user-profile.entry.js +0 -129
  1074. package/dist/sparkle-core/sparkle-validation-error.entry.js +0 -17
  1075. package/dist/sparkle-core/sparkle-video-player.entry.js +0 -18
  1076. package/dist/sparkle-core/sparkle-youtube.entry.js +0 -35
  1077. package/dist/sparkle-core/status-tap-52feb1b1.js +0 -40
  1078. package/dist/sparkle-core/stencil-async-content.entry.js +0 -28
  1079. package/dist/sparkle-core/stencil-route-link.entry.js +0 -74
  1080. package/dist/sparkle-core/stencil-route-switch.entry.js +0 -100
  1081. package/dist/sparkle-core/stencil-route-title.entry.js +0 -28
  1082. package/dist/sparkle-core/stencil-route.entry.js +0 -93
  1083. package/dist/sparkle-core/stencil-router-prompt.entry.js +0 -55
  1084. package/dist/sparkle-core/stencil-router-redirect.entry.js +0 -28
  1085. package/dist/sparkle-core/stencil-router.entry.js +0 -636
  1086. package/dist/sparkle-core/store.service-0f7d998b.js +0 -16
  1087. package/dist/sparkle-core/student.service-f0375229.js +0 -59
  1088. package/dist/sparkle-core/swipe-back-9a614189.js +0 -73
  1089. package/dist/sparkle-core/swiper.bundle-4274e115.js +0 -6418
  1090. package/dist/sparkle-core/user.store-3d052406.js +0 -19
  1091. package/dist/sparkle-core/util-ba470e54.js +0 -14683
  1092. package/dist/sparkle-core/utils-cae23bce.js +0 -114
  1093. /package/dist/{sparkle-core → esm}/cubic-bezier-4c0db14f.js +0 -0
  1094. /package/dist/{sparkle-core → esm}/focus-visible-4e9a0764.js +0 -0
  1095. /package/dist/{sparkle-core → esm}/hardware-back-button-fa04d6e9.js +0 -0
  1096. /package/dist/{sparkle-core → esm}/index-be6112f8.js +0 -0
  1097. /package/dist/{sparkle-core → esm}/keyboard-7e8329b3.js +0 -0
  1098. /package/dist/{sparkle-core → esm}/localstorage.service-4bf408c8.js +0 -0
  1099. /package/dist/{sparkle-core → esm}/spinner-configs-a37e628a.js +0 -0
  1100. /package/dist/{sparkle-core → esm}/theme-7ef00c83.js +0 -0
@@ -0,0 +1,1888 @@
1
+ const NAMESPACE = 'sparkle-core';
2
+
3
+ let scopeId;
4
+ let contentRef;
5
+ let hostTagName;
6
+ let useNativeShadowDom = false;
7
+ let checkSlotFallbackVisibility = false;
8
+ let checkSlotRelocate = false;
9
+ let isSvgMode = false;
10
+ let renderingRef = null;
11
+ let queuePending = false;
12
+ const win = typeof window !== 'undefined' ? window : {};
13
+ const doc = win.document || { head: {} };
14
+ const plt = {
15
+ $flags$: 0,
16
+ $resourcesUrl$: '',
17
+ jmp: (h) => h(),
18
+ raf: (h) => requestAnimationFrame(h),
19
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
20
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
21
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
22
+ };
23
+ const setPlatformHelpers = (helpers) => {
24
+ Object.assign(plt, helpers);
25
+ };
26
+ const promiseResolve = (v) => Promise.resolve(v);
27
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
28
+ try {
29
+ new CSSStyleSheet();
30
+ return typeof new CSSStyleSheet().replaceSync === 'function';
31
+ }
32
+ catch (e) { }
33
+ return false;
34
+ })()
35
+ ;
36
+ const Context = {};
37
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
38
+ if (listeners) {
39
+ listeners.map(([flags, name, method]) => {
40
+ const target = getHostListenerTarget(elm, flags) ;
41
+ const handler = hostListenerProxy(hostRef, method);
42
+ const opts = hostListenerOpts(flags);
43
+ plt.ael(target, name, handler, opts);
44
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
45
+ });
46
+ }
47
+ };
48
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
49
+ try {
50
+ {
51
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
52
+ // instance is ready, let's call it's member method for this event
53
+ hostRef.$lazyInstance$[methodName](ev);
54
+ }
55
+ else {
56
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
57
+ }
58
+ }
59
+ }
60
+ catch (e) {
61
+ consoleError(e);
62
+ }
63
+ };
64
+ const getHostListenerTarget = (elm, flags) => {
65
+ if (flags & 4 /* TargetDocument */)
66
+ return doc;
67
+ if (flags & 8 /* TargetWindow */)
68
+ return win;
69
+ if (flags & 16 /* TargetBody */)
70
+ return doc.body;
71
+ return elm;
72
+ };
73
+ // prettier-ignore
74
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
75
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
76
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
77
+ const createTime = (fnName, tagName = '') => {
78
+ {
79
+ return () => {
80
+ return;
81
+ };
82
+ }
83
+ };
84
+ const uniqueTime = (key, measureText) => {
85
+ {
86
+ return () => {
87
+ return;
88
+ };
89
+ }
90
+ };
91
+ const rootAppliedStyles = new WeakMap();
92
+ const registerStyle = (scopeId, cssText, allowCS) => {
93
+ let style = styles.get(scopeId);
94
+ if (supportsConstructableStylesheets && allowCS) {
95
+ style = (style || new CSSStyleSheet());
96
+ if (typeof style === 'string') {
97
+ style = cssText;
98
+ }
99
+ else {
100
+ style.replaceSync(cssText);
101
+ }
102
+ }
103
+ else {
104
+ style = cssText;
105
+ }
106
+ styles.set(scopeId, style);
107
+ };
108
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
109
+ let scopeId = getScopeId(cmpMeta, mode);
110
+ const style = styles.get(scopeId);
111
+ // if an element is NOT connected then getRootNode() will return the wrong root node
112
+ // so the fallback is to always use the document for the root node in those cases
113
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
114
+ if (style) {
115
+ if (typeof style === 'string') {
116
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
117
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
118
+ let styleElm;
119
+ if (!appliedStyles) {
120
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
121
+ }
122
+ if (!appliedStyles.has(scopeId)) {
123
+ {
124
+ {
125
+ styleElm = doc.createElement('style');
126
+ styleElm.innerHTML = style;
127
+ }
128
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
129
+ }
130
+ if (appliedStyles) {
131
+ appliedStyles.add(scopeId);
132
+ }
133
+ }
134
+ }
135
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
136
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
137
+ }
138
+ }
139
+ return scopeId;
140
+ };
141
+ const attachStyles = (hostRef) => {
142
+ const cmpMeta = hostRef.$cmpMeta$;
143
+ const elm = hostRef.$hostElement$;
144
+ const flags = cmpMeta.$flags$;
145
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
146
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
147
+ if (flags & 10 /* needsScopedEncapsulation */) {
148
+ // only required when we're NOT using native shadow dom (slot)
149
+ // or this browser doesn't support native shadow dom
150
+ // and this host element was NOT created with SSR
151
+ // let's pick out the inner content for slot projection
152
+ // create a node to represent where the original
153
+ // content was first placed, which is useful later on
154
+ // DOM WRITE!!
155
+ elm['s-sc'] = scopeId;
156
+ elm.classList.add(scopeId + '-h');
157
+ if (flags & 2 /* scopedCssEncapsulation */) {
158
+ elm.classList.add(scopeId + '-s');
159
+ }
160
+ }
161
+ endAttachStyles();
162
+ };
163
+ const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
164
+ // Private
165
+ const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
166
+ // Public
167
+ const setMode = (handler) => modeResolutionChain.push(handler);
168
+ const getMode = (ref) => getHostRef(ref).$modeName$;
169
+ /**
170
+ * Default style mode id
171
+ */
172
+ /**
173
+ * Reusable empty obj/array
174
+ * Don't add values to these!!
175
+ */
176
+ const EMPTY_OBJ = {};
177
+ /**
178
+ * Namespaces
179
+ */
180
+ const SVG_NS = 'http://www.w3.org/2000/svg';
181
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
182
+ const isDef = (v) => v != null;
183
+ const isComplexType = (o) => {
184
+ // https://jsperf.com/typeof-fn-object/5
185
+ o = typeof o;
186
+ return o === 'object' || o === 'function';
187
+ };
188
+ /**
189
+ * Production h() function based on Preact by
190
+ * Jason Miller (@developit)
191
+ * Licensed under the MIT License
192
+ * https://github.com/developit/preact/blob/master/LICENSE
193
+ *
194
+ * Modified for Stencil's compiler and vdom
195
+ */
196
+ // const stack: any[] = [];
197
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
198
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
199
+ const h = (nodeName, vnodeData, ...children) => {
200
+ let child = null;
201
+ let key = null;
202
+ let slotName = null;
203
+ let simple = false;
204
+ let lastSimple = false;
205
+ const vNodeChildren = [];
206
+ const walk = (c) => {
207
+ for (let i = 0; i < c.length; i++) {
208
+ child = c[i];
209
+ if (Array.isArray(child)) {
210
+ walk(child);
211
+ }
212
+ else if (child != null && typeof child !== 'boolean') {
213
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
214
+ child = String(child);
215
+ }
216
+ if (simple && lastSimple) {
217
+ // If the previous child was simple (string), we merge both
218
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
219
+ }
220
+ else {
221
+ // Append a new vNode, if it's text, we create a text vNode
222
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
223
+ }
224
+ lastSimple = simple;
225
+ }
226
+ }
227
+ };
228
+ walk(children);
229
+ if (vnodeData) {
230
+ // normalize class / classname attributes
231
+ if (vnodeData.key) {
232
+ key = vnodeData.key;
233
+ }
234
+ if (vnodeData.name) {
235
+ slotName = vnodeData.name;
236
+ }
237
+ {
238
+ const classData = vnodeData.className || vnodeData.class;
239
+ if (classData) {
240
+ vnodeData.class =
241
+ typeof classData !== 'object'
242
+ ? classData
243
+ : Object.keys(classData)
244
+ .filter((k) => classData[k])
245
+ .join(' ');
246
+ }
247
+ }
248
+ }
249
+ if (typeof nodeName === 'function') {
250
+ // nodeName is a functional component
251
+ return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
252
+ }
253
+ const vnode = newVNode(nodeName, null);
254
+ vnode.$attrs$ = vnodeData;
255
+ if (vNodeChildren.length > 0) {
256
+ vnode.$children$ = vNodeChildren;
257
+ }
258
+ {
259
+ vnode.$key$ = key;
260
+ }
261
+ {
262
+ vnode.$name$ = slotName;
263
+ }
264
+ return vnode;
265
+ };
266
+ const newVNode = (tag, text) => {
267
+ const vnode = {
268
+ $flags$: 0,
269
+ $tag$: tag,
270
+ $text$: text,
271
+ $elm$: null,
272
+ $children$: null,
273
+ };
274
+ {
275
+ vnode.$attrs$ = null;
276
+ }
277
+ {
278
+ vnode.$key$ = null;
279
+ }
280
+ {
281
+ vnode.$name$ = null;
282
+ }
283
+ return vnode;
284
+ };
285
+ const Host = {};
286
+ const isHost = (node) => node && node.$tag$ === Host;
287
+ const vdomFnUtils = {
288
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
289
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
290
+ };
291
+ const convertToPublic = (node) => ({
292
+ vattrs: node.$attrs$,
293
+ vchildren: node.$children$,
294
+ vkey: node.$key$,
295
+ vname: node.$name$,
296
+ vtag: node.$tag$,
297
+ vtext: node.$text$,
298
+ });
299
+ const convertToPrivate = (node) => {
300
+ if (typeof node.vtag === 'function') {
301
+ const vnodeData = Object.assign({}, node.vattrs);
302
+ if (node.vkey) {
303
+ vnodeData.key = node.vkey;
304
+ }
305
+ if (node.vname) {
306
+ vnodeData.name = node.vname;
307
+ }
308
+ return h(node.vtag, vnodeData, ...(node.vchildren || []));
309
+ }
310
+ const vnode = newVNode(node.vtag, node.vtext);
311
+ vnode.$attrs$ = node.vattrs;
312
+ vnode.$children$ = node.vchildren;
313
+ vnode.$key$ = node.vkey;
314
+ vnode.$name$ = node.vname;
315
+ return vnode;
316
+ };
317
+ /**
318
+ * Production setAccessor() function based on Preact by
319
+ * Jason Miller (@developit)
320
+ * Licensed under the MIT License
321
+ * https://github.com/developit/preact/blob/master/LICENSE
322
+ *
323
+ * Modified for Stencil's compiler and vdom
324
+ */
325
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
326
+ if (oldValue !== newValue) {
327
+ let isProp = isMemberInElement(elm, memberName);
328
+ let ln = memberName.toLowerCase();
329
+ if (memberName === 'class') {
330
+ const classList = elm.classList;
331
+ const oldClasses = parseClassList(oldValue);
332
+ const newClasses = parseClassList(newValue);
333
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
334
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
335
+ }
336
+ else if (memberName === 'style') {
337
+ // update style attribute, css properties and values
338
+ {
339
+ for (const prop in oldValue) {
340
+ if (!newValue || newValue[prop] == null) {
341
+ if (prop.includes('-')) {
342
+ elm.style.removeProperty(prop);
343
+ }
344
+ else {
345
+ elm.style[prop] = '';
346
+ }
347
+ }
348
+ }
349
+ }
350
+ for (const prop in newValue) {
351
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
352
+ if (prop.includes('-')) {
353
+ elm.style.setProperty(prop, newValue[prop]);
354
+ }
355
+ else {
356
+ elm.style[prop] = newValue[prop];
357
+ }
358
+ }
359
+ }
360
+ }
361
+ else if (memberName === 'key')
362
+ ;
363
+ else if (memberName === 'ref') {
364
+ // minifier will clean this up
365
+ if (newValue) {
366
+ newValue(elm);
367
+ }
368
+ }
369
+ else if ((!isProp ) &&
370
+ memberName[0] === 'o' &&
371
+ memberName[1] === 'n') {
372
+ // Event Handlers
373
+ // so if the member name starts with "on" and the 3rd characters is
374
+ // a capital letter, and it's not already a member on the element,
375
+ // then we're assuming it's an event listener
376
+ if (memberName[2] === '-') {
377
+ // on- prefixed events
378
+ // allows to be explicit about the dom event to listen without any magic
379
+ // under the hood:
380
+ // <my-cmp on-click> // listens for "click"
381
+ // <my-cmp on-Click> // listens for "Click"
382
+ // <my-cmp on-ionChange> // listens for "ionChange"
383
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
384
+ memberName = memberName.slice(3);
385
+ }
386
+ else if (isMemberInElement(win, ln)) {
387
+ // standard event
388
+ // the JSX attribute could have been "onMouseOver" and the
389
+ // member name "onmouseover" is on the window's prototype
390
+ // so let's add the listener "mouseover", which is all lowercased
391
+ memberName = ln.slice(2);
392
+ }
393
+ else {
394
+ // custom event
395
+ // the JSX attribute could have been "onMyCustomEvent"
396
+ // so let's trim off the "on" prefix and lowercase the first character
397
+ // and add the listener "myCustomEvent"
398
+ // except for the first character, we keep the event name case
399
+ memberName = ln[2] + memberName.slice(3);
400
+ }
401
+ if (oldValue) {
402
+ plt.rel(elm, memberName, oldValue, false);
403
+ }
404
+ if (newValue) {
405
+ plt.ael(elm, memberName, newValue, false);
406
+ }
407
+ }
408
+ else {
409
+ // Set property if it exists and it's not a SVG
410
+ const isComplex = isComplexType(newValue);
411
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
412
+ try {
413
+ if (!elm.tagName.includes('-')) {
414
+ const n = newValue == null ? '' : newValue;
415
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
416
+ if (memberName === 'list') {
417
+ isProp = false;
418
+ }
419
+ else if (oldValue == null || elm[memberName] != n) {
420
+ elm[memberName] = n;
421
+ }
422
+ }
423
+ else {
424
+ elm[memberName] = newValue;
425
+ }
426
+ }
427
+ catch (e) { }
428
+ }
429
+ /**
430
+ * Need to manually update attribute if:
431
+ * - memberName is not an attribute
432
+ * - if we are rendering the host element in order to reflect attribute
433
+ * - if it's a SVG, since properties might not work in <svg>
434
+ * - if the newValue is null/undefined or 'false'.
435
+ */
436
+ let xlink = false;
437
+ {
438
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
439
+ memberName = ln;
440
+ xlink = true;
441
+ }
442
+ }
443
+ if (newValue == null || newValue === false) {
444
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
445
+ if (xlink) {
446
+ elm.removeAttributeNS(XLINK_NS, memberName);
447
+ }
448
+ else {
449
+ elm.removeAttribute(memberName);
450
+ }
451
+ }
452
+ }
453
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
454
+ newValue = newValue === true ? '' : newValue;
455
+ if (xlink) {
456
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
457
+ }
458
+ else {
459
+ elm.setAttribute(memberName, newValue);
460
+ }
461
+ }
462
+ }
463
+ }
464
+ };
465
+ const parseClassListRegex = /\s/;
466
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
467
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
468
+ // if the element passed in is a shadow root, which is a document fragment
469
+ // then we want to be adding attrs/props to the shadow root's "host" element
470
+ // if it's not a shadow root, then we add attrs/props to the same element
471
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
472
+ ? newVnode.$elm$.host
473
+ : newVnode.$elm$;
474
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
475
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
476
+ {
477
+ // remove attributes no longer present on the vnode by setting them to undefined
478
+ for (memberName in oldVnodeAttrs) {
479
+ if (!(memberName in newVnodeAttrs)) {
480
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
481
+ }
482
+ }
483
+ }
484
+ // add new & update changed attributes
485
+ for (memberName in newVnodeAttrs) {
486
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
487
+ }
488
+ };
489
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
490
+ // tslint:disable-next-line: prefer-const
491
+ const newVNode = newParentVNode.$children$[childIndex];
492
+ let i = 0;
493
+ let elm;
494
+ let childNode;
495
+ let oldVNode;
496
+ if (!useNativeShadowDom) {
497
+ // remember for later we need to check to relocate nodes
498
+ checkSlotRelocate = true;
499
+ if (newVNode.$tag$ === 'slot') {
500
+ if (scopeId) {
501
+ // scoped css needs to add its scoped id to the parent element
502
+ parentElm.classList.add(scopeId + '-s');
503
+ }
504
+ newVNode.$flags$ |= newVNode.$children$
505
+ ? // slot element has fallback content
506
+ 2 /* isSlotFallback */
507
+ : // slot element does not have fallback content
508
+ 1 /* isSlotReference */;
509
+ }
510
+ }
511
+ if (newVNode.$text$ !== null) {
512
+ // create text node
513
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
514
+ }
515
+ else if (newVNode.$flags$ & 1 /* isSlotReference */) {
516
+ // create a slot reference node
517
+ elm = newVNode.$elm$ =
518
+ doc.createTextNode('');
519
+ }
520
+ else {
521
+ if (!isSvgMode) {
522
+ isSvgMode = newVNode.$tag$ === 'svg';
523
+ }
524
+ // create element
525
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
526
+ ? 'slot-fb'
527
+ : newVNode.$tag$)
528
+ );
529
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
530
+ isSvgMode = false;
531
+ }
532
+ // add css classes, attrs, props, listeners, etc.
533
+ {
534
+ updateElement(null, newVNode, isSvgMode);
535
+ }
536
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
537
+ // if there is a scopeId and this is the initial render
538
+ // then let's add the scopeId as a css class
539
+ elm.classList.add((elm['s-si'] = scopeId));
540
+ }
541
+ if (newVNode.$children$) {
542
+ for (i = 0; i < newVNode.$children$.length; ++i) {
543
+ // create the node
544
+ childNode = createElm(oldParentVNode, newVNode, i, elm);
545
+ // return node could have been null
546
+ if (childNode) {
547
+ // append our new node
548
+ elm.appendChild(childNode);
549
+ }
550
+ }
551
+ }
552
+ {
553
+ if (newVNode.$tag$ === 'svg') {
554
+ // Only reset the SVG context when we're exiting <svg> element
555
+ isSvgMode = false;
556
+ }
557
+ else if (elm.tagName === 'foreignObject') {
558
+ // Reenter SVG context when we're exiting <foreignObject> element
559
+ isSvgMode = true;
560
+ }
561
+ }
562
+ }
563
+ {
564
+ elm['s-hn'] = hostTagName;
565
+ if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
566
+ // remember the content reference comment
567
+ elm['s-sr'] = true;
568
+ // remember the content reference comment
569
+ elm['s-cr'] = contentRef;
570
+ // remember the slot name, or empty string for default slot
571
+ elm['s-sn'] = newVNode.$name$ || '';
572
+ // check if we've got an old vnode for this slot
573
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
574
+ if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
575
+ // we've got an old slot vnode and the wrapper is being replaced
576
+ // so let's move the old slot content back to it's original location
577
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
578
+ }
579
+ }
580
+ }
581
+ return elm;
582
+ };
583
+ const putBackInOriginalLocation = (parentElm, recursive) => {
584
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
585
+ const oldSlotChildNodes = parentElm.childNodes;
586
+ for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
587
+ const childNode = oldSlotChildNodes[i];
588
+ if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
589
+ // // this child node in the old element is from another component
590
+ // // remove this node from the old slot's parent
591
+ // childNode.remove();
592
+ // and relocate it back to it's original location
593
+ parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
594
+ // remove the old original location comment entirely
595
+ // later on the patch function will know what to do
596
+ // and move this to the correct spot in need be
597
+ childNode['s-ol'].remove();
598
+ childNode['s-ol'] = undefined;
599
+ checkSlotRelocate = true;
600
+ }
601
+ if (recursive) {
602
+ putBackInOriginalLocation(childNode, recursive);
603
+ }
604
+ }
605
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
606
+ };
607
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
608
+ let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
609
+ let childNode;
610
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
611
+ containerElm = containerElm.shadowRoot;
612
+ }
613
+ for (; startIdx <= endIdx; ++startIdx) {
614
+ if (vnodes[startIdx]) {
615
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
616
+ if (childNode) {
617
+ vnodes[startIdx].$elm$ = childNode;
618
+ containerElm.insertBefore(childNode, referenceNode(before) );
619
+ }
620
+ }
621
+ }
622
+ };
623
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
624
+ for (; startIdx <= endIdx; ++startIdx) {
625
+ if ((vnode = vnodes[startIdx])) {
626
+ elm = vnode.$elm$;
627
+ callNodeRefs(vnode);
628
+ {
629
+ // we're removing this element
630
+ // so it's possible we need to show slot fallback content now
631
+ checkSlotFallbackVisibility = true;
632
+ if (elm['s-ol']) {
633
+ // remove the original location comment
634
+ elm['s-ol'].remove();
635
+ }
636
+ else {
637
+ // it's possible that child nodes of the node
638
+ // that's being removed are slot nodes
639
+ putBackInOriginalLocation(elm, true);
640
+ }
641
+ }
642
+ // remove the vnode's element from the dom
643
+ elm.remove();
644
+ }
645
+ }
646
+ };
647
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
648
+ let oldStartIdx = 0;
649
+ let newStartIdx = 0;
650
+ let idxInOld = 0;
651
+ let i = 0;
652
+ let oldEndIdx = oldCh.length - 1;
653
+ let oldStartVnode = oldCh[0];
654
+ let oldEndVnode = oldCh[oldEndIdx];
655
+ let newEndIdx = newCh.length - 1;
656
+ let newStartVnode = newCh[0];
657
+ let newEndVnode = newCh[newEndIdx];
658
+ let node;
659
+ let elmToMove;
660
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
661
+ if (oldStartVnode == null) {
662
+ // Vnode might have been moved left
663
+ oldStartVnode = oldCh[++oldStartIdx];
664
+ }
665
+ else if (oldEndVnode == null) {
666
+ oldEndVnode = oldCh[--oldEndIdx];
667
+ }
668
+ else if (newStartVnode == null) {
669
+ newStartVnode = newCh[++newStartIdx];
670
+ }
671
+ else if (newEndVnode == null) {
672
+ newEndVnode = newCh[--newEndIdx];
673
+ }
674
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
675
+ patch(oldStartVnode, newStartVnode);
676
+ oldStartVnode = oldCh[++oldStartIdx];
677
+ newStartVnode = newCh[++newStartIdx];
678
+ }
679
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
680
+ patch(oldEndVnode, newEndVnode);
681
+ oldEndVnode = oldCh[--oldEndIdx];
682
+ newEndVnode = newCh[--newEndIdx];
683
+ }
684
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
685
+ // Vnode moved right
686
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
687
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
688
+ }
689
+ patch(oldStartVnode, newEndVnode);
690
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
691
+ oldStartVnode = oldCh[++oldStartIdx];
692
+ newEndVnode = newCh[--newEndIdx];
693
+ }
694
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
695
+ // Vnode moved left
696
+ if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
697
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
698
+ }
699
+ patch(oldEndVnode, newStartVnode);
700
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
701
+ oldEndVnode = oldCh[--oldEndIdx];
702
+ newStartVnode = newCh[++newStartIdx];
703
+ }
704
+ else {
705
+ // createKeyToOldIdx
706
+ idxInOld = -1;
707
+ {
708
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
709
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
710
+ idxInOld = i;
711
+ break;
712
+ }
713
+ }
714
+ }
715
+ if (idxInOld >= 0) {
716
+ elmToMove = oldCh[idxInOld];
717
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
718
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
719
+ }
720
+ else {
721
+ patch(elmToMove, newStartVnode);
722
+ oldCh[idxInOld] = undefined;
723
+ node = elmToMove.$elm$;
724
+ }
725
+ newStartVnode = newCh[++newStartIdx];
726
+ }
727
+ else {
728
+ // new element
729
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
730
+ newStartVnode = newCh[++newStartIdx];
731
+ }
732
+ if (node) {
733
+ {
734
+ parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
735
+ }
736
+ }
737
+ }
738
+ }
739
+ if (oldStartIdx > oldEndIdx) {
740
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
741
+ }
742
+ else if (newStartIdx > newEndIdx) {
743
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
744
+ }
745
+ };
746
+ const isSameVnode = (vnode1, vnode2) => {
747
+ // compare if two vnode to see if they're "technically" the same
748
+ // need to have the same element tag, and same key to be the same
749
+ if (vnode1.$tag$ === vnode2.$tag$) {
750
+ if (vnode1.$tag$ === 'slot') {
751
+ return vnode1.$name$ === vnode2.$name$;
752
+ }
753
+ {
754
+ return vnode1.$key$ === vnode2.$key$;
755
+ }
756
+ }
757
+ return false;
758
+ };
759
+ const referenceNode = (node) => {
760
+ // this node was relocated to a new location in the dom
761
+ // because of some other component's slot
762
+ // but we still have an html comment in place of where
763
+ // it's original location was according to it's original vdom
764
+ return (node && node['s-ol']) || node;
765
+ };
766
+ const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
767
+ const patch = (oldVNode, newVNode) => {
768
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
769
+ const oldChildren = oldVNode.$children$;
770
+ const newChildren = newVNode.$children$;
771
+ const tag = newVNode.$tag$;
772
+ const text = newVNode.$text$;
773
+ let defaultHolder;
774
+ if (text === null) {
775
+ {
776
+ // test if we're rendering an svg element, or still rendering nodes inside of one
777
+ // only add this to the when the compiler sees we're using an svg somewhere
778
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
779
+ }
780
+ // element node
781
+ {
782
+ if (tag === 'slot')
783
+ ;
784
+ else {
785
+ // either this is the first render of an element OR it's an update
786
+ // AND we already know it's possible it could have changed
787
+ // this updates the element's css classes, attrs, props, listeners, etc.
788
+ updateElement(oldVNode, newVNode, isSvgMode);
789
+ }
790
+ }
791
+ if (oldChildren !== null && newChildren !== null) {
792
+ // looks like there's child vnodes for both the old and new vnodes
793
+ updateChildren(elm, oldChildren, newVNode, newChildren);
794
+ }
795
+ else if (newChildren !== null) {
796
+ // no old child vnodes, but there are new child vnodes to add
797
+ if (oldVNode.$text$ !== null) {
798
+ // the old vnode was text, so be sure to clear it out
799
+ elm.textContent = '';
800
+ }
801
+ // add the new vnode children
802
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
803
+ }
804
+ else if (oldChildren !== null) {
805
+ // no new child vnodes, but there are old child vnodes to remove
806
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
807
+ }
808
+ if (isSvgMode && tag === 'svg') {
809
+ isSvgMode = false;
810
+ }
811
+ }
812
+ else if ((defaultHolder = elm['s-cr'])) {
813
+ // this element has slotted content
814
+ defaultHolder.parentNode.textContent = text;
815
+ }
816
+ else if (oldVNode.$text$ !== text) {
817
+ // update the text content for the text only vnode
818
+ // and also only if the text is different than before
819
+ elm.data = text;
820
+ }
821
+ };
822
+ const updateFallbackSlotVisibility = (elm) => {
823
+ // tslint:disable-next-line: prefer-const
824
+ const childNodes = elm.childNodes;
825
+ let childNode;
826
+ let i;
827
+ let ilen;
828
+ let j;
829
+ let slotNameAttr;
830
+ let nodeType;
831
+ for (i = 0, ilen = childNodes.length; i < ilen; i++) {
832
+ childNode = childNodes[i];
833
+ if (childNode.nodeType === 1 /* ElementNode */) {
834
+ if (childNode['s-sr']) {
835
+ // this is a slot fallback node
836
+ // get the slot name for this slot reference node
837
+ slotNameAttr = childNode['s-sn'];
838
+ // by default always show a fallback slot node
839
+ // then hide it if there are other slots in the light dom
840
+ childNode.hidden = false;
841
+ for (j = 0; j < ilen; j++) {
842
+ nodeType = childNodes[j].nodeType;
843
+ if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
844
+ // this sibling node is from a different component OR is a named fallback slot node
845
+ if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
846
+ childNode.hidden = true;
847
+ break;
848
+ }
849
+ }
850
+ else {
851
+ // this is a default fallback slot node
852
+ // any element or text node (with content)
853
+ // should hide the default fallback slot node
854
+ if (nodeType === 1 /* ElementNode */ ||
855
+ (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
856
+ childNode.hidden = true;
857
+ break;
858
+ }
859
+ }
860
+ }
861
+ }
862
+ // keep drilling down
863
+ updateFallbackSlotVisibility(childNode);
864
+ }
865
+ }
866
+ };
867
+ const relocateNodes = [];
868
+ const relocateSlotContent = (elm) => {
869
+ // tslint:disable-next-line: prefer-const
870
+ let childNode;
871
+ let node;
872
+ let hostContentNodes;
873
+ let slotNameAttr;
874
+ let relocateNodeData;
875
+ let j;
876
+ let i = 0;
877
+ const childNodes = elm.childNodes;
878
+ const ilen = childNodes.length;
879
+ for (; i < ilen; i++) {
880
+ childNode = childNodes[i];
881
+ if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
882
+ // first got the content reference comment node
883
+ // then we got it's parent, which is where all the host content is in now
884
+ hostContentNodes = node.parentNode.childNodes;
885
+ slotNameAttr = childNode['s-sn'];
886
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
887
+ node = hostContentNodes[j];
888
+ if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
889
+ // let's do some relocating to its new home
890
+ // but never relocate a content reference node
891
+ // that is suppose to always represent the original content location
892
+ if (isNodeLocatedInSlot(node, slotNameAttr)) {
893
+ // it's possible we've already decided to relocate this node
894
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
895
+ // made some changes to slots
896
+ // let's make sure we also double check
897
+ // fallbacks are correctly hidden or shown
898
+ checkSlotFallbackVisibility = true;
899
+ node['s-sn'] = node['s-sn'] || slotNameAttr;
900
+ if (relocateNodeData) {
901
+ // previously we never found a slot home for this node
902
+ // but turns out we did, so let's remember it now
903
+ relocateNodeData.$slotRefNode$ = childNode;
904
+ }
905
+ else {
906
+ // add to our list of nodes to relocate
907
+ relocateNodes.push({
908
+ $slotRefNode$: childNode,
909
+ $nodeToRelocate$: node,
910
+ });
911
+ }
912
+ if (node['s-sr']) {
913
+ relocateNodes.map((relocateNode) => {
914
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
915
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
916
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
917
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
918
+ }
919
+ }
920
+ });
921
+ }
922
+ }
923
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
924
+ // so far this element does not have a slot home, not setting slotRefNode on purpose
925
+ // if we never find a home for this element then we'll need to hide it
926
+ relocateNodes.push({
927
+ $nodeToRelocate$: node,
928
+ });
929
+ }
930
+ }
931
+ }
932
+ }
933
+ if (childNode.nodeType === 1 /* ElementNode */) {
934
+ relocateSlotContent(childNode);
935
+ }
936
+ }
937
+ };
938
+ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
939
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
940
+ if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
941
+ return true;
942
+ }
943
+ if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
944
+ return true;
945
+ }
946
+ return false;
947
+ }
948
+ if (nodeToRelocate['s-sn'] === slotNameAttr) {
949
+ return true;
950
+ }
951
+ return slotNameAttr === '';
952
+ };
953
+ const callNodeRefs = (vNode) => {
954
+ {
955
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
956
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
957
+ }
958
+ };
959
+ const renderVdom = (hostRef, renderFnResults) => {
960
+ const hostElm = hostRef.$hostElement$;
961
+ const cmpMeta = hostRef.$cmpMeta$;
962
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
963
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
964
+ hostTagName = hostElm.tagName;
965
+ if (cmpMeta.$attrsToReflect$) {
966
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
967
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
968
+ }
969
+ rootVnode.$tag$ = null;
970
+ rootVnode.$flags$ |= 4 /* isHost */;
971
+ hostRef.$vnode$ = rootVnode;
972
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
973
+ {
974
+ scopeId = hostElm['s-sc'];
975
+ }
976
+ {
977
+ contentRef = hostElm['s-cr'];
978
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
979
+ // always reset
980
+ checkSlotFallbackVisibility = false;
981
+ }
982
+ // synchronous patch
983
+ patch(oldVNode, rootVnode);
984
+ {
985
+ // while we're moving nodes around existing nodes, temporarily disable
986
+ // the disconnectCallback from working
987
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
988
+ if (checkSlotRelocate) {
989
+ relocateSlotContent(rootVnode.$elm$);
990
+ let relocateData;
991
+ let nodeToRelocate;
992
+ let orgLocationNode;
993
+ let parentNodeRef;
994
+ let insertBeforeNode;
995
+ let refNode;
996
+ let i = 0;
997
+ for (; i < relocateNodes.length; i++) {
998
+ relocateData = relocateNodes[i];
999
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1000
+ if (!nodeToRelocate['s-ol']) {
1001
+ // add a reference node marking this node's original location
1002
+ // keep a reference to this node for later lookups
1003
+ orgLocationNode =
1004
+ doc.createTextNode('');
1005
+ orgLocationNode['s-nr'] = nodeToRelocate;
1006
+ nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1007
+ }
1008
+ }
1009
+ for (i = 0; i < relocateNodes.length; i++) {
1010
+ relocateData = relocateNodes[i];
1011
+ nodeToRelocate = relocateData.$nodeToRelocate$;
1012
+ if (relocateData.$slotRefNode$) {
1013
+ // by default we're just going to insert it directly
1014
+ // after the slot reference node
1015
+ parentNodeRef = relocateData.$slotRefNode$.parentNode;
1016
+ insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1017
+ orgLocationNode = nodeToRelocate['s-ol'];
1018
+ while ((orgLocationNode = orgLocationNode.previousSibling)) {
1019
+ refNode = orgLocationNode['s-nr'];
1020
+ if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1021
+ refNode = refNode.nextSibling;
1022
+ if (!refNode || !refNode['s-nr']) {
1023
+ insertBeforeNode = refNode;
1024
+ break;
1025
+ }
1026
+ }
1027
+ }
1028
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1029
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1030
+ // we've checked that it's worth while to relocate
1031
+ // since that the node to relocate
1032
+ // has a different next sibling or parent relocated
1033
+ if (nodeToRelocate !== insertBeforeNode) {
1034
+ if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1035
+ // probably a component in the index.html that doesn't have it's hostname set
1036
+ nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1037
+ }
1038
+ // add it back to the dom but in its new home
1039
+ parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1040
+ }
1041
+ }
1042
+ }
1043
+ else {
1044
+ // this node doesn't have a slot home to go to, so let's hide it
1045
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1046
+ nodeToRelocate.hidden = true;
1047
+ }
1048
+ }
1049
+ }
1050
+ }
1051
+ if (checkSlotFallbackVisibility) {
1052
+ updateFallbackSlotVisibility(rootVnode.$elm$);
1053
+ }
1054
+ // done moving nodes around
1055
+ // allow the disconnect callback to work again
1056
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1057
+ // always reset
1058
+ relocateNodes.length = 0;
1059
+ }
1060
+ };
1061
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
1062
+ const createEvent = (ref, name, flags) => {
1063
+ const elm = getElement(ref);
1064
+ return {
1065
+ emit: (detail) => {
1066
+ return emitEvent(elm, name, {
1067
+ bubbles: !!(flags & 4 /* Bubbles */),
1068
+ composed: !!(flags & 2 /* Composed */),
1069
+ cancelable: !!(flags & 1 /* Cancellable */),
1070
+ detail,
1071
+ });
1072
+ },
1073
+ };
1074
+ };
1075
+ /**
1076
+ * Helper function to create & dispatch a custom Event on a provided target
1077
+ * @param elm the target of the Event
1078
+ * @param name the name to give the custom Event
1079
+ * @param opts options for configuring a custom Event
1080
+ * @returns the custom Event
1081
+ */
1082
+ const emitEvent = (elm, name, opts) => {
1083
+ const ev = plt.ce(name, opts);
1084
+ elm.dispatchEvent(ev);
1085
+ return ev;
1086
+ };
1087
+ const attachToAncestor = (hostRef, ancestorComponent) => {
1088
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1089
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1090
+ }
1091
+ };
1092
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
1093
+ {
1094
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1095
+ }
1096
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1097
+ hostRef.$flags$ |= 512 /* needsRerender */;
1098
+ return;
1099
+ }
1100
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1101
+ // there is no ancestor component or the ancestor component
1102
+ // has already fired off its lifecycle update then
1103
+ // fire off the initial update
1104
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1105
+ return writeTask(dispatch) ;
1106
+ };
1107
+ const dispatchHooks = (hostRef, isInitialLoad) => {
1108
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1109
+ const instance = hostRef.$lazyInstance$ ;
1110
+ let promise;
1111
+ if (isInitialLoad) {
1112
+ {
1113
+ hostRef.$flags$ |= 256 /* isListenReady */;
1114
+ if (hostRef.$queuedListeners$) {
1115
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1116
+ hostRef.$queuedListeners$ = null;
1117
+ }
1118
+ }
1119
+ {
1120
+ promise = safeCall(instance, 'componentWillLoad');
1121
+ }
1122
+ }
1123
+ else {
1124
+ {
1125
+ promise = safeCall(instance, 'componentWillUpdate');
1126
+ }
1127
+ }
1128
+ {
1129
+ promise = then(promise, () => safeCall(instance, 'componentWillRender'));
1130
+ }
1131
+ endSchedule();
1132
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1133
+ };
1134
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1135
+ // updateComponent
1136
+ const elm = hostRef.$hostElement$;
1137
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1138
+ const rc = elm['s-rc'];
1139
+ if (isInitialLoad) {
1140
+ // DOM WRITE!
1141
+ attachStyles(hostRef);
1142
+ }
1143
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1144
+ {
1145
+ callRender(hostRef, instance);
1146
+ }
1147
+ if (rc) {
1148
+ // ok, so turns out there are some child host elements
1149
+ // waiting on this parent element to load
1150
+ // let's fire off all update callbacks waiting
1151
+ rc.map((cb) => cb());
1152
+ elm['s-rc'] = undefined;
1153
+ }
1154
+ endRender();
1155
+ endUpdate();
1156
+ {
1157
+ const childrenPromises = elm['s-p'];
1158
+ const postUpdate = () => postUpdateComponent(hostRef);
1159
+ if (childrenPromises.length === 0) {
1160
+ postUpdate();
1161
+ }
1162
+ else {
1163
+ Promise.all(childrenPromises).then(postUpdate);
1164
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1165
+ childrenPromises.length = 0;
1166
+ }
1167
+ }
1168
+ };
1169
+ const callRender = (hostRef, instance, elm) => {
1170
+ try {
1171
+ renderingRef = instance;
1172
+ instance = instance.render && instance.render();
1173
+ {
1174
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1175
+ }
1176
+ {
1177
+ hostRef.$flags$ |= 2 /* hasRendered */;
1178
+ }
1179
+ {
1180
+ {
1181
+ // looks like we've got child nodes to render into this host element
1182
+ // or we need to update the css class/attrs on the host element
1183
+ // DOM WRITE!
1184
+ {
1185
+ renderVdom(hostRef, instance);
1186
+ }
1187
+ }
1188
+ }
1189
+ }
1190
+ catch (e) {
1191
+ consoleError(e, hostRef.$hostElement$);
1192
+ }
1193
+ renderingRef = null;
1194
+ return null;
1195
+ };
1196
+ const getRenderingRef = () => renderingRef;
1197
+ const postUpdateComponent = (hostRef) => {
1198
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1199
+ const elm = hostRef.$hostElement$;
1200
+ const endPostUpdate = createTime('postUpdate', tagName);
1201
+ const instance = hostRef.$lazyInstance$ ;
1202
+ const ancestorComponent = hostRef.$ancestorComponent$;
1203
+ {
1204
+ safeCall(instance, 'componentDidRender');
1205
+ }
1206
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1207
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1208
+ {
1209
+ // DOM WRITE!
1210
+ addHydratedFlag(elm);
1211
+ }
1212
+ {
1213
+ safeCall(instance, 'componentDidLoad');
1214
+ }
1215
+ endPostUpdate();
1216
+ {
1217
+ hostRef.$onReadyResolve$(elm);
1218
+ if (!ancestorComponent) {
1219
+ appDidLoad();
1220
+ }
1221
+ }
1222
+ }
1223
+ else {
1224
+ {
1225
+ safeCall(instance, 'componentDidUpdate');
1226
+ }
1227
+ endPostUpdate();
1228
+ }
1229
+ {
1230
+ hostRef.$onInstanceResolve$(elm);
1231
+ }
1232
+ // load events fire from bottom to top
1233
+ // the deepest elements load first then bubbles up
1234
+ {
1235
+ if (hostRef.$onRenderResolve$) {
1236
+ hostRef.$onRenderResolve$();
1237
+ hostRef.$onRenderResolve$ = undefined;
1238
+ }
1239
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1240
+ nextTick(() => scheduleUpdate(hostRef, false));
1241
+ }
1242
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1243
+ }
1244
+ // ( •_•)
1245
+ // ( •_•)>⌐■-■
1246
+ // (⌐■_■)
1247
+ };
1248
+ const forceUpdate = (ref) => {
1249
+ {
1250
+ const hostRef = getHostRef(ref);
1251
+ const isConnected = hostRef.$hostElement$.isConnected;
1252
+ if (isConnected &&
1253
+ (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1254
+ scheduleUpdate(hostRef, false);
1255
+ }
1256
+ // Returns "true" when the forced update was successfully scheduled
1257
+ return isConnected;
1258
+ }
1259
+ };
1260
+ const appDidLoad = (who) => {
1261
+ // on appload
1262
+ // we have finish the first big initial render
1263
+ {
1264
+ addHydratedFlag(doc.documentElement);
1265
+ }
1266
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1267
+ };
1268
+ const safeCall = (instance, method, arg) => {
1269
+ if (instance && instance[method]) {
1270
+ try {
1271
+ return instance[method](arg);
1272
+ }
1273
+ catch (e) {
1274
+ consoleError(e);
1275
+ }
1276
+ }
1277
+ return undefined;
1278
+ };
1279
+ const then = (promise, thenFn) => {
1280
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1281
+ };
1282
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1283
+ ;
1284
+ /**
1285
+ * Parse a new property value for a given property type.
1286
+ *
1287
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1288
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1289
+ * 1. `any`, the type given to `propValue` in the function signature
1290
+ * 2. the type stored from `propType`.
1291
+ *
1292
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1293
+ *
1294
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1295
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1296
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1297
+ * ```tsx
1298
+ * <my-cmp prop-val={0}></my-cmp>
1299
+ * ```
1300
+ *
1301
+ * HTML prop values on the other hand, will always a string
1302
+ *
1303
+ * @param propValue the new value to coerce to some type
1304
+ * @param propType the type of the prop, expressed as a binary number
1305
+ * @returns the parsed/coerced value
1306
+ */
1307
+ const parsePropertyValue = (propValue, propType) => {
1308
+ // ensure this value is of the correct prop type
1309
+ if (propValue != null && !isComplexType(propValue)) {
1310
+ if (propType & 4 /* Boolean */) {
1311
+ // per the HTML spec, any string value means it is a boolean true value
1312
+ // but we'll cheat here and say that the string "false" is the boolean false
1313
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
1314
+ }
1315
+ if (propType & 2 /* Number */) {
1316
+ // force it to be a number
1317
+ return parseFloat(propValue);
1318
+ }
1319
+ if (propType & 1 /* String */) {
1320
+ // could have been passed as a number or boolean
1321
+ // but we still want it as a string
1322
+ return String(propValue);
1323
+ }
1324
+ // redundant return here for better minification
1325
+ return propValue;
1326
+ }
1327
+ // not sure exactly what type we want
1328
+ // so no need to change to a different type
1329
+ return propValue;
1330
+ };
1331
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1332
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1333
+ // check our new property value against our internal value
1334
+ const hostRef = getHostRef(ref);
1335
+ const elm = hostRef.$hostElement$ ;
1336
+ const oldVal = hostRef.$instanceValues$.get(propName);
1337
+ const flags = hostRef.$flags$;
1338
+ const instance = hostRef.$lazyInstance$ ;
1339
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1340
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1341
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1342
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1343
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1344
+ // gadzooks! the property's value has changed!!
1345
+ // set our new value!
1346
+ hostRef.$instanceValues$.set(propName, newVal);
1347
+ if (instance) {
1348
+ // get an array of method names of watch functions to call
1349
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1350
+ const watchMethods = cmpMeta.$watchers$[propName];
1351
+ if (watchMethods) {
1352
+ // this instance is watching for when this property changed
1353
+ watchMethods.map((watchMethodName) => {
1354
+ try {
1355
+ // fire off each of the watch methods that are watching this property
1356
+ instance[watchMethodName](newVal, oldVal, propName);
1357
+ }
1358
+ catch (e) {
1359
+ consoleError(e, elm);
1360
+ }
1361
+ });
1362
+ }
1363
+ }
1364
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1365
+ // looks like this value actually changed, so we've got work to do!
1366
+ // but only if we've already rendered, otherwise just chill out
1367
+ // queue that we need to do an update, but don't worry about queuing
1368
+ // up millions cuz this function ensures it only runs once
1369
+ scheduleUpdate(hostRef, false);
1370
+ }
1371
+ }
1372
+ }
1373
+ };
1374
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1375
+ if (cmpMeta.$members$) {
1376
+ if (Cstr.watchers) {
1377
+ cmpMeta.$watchers$ = Cstr.watchers;
1378
+ }
1379
+ // It's better to have a const than two Object.entries()
1380
+ const members = Object.entries(cmpMeta.$members$);
1381
+ const prototype = Cstr.prototype;
1382
+ members.map(([memberName, [memberFlags]]) => {
1383
+ if ((memberFlags & 31 /* Prop */ ||
1384
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1385
+ // proxyComponent - prop
1386
+ Object.defineProperty(prototype, memberName, {
1387
+ get() {
1388
+ // proxyComponent, get value
1389
+ return getValue(this, memberName);
1390
+ },
1391
+ set(newValue) {
1392
+ // proxyComponent, set value
1393
+ setValue(this, memberName, newValue, cmpMeta);
1394
+ },
1395
+ configurable: true,
1396
+ enumerable: true,
1397
+ });
1398
+ }
1399
+ else if (flags & 1 /* isElementConstructor */ &&
1400
+ memberFlags & 64 /* Method */) {
1401
+ // proxyComponent - method
1402
+ Object.defineProperty(prototype, memberName, {
1403
+ value(...args) {
1404
+ const ref = getHostRef(this);
1405
+ return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1406
+ },
1407
+ });
1408
+ }
1409
+ });
1410
+ if ((flags & 1 /* isElementConstructor */)) {
1411
+ const attrNameToPropName = new Map();
1412
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1413
+ plt.jmp(() => {
1414
+ const propName = attrNameToPropName.get(attrName);
1415
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1416
+ // in the case where an attribute was set inline.
1417
+ // ```html
1418
+ // <my-component some-attribute="some-value"></my-component>
1419
+ // ```
1420
+ //
1421
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1422
+ // programmatically changes it before it has been upgraded as shown below:
1423
+ //
1424
+ // ```html
1425
+ // <!-- this component has _not_ been upgraded yet -->
1426
+ // <my-component id="test" some-attribute="some-value"></my-component>
1427
+ // <script>
1428
+ // // grab non-upgraded component
1429
+ // el = document.querySelector("#test");
1430
+ // el.someAttribute = "another-value";
1431
+ // // upgrade component
1432
+ // customElements.define('my-component', MyComponent);
1433
+ // </script>
1434
+ // ```
1435
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1436
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1437
+ // to the value that was set inline i.e. "some-value" from above example. When
1438
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1439
+ //
1440
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1441
+ // by connectedCallback as this attributeChangedCallback will not fire.
1442
+ //
1443
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1444
+ //
1445
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1446
+ // properties here given that this goes against best practices outlined here
1447
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1448
+ if (this.hasOwnProperty(propName)) {
1449
+ newValue = this[propName];
1450
+ delete this[propName];
1451
+ }
1452
+ else if (prototype.hasOwnProperty(propName) &&
1453
+ typeof this[propName] === 'number' &&
1454
+ this[propName] == newValue) {
1455
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1456
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1457
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1458
+ return;
1459
+ }
1460
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1461
+ });
1462
+ };
1463
+ // create an array of attributes to observe
1464
+ // and also create a map of html attribute name to js property name
1465
+ Cstr.observedAttributes = members
1466
+ .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1467
+ .map(([propName, m]) => {
1468
+ const attrName = m[1] || propName;
1469
+ attrNameToPropName.set(attrName, propName);
1470
+ if (m[0] & 512 /* ReflectAttr */) {
1471
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1472
+ }
1473
+ return attrName;
1474
+ });
1475
+ }
1476
+ }
1477
+ return Cstr;
1478
+ };
1479
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1480
+ // initializeComponent
1481
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1482
+ {
1483
+ // we haven't initialized this element yet
1484
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1485
+ // lazy loaded components
1486
+ // request the component's implementation to be
1487
+ // wired up with the host element
1488
+ Cstr = loadModule(cmpMeta);
1489
+ if (Cstr.then) {
1490
+ // Await creates a micro-task avoid if possible
1491
+ const endLoad = uniqueTime();
1492
+ Cstr = await Cstr;
1493
+ endLoad();
1494
+ }
1495
+ if (!Cstr.isProxied) {
1496
+ // we've never proxied this Constructor before
1497
+ // let's add the getters/setters to its prototype before
1498
+ // the first time we create an instance of the implementation
1499
+ {
1500
+ cmpMeta.$watchers$ = Cstr.watchers;
1501
+ }
1502
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1503
+ Cstr.isProxied = true;
1504
+ }
1505
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1506
+ // ok, time to construct the instance
1507
+ // but let's keep track of when we start and stop
1508
+ // so that the getters/setters don't incorrectly step on data
1509
+ {
1510
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1511
+ }
1512
+ // construct the lazy-loaded component implementation
1513
+ // passing the hostRef is very important during
1514
+ // construction in order to directly wire together the
1515
+ // host element and the lazy-loaded instance
1516
+ try {
1517
+ new Cstr(hostRef);
1518
+ }
1519
+ catch (e) {
1520
+ consoleError(e);
1521
+ }
1522
+ {
1523
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1524
+ }
1525
+ {
1526
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1527
+ }
1528
+ endNewInstance();
1529
+ fireConnectedCallback(hostRef.$lazyInstance$);
1530
+ }
1531
+ if (Cstr.style) {
1532
+ // this component has styles but we haven't registered them yet
1533
+ let style = Cstr.style;
1534
+ if (typeof style !== 'string') {
1535
+ style = style[(hostRef.$modeName$ = computeMode(elm))];
1536
+ }
1537
+ const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
1538
+ if (!styles.has(scopeId)) {
1539
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1540
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1541
+ endRegisterStyles();
1542
+ }
1543
+ }
1544
+ }
1545
+ // we've successfully created a lazy instance
1546
+ const ancestorComponent = hostRef.$ancestorComponent$;
1547
+ const schedule = () => scheduleUpdate(hostRef, true);
1548
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1549
+ // this is the initial load and this component it has an ancestor component
1550
+ // but the ancestor component has NOT fired its will update lifecycle yet
1551
+ // so let's just cool our jets and wait for the ancestor to continue first
1552
+ // this will get fired off when the ancestor component
1553
+ // finally gets around to rendering its lazy self
1554
+ // fire off the initial update
1555
+ ancestorComponent['s-rc'].push(schedule);
1556
+ }
1557
+ else {
1558
+ schedule();
1559
+ }
1560
+ };
1561
+ const fireConnectedCallback = (instance) => {
1562
+ {
1563
+ safeCall(instance, 'connectedCallback');
1564
+ }
1565
+ };
1566
+ const connectedCallback = (elm) => {
1567
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1568
+ const hostRef = getHostRef(elm);
1569
+ const cmpMeta = hostRef.$cmpMeta$;
1570
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1571
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1572
+ // first time this component has connected
1573
+ hostRef.$flags$ |= 1 /* hasConnected */;
1574
+ {
1575
+ // initUpdate
1576
+ // if the slot polyfill is required we'll need to put some nodes
1577
+ // in here to act as original content anchors as we move nodes around
1578
+ // host element has been connected to the DOM
1579
+ if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1580
+ setContentReference(elm);
1581
+ }
1582
+ }
1583
+ {
1584
+ // find the first ancestor component (if there is one) and register
1585
+ // this component as one of the actively loading child components for its ancestor
1586
+ let ancestorComponent = elm;
1587
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1588
+ // climb up the ancestors looking for the first
1589
+ // component that hasn't finished its lifecycle update yet
1590
+ if (ancestorComponent['s-p']) {
1591
+ // we found this components first ancestor component
1592
+ // keep a reference to this component's ancestor component
1593
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1594
+ break;
1595
+ }
1596
+ }
1597
+ }
1598
+ // Lazy properties
1599
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1600
+ if (cmpMeta.$members$) {
1601
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1602
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1603
+ const value = elm[memberName];
1604
+ delete elm[memberName];
1605
+ elm[memberName] = value;
1606
+ }
1607
+ });
1608
+ }
1609
+ {
1610
+ initializeComponent(elm, hostRef, cmpMeta);
1611
+ }
1612
+ }
1613
+ else {
1614
+ // not the first time this has connected
1615
+ // reattach any event listeners to the host
1616
+ // since they would have been removed when disconnected
1617
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1618
+ // fire off connectedCallback() on component instance
1619
+ fireConnectedCallback(hostRef.$lazyInstance$);
1620
+ }
1621
+ endConnected();
1622
+ }
1623
+ };
1624
+ const setContentReference = (elm) => {
1625
+ // only required when we're NOT using native shadow dom (slot)
1626
+ // or this browser doesn't support native shadow dom
1627
+ // and this host element was NOT created with SSR
1628
+ // let's pick out the inner content for slot projection
1629
+ // create a node to represent where the original
1630
+ // content was first placed, which is useful later on
1631
+ const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1632
+ contentRefElm['s-cn'] = true;
1633
+ elm.insertBefore(contentRefElm, elm.firstChild);
1634
+ };
1635
+ const disconnectedCallback = (elm) => {
1636
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1637
+ const hostRef = getHostRef(elm);
1638
+ const instance = hostRef.$lazyInstance$ ;
1639
+ {
1640
+ if (hostRef.$rmListeners$) {
1641
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1642
+ hostRef.$rmListeners$ = undefined;
1643
+ }
1644
+ }
1645
+ {
1646
+ safeCall(instance, 'disconnectedCallback');
1647
+ }
1648
+ {
1649
+ safeCall(instance, 'componentDidUnload');
1650
+ }
1651
+ }
1652
+ };
1653
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1654
+ const endBootstrap = createTime();
1655
+ const cmpTags = [];
1656
+ const exclude = options.exclude || [];
1657
+ const customElements = win.customElements;
1658
+ const head = doc.head;
1659
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1660
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1661
+ const deferredConnectedCallbacks = [];
1662
+ let appLoadFallback;
1663
+ let isBootstrapping = true;
1664
+ Object.assign(plt, options);
1665
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1666
+ lazyBundles.map((lazyBundle) => {
1667
+ lazyBundle[1].map((compactMeta) => {
1668
+ const cmpMeta = {
1669
+ $flags$: compactMeta[0],
1670
+ $tagName$: compactMeta[1],
1671
+ $members$: compactMeta[2],
1672
+ $listeners$: compactMeta[3],
1673
+ };
1674
+ {
1675
+ cmpMeta.$members$ = compactMeta[2];
1676
+ }
1677
+ {
1678
+ cmpMeta.$listeners$ = compactMeta[3];
1679
+ }
1680
+ {
1681
+ cmpMeta.$attrsToReflect$ = [];
1682
+ }
1683
+ {
1684
+ cmpMeta.$watchers$ = {};
1685
+ }
1686
+ const tagName = cmpMeta.$tagName$;
1687
+ const HostElement = class extends HTMLElement {
1688
+ // StencilLazyHost
1689
+ constructor(self) {
1690
+ // @ts-ignore
1691
+ super(self);
1692
+ self = this;
1693
+ registerHost(self, cmpMeta);
1694
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1695
+ // this component is using shadow dom
1696
+ // and this browser supports shadow dom
1697
+ // add the read-only property "shadowRoot" to the host element
1698
+ // adding the shadow root build conditionals to minimize runtime
1699
+ {
1700
+ {
1701
+ self.attachShadow({
1702
+ mode: 'open',
1703
+ delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */),
1704
+ });
1705
+ }
1706
+ }
1707
+ }
1708
+ }
1709
+ connectedCallback() {
1710
+ if (appLoadFallback) {
1711
+ clearTimeout(appLoadFallback);
1712
+ appLoadFallback = null;
1713
+ }
1714
+ if (isBootstrapping) {
1715
+ // connectedCallback will be processed once all components have been registered
1716
+ deferredConnectedCallbacks.push(this);
1717
+ }
1718
+ else {
1719
+ plt.jmp(() => connectedCallback(this));
1720
+ }
1721
+ }
1722
+ disconnectedCallback() {
1723
+ plt.jmp(() => disconnectedCallback(this));
1724
+ }
1725
+ componentOnReady() {
1726
+ return getHostRef(this).$onReadyPromise$;
1727
+ }
1728
+ };
1729
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1730
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1731
+ cmpTags.push(tagName);
1732
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1733
+ }
1734
+ });
1735
+ });
1736
+ {
1737
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1738
+ visibilityStyle.setAttribute('data-styles', '');
1739
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1740
+ }
1741
+ // Process deferred connectedCallbacks now all components have been registered
1742
+ isBootstrapping = false;
1743
+ if (deferredConnectedCallbacks.length) {
1744
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1745
+ }
1746
+ else {
1747
+ {
1748
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1749
+ }
1750
+ }
1751
+ // Fallback appLoad event
1752
+ endBootstrap();
1753
+ };
1754
+ const getAssetPath = (path) => {
1755
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
1756
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
1757
+ };
1758
+ const getContext = (_elm, context) => {
1759
+ if (context in Context) {
1760
+ return Context[context];
1761
+ }
1762
+ else if (context === 'window') {
1763
+ return win;
1764
+ }
1765
+ else if (context === 'document') {
1766
+ return doc;
1767
+ }
1768
+ else if (context === 'isServer' || context === 'isPrerender') {
1769
+ return false;
1770
+ }
1771
+ else if (context === 'isClient') {
1772
+ return true;
1773
+ }
1774
+ else if (context === 'resourcesUrl' || context === 'publicPath') {
1775
+ return getAssetPath('.');
1776
+ }
1777
+ else if (context === 'queue') {
1778
+ return {
1779
+ write: writeTask,
1780
+ read: readTask,
1781
+ tick: {
1782
+ then(cb) {
1783
+ return nextTick(cb);
1784
+ },
1785
+ },
1786
+ };
1787
+ }
1788
+ return undefined;
1789
+ };
1790
+ const Fragment = (_, children) => children;
1791
+ const hostRefs = new WeakMap();
1792
+ const getHostRef = (ref) => hostRefs.get(ref);
1793
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1794
+ const registerHost = (elm, cmpMeta) => {
1795
+ const hostRef = {
1796
+ $flags$: 0,
1797
+ $hostElement$: elm,
1798
+ $cmpMeta$: cmpMeta,
1799
+ $instanceValues$: new Map(),
1800
+ };
1801
+ {
1802
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1803
+ }
1804
+ {
1805
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1806
+ elm['s-p'] = [];
1807
+ elm['s-rc'] = [];
1808
+ }
1809
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1810
+ return hostRefs.set(elm, hostRef);
1811
+ };
1812
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1813
+ const consoleError = (e, el) => (0, console.error)(e, el);
1814
+ const cmpModules = /*@__PURE__*/ new Map();
1815
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1816
+ // loadModuleImport
1817
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1818
+ const bundleId = cmpMeta.$lazyBundleId$;
1819
+ const module = cmpModules.get(bundleId) ;
1820
+ if (module) {
1821
+ return module[exportName];
1822
+ }
1823
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1824
+ return import(
1825
+ /* @vite-ignore */
1826
+ /* webpackInclude: /\.entry\.js$/ */
1827
+ /* webpackExclude: /\.system\.entry\.js$/ */
1828
+ /* webpackMode: "lazy" */
1829
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1830
+ {
1831
+ cmpModules.set(bundleId, importedModule);
1832
+ }
1833
+ return importedModule[exportName];
1834
+ }, consoleError);
1835
+ };
1836
+ const styles = new Map();
1837
+ const modeResolutionChain = [];
1838
+ const queueDomReads = [];
1839
+ const queueDomWrites = [];
1840
+ const queueTask = (queue, write) => (cb) => {
1841
+ queue.push(cb);
1842
+ if (!queuePending) {
1843
+ queuePending = true;
1844
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1845
+ nextTick(flush);
1846
+ }
1847
+ else {
1848
+ plt.raf(flush);
1849
+ }
1850
+ }
1851
+ };
1852
+ const consume = (queue) => {
1853
+ for (let i = 0; i < queue.length; i++) {
1854
+ try {
1855
+ queue[i](performance.now());
1856
+ }
1857
+ catch (e) {
1858
+ consoleError(e);
1859
+ }
1860
+ }
1861
+ queue.length = 0;
1862
+ };
1863
+ const flush = () => {
1864
+ // always force a bunch of medium callbacks to run, but still have
1865
+ // a throttle on how many can run in a certain time
1866
+ // DOM READS!!!
1867
+ consume(queueDomReads);
1868
+ // DOM WRITES!!!
1869
+ {
1870
+ consume(queueDomWrites);
1871
+ if ((queuePending = queueDomReads.length > 0)) {
1872
+ // still more to do yet, but we've run out of time
1873
+ // let's let this thing cool off and try again in the next tick
1874
+ plt.raf(flush);
1875
+ }
1876
+ }
1877
+ };
1878
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1879
+ const readTask = /*@__PURE__*/ queueTask(queueDomReads, false);
1880
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1881
+ const Build = {
1882
+ isDev: false,
1883
+ isBrowser: true,
1884
+ isServer: false,
1885
+ isTesting: false,
1886
+ };
1887
+
1888
+ export { Build as B, Context as C, Fragment as F, Host as H, setMode as a, bootstrapLazy as b, getAssetPath as c, getRenderingRef as d, getElement as e, forceUpdate as f, getMode as g, h, createEvent as i, readTask as j, getContext as k, promiseResolve as p, registerInstance as r, setPlatformHelpers as s, writeTask as w };