@sparkle-learning/core 0.0.27 → 0.0.30

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 (697) hide show
  1. package/dist/cjs/{PrivateRoute-cee9b061.js → PrivateRoute-043bb7d3.js} +6 -40
  2. package/dist/cjs/{active-router-3bd7b540.js → active-router-eedb3bfe.js} +1 -1
  3. package/dist/cjs/{animation-05337433.js → animation-6132e37f.js} +28 -4
  4. package/dist/cjs/app-globals-9869bf67.js +9 -0
  5. package/dist/cjs/{auth.store-aba3d22f.js → auth.store-ff3fda09.js} +1869 -357
  6. package/dist/cjs/compass-svg.cjs.entry.js +1 -1
  7. package/dist/cjs/context-consumer.cjs.entry.js +1 -1
  8. package/dist/cjs/course-select.cjs.entry.js +1 -1
  9. package/dist/cjs/{cubic-bezier-24e309bf.js → cubic-bezier-293f4663.js} +3 -0
  10. package/dist/cjs/dir-5af5259a.js +20 -0
  11. package/dist/cjs/{facilitator.service-e1e2f719.js → facilitator.service-faac5c0c.js} +1 -1
  12. package/dist/cjs/feed.service-66405969.js +124 -0
  13. package/dist/cjs/focus-visible-ad3828a7.js +63 -0
  14. package/dist/cjs/framework-delegate-2470a246.js +113 -0
  15. package/dist/cjs/{gesture-controller-e824cfb3.js → gesture-controller-07c31f70.js} +3 -0
  16. package/dist/cjs/{haptic-415dac5b.js → haptic-91e86eb7.js} +3 -0
  17. package/dist/cjs/{hardware-back-button-ca468aae.js → hardware-back-button-f7b5d99e.js} +3 -0
  18. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +18001 -0
  19. package/dist/cjs/{helpers-26770c32.js → helpers-7e28976c.js} +122 -3
  20. package/dist/cjs/{icons-a0fef92b.js → icons-b8a2231a.js} +1 -1
  21. package/dist/cjs/{index-427d03fb.js → index-185f9c5a.js} +3 -0
  22. package/dist/cjs/{index-6eff209d.js → index-43642662.js} +24 -3
  23. package/dist/cjs/{index-7bcd36a0.js → index-459a5fa9.js} +20 -4
  24. package/dist/cjs/index-8540d72e.js +42 -0
  25. package/dist/cjs/{index-58b3ee93.js → index-b12edb26.js} +34 -5
  26. package/dist/cjs/{index-fbf4d3bf.js → index-bae2a754.js} +303 -207
  27. package/dist/cjs/index.cjs.js +8 -7
  28. package/dist/cjs/index.es-ef3efdfb.js +10671 -0
  29. package/dist/cjs/{input-shims-213e83f8.js → input-shims-6c442c9f.js} +34 -10
  30. package/dist/cjs/ion-accordion-group.cjs.entry.js +197 -0
  31. package/dist/cjs/ion-accordion.cjs.entry.js +340 -0
  32. package/dist/cjs/ion-action-sheet_4.cjs.entry.js +2203 -0
  33. package/dist/cjs/ion-app.cjs.entry.js +23 -8
  34. package/dist/cjs/ion-back-button.cjs.entry.js +14 -9
  35. package/dist/cjs/ion-backdrop.cjs.entry.js +3 -3
  36. package/dist/cjs/ion-badge.cjs.entry.js +3 -3
  37. package/dist/cjs/ion-breadcrumb.cjs.entry.js +103 -0
  38. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +135 -0
  39. package/dist/cjs/ion-buttons_3.cjs.entry.js +7 -6
  40. package/dist/cjs/ion-card-header.cjs.entry.js +3 -3
  41. package/dist/cjs/ion-card-subtitle.cjs.entry.js +3 -3
  42. package/dist/cjs/ion-card-title.cjs.entry.js +3 -3
  43. package/dist/cjs/ion-chip.cjs.entry.js +3 -3
  44. package/dist/cjs/ion-content_2.cjs.entry.js +144 -56
  45. package/dist/cjs/ion-datetime.cjs.entry.js +1902 -779
  46. package/dist/cjs/ion-fab-button.cjs.entry.js +5 -4
  47. package/dist/cjs/ion-fab-list.cjs.entry.js +2 -2
  48. package/dist/cjs/ion-fab.cjs.entry.js +2 -2
  49. package/dist/cjs/ion-footer.cjs.entry.js +79 -4
  50. package/dist/cjs/ion-img.cjs.entry.js +33 -7
  51. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +3 -3
  52. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +4 -2
  53. package/dist/cjs/ion-item-divider.cjs.entry.js +3 -3
  54. package/dist/cjs/ion-item-group.cjs.entry.js +2 -2
  55. package/dist/cjs/ion-item-option.cjs.entry.js +4 -4
  56. package/dist/cjs/ion-item-options.cjs.entry.js +3 -3
  57. package/dist/cjs/ion-item-sliding.cjs.entry.js +52 -8
  58. package/dist/cjs/ion-loading.cjs.entry.js +23 -11
  59. package/dist/cjs/ion-menu-button.cjs.entry.js +17 -11
  60. package/dist/cjs/ion-menu-toggle.cjs.entry.js +7 -7
  61. package/dist/cjs/ion-menu.cjs.entry.js +141 -29
  62. package/dist/cjs/ion-modal.cjs.entry.js +649 -75
  63. package/dist/cjs/ion-nav-link.cjs.entry.js +4 -1
  64. package/dist/cjs/ion-nav.cjs.entry.js +140 -137
  65. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +700 -0
  66. package/dist/cjs/ion-picker-column.cjs.entry.js +5 -5
  67. package/dist/cjs/ion-picker.cjs.entry.js +18 -11
  68. package/dist/cjs/ion-progress-bar.cjs.entry.js +17 -13
  69. package/dist/cjs/ion-refresher-content.cjs.entry.js +7 -6
  70. package/dist/cjs/ion-refresher.cjs.entry.js +83 -84
  71. package/dist/cjs/ion-reorder-group.cjs.entry.js +9 -8
  72. package/dist/cjs/ion-reorder.cjs.entry.js +5 -4
  73. package/dist/cjs/ion-route-redirect.cjs.entry.js +1 -1
  74. package/dist/cjs/ion-route.cjs.entry.js +1 -1
  75. package/dist/cjs/ion-router-link.cjs.entry.js +3 -3
  76. package/dist/cjs/ion-router-outlet.cjs.entry.js +50 -12
  77. package/dist/cjs/ion-router.cjs.entry.js +378 -234
  78. package/dist/cjs/ion-searchbar.cjs.entry.js +50 -17
  79. package/dist/cjs/ion-segment-button.cjs.entry.js +12 -9
  80. package/dist/cjs/ion-segment.cjs.entry.js +89 -10
  81. package/dist/cjs/ion-select_2.cjs.entry.js +64 -30
  82. package/dist/cjs/ion-skeleton-text.cjs.entry.js +4 -4
  83. package/dist/cjs/ion-slide.cjs.entry.js +2 -2
  84. package/dist/cjs/ion-slides.cjs.entry.js +19 -32
  85. package/dist/cjs/ion-split-pane.cjs.entry.js +8 -3
  86. package/dist/cjs/ion-tab-bar.cjs.entry.js +25 -12
  87. package/dist/cjs/ion-tab-button.cjs.entry.js +2 -2
  88. package/dist/cjs/ion-tab.cjs.entry.js +3 -2
  89. package/dist/cjs/ion-tabs.cjs.entry.js +1 -1
  90. package/dist/cjs/ion-textarea.cjs.entry.js +9 -8
  91. package/dist/cjs/ion-thumbnail.cjs.entry.js +2 -2
  92. package/dist/cjs/ion-toast.cjs.entry.js +37 -27
  93. package/dist/cjs/ion-toggle.cjs.entry.js +15 -15
  94. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +13 -3
  95. package/dist/cjs/{ionic-global-4930d319.js → ionic-global-878073d1.js} +103 -77
  96. package/dist/cjs/{ios.transition-6e1fd3d6.js → ios.transition-c3bfb096.js} +8 -5
  97. package/dist/cjs/{keyboard-1dcbde6c.js → keyboard-dfd76ac3.js} +3 -0
  98. package/dist/cjs/loader.cjs.js +5 -5
  99. package/dist/cjs/localstorage.service-6346a41d.js +40 -0
  100. package/dist/cjs/{md.transition-3652ad78.js → md.transition-7eb9a1a7.js} +7 -4
  101. package/dist/cjs/{menu-toggle-util-a8fb4c56.js → menu-toggle-util-cb549c2c.js} +4 -1
  102. package/dist/cjs/{overlays-08a817ea.js → overlays-0a748609.js} +188 -47
  103. package/dist/cjs/{purify-596fc2d6.js → purify-d0ad2883.js} +187 -74
  104. package/dist/cjs/sparkle-animation-player.cjs.entry.js +56 -50
  105. package/dist/cjs/sparkle-character-intro.cjs.entry.js +26 -0
  106. package/dist/cjs/sparkle-code.cjs.entry.js +2 -2
  107. package/dist/cjs/sparkle-compass-post.cjs.entry.js +1 -1
  108. package/dist/cjs/sparkle-compass.cjs.entry.js +1 -1
  109. package/dist/cjs/sparkle-core.cjs.js +7 -7
  110. package/dist/cjs/sparkle-emoji.cjs.entry.js +1 -1
  111. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +7 -7
  112. package/dist/cjs/sparkle-feed-post.cjs.entry.js +1 -1
  113. package/dist/cjs/sparkle-feedback.cjs.entry.js +7 -7
  114. package/dist/cjs/sparkle-goal-form.cjs.entry.js +15 -14
  115. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +1 -1
  116. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +1 -1
  117. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +1 -1
  118. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +2 -2
  119. package/dist/cjs/sparkle-modal-image.cjs.entry.js +1 -1
  120. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +1 -1
  121. package/dist/cjs/sparkle-overlay.cjs.entry.js +1 -1
  122. package/dist/cjs/sparkle-poll.cjs.entry.js +1 -1
  123. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +1 -1
  124. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +1 -1
  125. package/dist/cjs/sparkle-quiz.cjs.entry.js +2 -2
  126. package/dist/cjs/sparkle-select.cjs.entry.js +1 -1
  127. package/dist/cjs/sparkle-sidebar.cjs.entry.js +1 -1
  128. package/dist/cjs/sparkle-tab.cjs.entry.js +1 -1
  129. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +1 -1
  130. package/dist/cjs/sparkle-tabs.cjs.entry.js +1 -1
  131. package/dist/cjs/sparkle-youtube.cjs.entry.js +2 -2
  132. package/dist/cjs/{spinner-configs-559523fd.js → spinner-configs-6f6b7ef0.js} +36 -1
  133. package/dist/cjs/status-tap-8697433c.js +40 -0
  134. package/dist/cjs/stencil-async-content.cjs.entry.js +1 -1
  135. package/dist/cjs/stencil-route-title.cjs.entry.js +2 -2
  136. package/dist/cjs/stencil-router-prompt.cjs.entry.js +2 -2
  137. package/dist/cjs/{student.service-41c7c78d.js → student.service-744c3155.js} +1 -1
  138. package/dist/cjs/{swipe-back-c1951cbd.js → swipe-back-7e08b5e0.js} +32 -8
  139. package/dist/cjs/{swiper.bundle-cbea42d8.js → swiper.bundle-8c897c07.js} +4 -4
  140. package/dist/cjs/{tap-click-cd858b48.js → tap-click-1caf1780.js} +8 -1
  141. package/dist/cjs/{theme-98ccfc24.js → theme-4252ac15.js} +3 -0
  142. package/dist/cjs/util-d383acb8.js +2462 -0
  143. package/dist/collection/collection-manifest.json +9 -2
  144. package/dist/collection/components/layout/page/page.js +1 -0
  145. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +78 -66
  146. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  147. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  148. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  149. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  150. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  151. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  152. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +67 -0
  153. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +64 -0
  154. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +48 -43
  155. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +6 -2
  156. package/dist/collection/util.js +1 -0
  157. package/dist/esm/{PrivateRoute-9f0973bb.js → PrivateRoute-b9937c45.js} +3 -37
  158. package/dist/esm/{active-router-b3ae32c7.js → active-router-909088d6.js} +1 -1
  159. package/dist/esm/{animation-72fdacfb.js → animation-b306f6c2.js} +28 -4
  160. package/dist/esm/app-globals-5c736ae5.js +7 -0
  161. package/dist/esm/auth.store-3ed2389e.js +4061 -0
  162. package/dist/esm/compass-svg.entry.js +1 -1
  163. package/dist/esm/context-consumer.entry.js +1 -1
  164. package/dist/esm/course-select.entry.js +1 -1
  165. package/dist/esm/{cubic-bezier-ed243a9b.js → cubic-bezier-a7ad9c8e.js} +3 -0
  166. package/dist/esm/dir-03012648.js +18 -0
  167. package/dist/esm/{facilitator.service-cddb2feb.js → facilitator.service-ec0a9739.js} +1 -1
  168. package/dist/esm/feed.service-33b83cb7.js +119 -0
  169. package/dist/esm/focus-visible-40cda868.js +61 -0
  170. package/dist/esm/framework-delegate-3bc58c27.js +109 -0
  171. package/dist/esm/{gesture-controller-604336b7.js → gesture-controller-686622ba.js} +3 -0
  172. package/dist/esm/{haptic-67928174.js → haptic-99c9e346.js} +4 -1
  173. package/dist/esm/{hardware-back-button-508e48cf.js → hardware-back-button-b6ccf74a.js} +3 -0
  174. package/dist/esm/header-mobile-collapse_61.entry.js +17937 -0
  175. package/dist/esm/{helpers-e7f66b2b.js → helpers-39367fe1.js} +119 -4
  176. package/dist/esm/{icons-33e5804c.js → icons-5debfbaf.js} +1 -1
  177. package/dist/esm/{index-cc97b114.js → index-435af8e6.js} +3 -0
  178. package/dist/esm/{index-55fc9f5e.js → index-5568e3fa.js} +303 -208
  179. package/dist/esm/{index-dc09784f.js → index-9594837e.js} +20 -4
  180. package/dist/esm/{index-b2ad0f1a.js → index-a12c14bd.js} +25 -4
  181. package/dist/esm/{index-a94619f9.js → index-c26d8655.js} +34 -5
  182. package/dist/esm/index-dc61f152.js +22 -0
  183. package/dist/esm/index.es-97dd8174.js +10585 -0
  184. package/dist/esm/index.js +8 -7
  185. package/dist/esm/{input-shims-3a97fa86.js → input-shims-cc98ea92.js} +34 -10
  186. package/dist/esm/ion-accordion-group.entry.js +193 -0
  187. package/dist/esm/ion-accordion.entry.js +336 -0
  188. package/dist/esm/ion-action-sheet_4.entry.js +2196 -0
  189. package/dist/esm/ion-app.entry.js +23 -8
  190. package/dist/esm/ion-back-button.entry.js +14 -9
  191. package/dist/esm/ion-backdrop.entry.js +3 -3
  192. package/dist/esm/ion-badge.entry.js +3 -3
  193. package/dist/esm/ion-breadcrumb.entry.js +99 -0
  194. package/dist/esm/ion-breadcrumbs.entry.js +131 -0
  195. package/dist/esm/ion-buttons_3.entry.js +7 -6
  196. package/dist/esm/ion-card-header.entry.js +3 -3
  197. package/dist/esm/ion-card-subtitle.entry.js +3 -3
  198. package/dist/esm/ion-card-title.entry.js +3 -3
  199. package/dist/esm/ion-chip.entry.js +3 -3
  200. package/dist/esm/ion-content_2.entry.js +144 -56
  201. package/dist/esm/ion-datetime.entry.js +1902 -779
  202. package/dist/esm/ion-fab-button.entry.js +5 -4
  203. package/dist/esm/ion-fab-list.entry.js +2 -2
  204. package/dist/esm/ion-fab.entry.js +2 -2
  205. package/dist/esm/ion-footer.entry.js +79 -4
  206. package/dist/esm/ion-img.entry.js +33 -7
  207. package/dist/esm/ion-infinite-scroll-content.entry.js +3 -3
  208. package/dist/esm/ion-infinite-scroll.entry.js +4 -2
  209. package/dist/esm/ion-item-divider.entry.js +3 -3
  210. package/dist/esm/ion-item-group.entry.js +2 -2
  211. package/dist/esm/ion-item-option.entry.js +4 -4
  212. package/dist/esm/ion-item-options.entry.js +3 -3
  213. package/dist/esm/ion-item-sliding.entry.js +52 -8
  214. package/dist/esm/ion-loading.entry.js +23 -11
  215. package/dist/esm/ion-menu-button.entry.js +17 -11
  216. package/dist/esm/ion-menu-toggle.entry.js +7 -7
  217. package/dist/esm/ion-menu.entry.js +141 -29
  218. package/dist/esm/ion-modal.entry.js +649 -75
  219. package/dist/esm/ion-nav-link.entry.js +4 -1
  220. package/dist/esm/ion-nav.entry.js +140 -137
  221. package/dist/esm/ion-picker-column-internal_2.entry.js +695 -0
  222. package/dist/esm/ion-picker-column.entry.js +5 -5
  223. package/dist/esm/ion-picker.entry.js +18 -11
  224. package/dist/esm/ion-progress-bar.entry.js +17 -13
  225. package/dist/esm/ion-refresher-content.entry.js +7 -6
  226. package/dist/esm/ion-refresher.entry.js +82 -83
  227. package/dist/esm/ion-reorder-group.entry.js +9 -8
  228. package/dist/esm/ion-reorder.entry.js +5 -4
  229. package/dist/esm/ion-route-redirect.entry.js +1 -1
  230. package/dist/esm/ion-route.entry.js +1 -1
  231. package/dist/esm/ion-router-link.entry.js +3 -3
  232. package/dist/esm/ion-router-outlet.entry.js +50 -12
  233. package/dist/esm/ion-router.entry.js +378 -234
  234. package/dist/esm/ion-searchbar.entry.js +50 -17
  235. package/dist/esm/ion-segment-button.entry.js +12 -9
  236. package/dist/esm/ion-segment.entry.js +89 -10
  237. package/dist/esm/ion-select_2.entry.js +64 -30
  238. package/dist/esm/ion-skeleton-text.entry.js +4 -4
  239. package/dist/esm/ion-slide.entry.js +2 -2
  240. package/dist/esm/ion-slides.entry.js +19 -32
  241. package/dist/esm/ion-split-pane.entry.js +8 -3
  242. package/dist/esm/ion-tab-bar.entry.js +25 -12
  243. package/dist/esm/ion-tab-button.entry.js +2 -2
  244. package/dist/esm/ion-tab.entry.js +3 -2
  245. package/dist/esm/ion-tabs.entry.js +1 -1
  246. package/dist/esm/ion-textarea.entry.js +9 -8
  247. package/dist/esm/ion-thumbnail.entry.js +2 -2
  248. package/dist/esm/ion-toast.entry.js +37 -27
  249. package/dist/esm/ion-toggle.entry.js +15 -15
  250. package/dist/esm/ion-virtual-scroll.entry.js +13 -3
  251. package/dist/esm/{ionic-global-1f9287cc.js → ionic-global-0939c477.js} +103 -77
  252. package/dist/esm/{ios.transition-d01abefd.js → ios.transition-b4ca8a33.js} +8 -5
  253. package/dist/esm/{keyboard-06906eac.js → keyboard-2503e874.js} +3 -0
  254. package/dist/esm/loader.js +5 -5
  255. package/dist/esm/localstorage.service-4bf408c8.js +36 -0
  256. package/dist/esm/{md.transition-245ffa55.js → md.transition-ca5e0322.js} +7 -4
  257. package/dist/esm/{menu-toggle-util-fe83fcf5.js → menu-toggle-util-7fa22c2f.js} +4 -1
  258. package/dist/esm/{overlays-8363621c.js → overlays-34cfa9e0.js} +187 -47
  259. package/dist/esm/polyfills/css-shim.js +1 -1
  260. package/dist/esm/polyfills/index.js +2 -2
  261. package/dist/esm/{purify-4247e2d0.js → purify-ffce2b4c.js} +185 -72
  262. package/dist/esm/sparkle-animation-player.entry.js +56 -50
  263. package/dist/esm/sparkle-character-intro.entry.js +22 -0
  264. package/dist/esm/sparkle-code.entry.js +2 -2
  265. package/dist/esm/sparkle-compass-post.entry.js +1 -1
  266. package/dist/esm/sparkle-compass.entry.js +1 -1
  267. package/dist/esm/sparkle-core.js +7 -7
  268. package/dist/esm/sparkle-emoji.entry.js +1 -1
  269. package/dist/esm/sparkle-facilitator-notes-form.entry.js +7 -7
  270. package/dist/esm/sparkle-feed-post.entry.js +1 -1
  271. package/dist/esm/sparkle-feedback.entry.js +7 -7
  272. package/dist/esm/sparkle-goal-form.entry.js +8 -7
  273. package/dist/esm/sparkle-gww-comment-list.entry.js +1 -1
  274. package/dist/esm/sparkle-gww-graph.entry.js +1 -1
  275. package/dist/esm/sparkle-lower-content-nav.entry.js +1 -1
  276. package/dist/esm/sparkle-menu-collapsible.entry.js +2 -2
  277. package/dist/esm/sparkle-modal-image.entry.js +1 -1
  278. package/dist/esm/sparkle-notfound-page.entry.js +1 -1
  279. package/dist/esm/sparkle-overlay.entry.js +1 -1
  280. package/dist/esm/sparkle-poll.entry.js +1 -1
  281. package/dist/esm/sparkle-quiz-container.entry.js +1 -1
  282. package/dist/esm/sparkle-quiz-feedback_5.entry.js +1 -1
  283. package/dist/esm/sparkle-quiz.entry.js +2 -2
  284. package/dist/esm/sparkle-select.entry.js +1 -1
  285. package/dist/esm/sparkle-sidebar.entry.js +1 -1
  286. package/dist/esm/sparkle-tab.entry.js +1 -1
  287. package/dist/esm/sparkle-table-of-contents.entry.js +1 -1
  288. package/dist/esm/sparkle-tabs.entry.js +1 -1
  289. package/dist/esm/sparkle-youtube.entry.js +2 -2
  290. package/dist/esm/{spinner-configs-9536fae2.js → spinner-configs-f609a655.js} +36 -1
  291. package/dist/esm/status-tap-6351a0cb.js +38 -0
  292. package/dist/esm/stencil-async-content.entry.js +1 -1
  293. package/dist/esm/stencil-route-title.entry.js +2 -2
  294. package/dist/esm/stencil-router-prompt.entry.js +2 -2
  295. package/dist/esm/{student.service-c36c5a75.js → student.service-29b688ba.js} +1 -1
  296. package/dist/esm/{swipe-back-21f58ecf.js → swipe-back-34251834.js} +32 -8
  297. package/dist/esm/{swiper.bundle-d4422d52.js → swiper.bundle-b6a959de.js} +4 -4
  298. package/dist/esm/{tap-click-8c728329.js → tap-click-13f1fb0d.js} +8 -1
  299. package/dist/esm/{theme-12606872.js → theme-c336c9d9.js} +3 -0
  300. package/dist/esm/util-6ef753e9.js +2451 -0
  301. package/dist/loader/index.d.ts +0 -1
  302. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +75 -0
  303. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +72 -0
  304. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +25 -0
  305. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +59 -0
  306. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +10 -19
  307. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +19 -16
  308. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +2 -2
  309. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +4 -0
  310. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +4 -0
  311. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +234 -0
  312. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +237 -0
  313. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +38 -0
  314. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +37 -0
  315. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -1
  316. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +5 -5
  317. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +60 -14
  318. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +586 -68
  319. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +575 -68
  320. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +4 -0
  321. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +16 -0
  322. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +9 -0
  323. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +9 -0
  324. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +105 -17
  325. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +295 -22
  326. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +6 -6
  327. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +6 -6
  328. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +2 -2
  329. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +7 -3
  330. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +100 -18
  331. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +1 -1
  332. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +2 -2
  333. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +2 -2
  334. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +74 -11
  335. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +48 -4
  336. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +59 -0
  337. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +62 -0
  338. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +122 -0
  339. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +118 -0
  340. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +83 -0
  341. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +49 -0
  342. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +53 -38
  343. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +53 -38
  344. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +3 -3
  345. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +5 -5
  346. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +12 -0
  347. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +2 -2
  348. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +1 -1
  349. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +1 -1
  350. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +4 -0
  351. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +4 -0
  352. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +1 -1
  353. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +30 -2
  354. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/{select-popover.css → select-popover.ios.css} +4 -4
  355. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +37 -0
  356. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +4 -4
  357. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +15 -2
  358. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +2 -1
  359. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +1 -0
  360. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +9 -0
  361. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +9 -0
  362. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +4 -3
  363. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +14 -2
  364. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +14 -2
  365. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +1 -0
  366. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +1 -0
  367. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +3 -2
  368. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +2 -1
  369. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +1 -1
  370. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +49 -0
  371. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +208 -0
  372. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +31 -0
  373. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +245 -0
  374. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +115 -0
  375. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +255 -0
  376. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +232 -0
  377. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +3 -0
  378. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +25 -0
  379. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +71 -0
  380. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +194 -0
  381. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +4 -0
  382. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +67 -0
  383. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +18 -0
  384. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +89 -0
  385. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +52 -0
  386. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +98 -0
  387. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +8 -0
  388. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +37 -0
  389. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +64 -0
  390. package/dist/sparkle-core/assets/characters/character-img.jpg +0 -0
  391. package/dist/sparkle-core/assets/characters/jen.png +0 -0
  392. package/dist/sparkle-core/assets/characters/kimberly.png +0 -0
  393. package/dist/sparkle-core/assets/characters/valeria.png +0 -0
  394. package/dist/sparkle-core/assets/characters/yuna.png +0 -0
  395. package/dist/sparkle-core/assets/characters/zynab.png +0 -0
  396. package/dist/sparkle-core/index.esm.js +1 -1
  397. package/dist/sparkle-core/p-0146afa0.entry.js +1 -0
  398. package/dist/sparkle-core/{p-52355989.entry.js → p-016a7aaf.entry.js} +1 -1
  399. package/dist/sparkle-core/p-0187adef.entry.js +1 -0
  400. package/dist/sparkle-core/p-03189863.js +1 -0
  401. package/dist/sparkle-core/{p-d4d9aa4a.entry.js → p-03ec54a8.entry.js} +1 -1
  402. package/dist/sparkle-core/p-04583c51.entry.js +1 -0
  403. package/dist/sparkle-core/{p-6d506f4e.js → p-052caa63.js} +1 -1
  404. package/dist/sparkle-core/{p-016bf847.entry.js → p-057f6a23.entry.js} +1 -1
  405. package/dist/sparkle-core/p-0580419b.entry.js +1 -0
  406. package/dist/sparkle-core/{p-c563b4de.js → p-063cd168.js} +4 -1
  407. package/dist/sparkle-core/p-081968cc.entry.js +1 -0
  408. package/dist/sparkle-core/p-0934f5dd.entry.js +1 -0
  409. package/dist/sparkle-core/{p-3f5d7a08.entry.js → p-11cf398a.entry.js} +1 -1
  410. package/dist/sparkle-core/p-1339830f.entry.js +1 -0
  411. package/dist/sparkle-core/p-145e40f5.entry.js +1 -0
  412. package/dist/sparkle-core/{p-68f3c93d.entry.js → p-1726da2f.entry.js} +1 -1
  413. package/dist/sparkle-core/p-173d5461.entry.js +7 -0
  414. package/dist/sparkle-core/p-18e62133.entry.js +1 -0
  415. package/dist/sparkle-core/p-1af044f7.js +3 -0
  416. package/dist/sparkle-core/p-1b78dea1.entry.js +1 -0
  417. package/dist/sparkle-core/p-1cef8572.js +4 -0
  418. package/dist/sparkle-core/p-1df05176.js +4 -0
  419. package/dist/sparkle-core/p-21bf4ca0.entry.js +1 -0
  420. package/dist/sparkle-core/p-21db4e8e.entry.js +1 -0
  421. package/dist/sparkle-core/p-23a9f7d1.entry.js +1 -0
  422. package/dist/sparkle-core/p-289a35ed.entry.js +1 -0
  423. package/dist/sparkle-core/p-2ee6a5f9.entry.js +1 -0
  424. package/dist/sparkle-core/p-350adbaa.entry.js +1 -0
  425. package/dist/sparkle-core/{p-bccd9036.entry.js → p-35a7bd6c.entry.js} +1 -1
  426. package/dist/sparkle-core/{p-66e3bd1c.entry.js → p-37c00e39.entry.js} +1 -1
  427. package/dist/sparkle-core/p-389500fd.js +4 -0
  428. package/dist/sparkle-core/p-39e5a90f.entry.js +1 -0
  429. package/dist/sparkle-core/{p-ac5e5308.entry.js → p-3a202a38.entry.js} +1 -1
  430. package/dist/sparkle-core/p-3defe550.entry.js +1 -0
  431. package/dist/sparkle-core/p-45e6db62.entry.js +1 -0
  432. package/dist/sparkle-core/{p-581ca370.entry.js → p-48f9b960.entry.js} +1 -1
  433. package/dist/sparkle-core/{p-0efbc0b3.entry.js → p-4dc3ef96.entry.js} +1 -1
  434. package/dist/sparkle-core/p-506221fe.js +4 -0
  435. package/dist/sparkle-core/p-50aac721.entry.js +7 -0
  436. package/dist/sparkle-core/p-513794b0.js +16 -0
  437. package/dist/sparkle-core/{p-2e4e8117.js → p-5264da79.js} +3 -0
  438. package/dist/sparkle-core/{p-40db85ac.entry.js → p-547b70c6.entry.js} +1 -1
  439. package/dist/sparkle-core/p-5598650a.entry.js +1 -0
  440. package/dist/sparkle-core/p-55ae49e1.js +4 -0
  441. package/dist/sparkle-core/p-58e98f89.entry.js +1 -0
  442. package/dist/sparkle-core/p-59f7bf6e.entry.js +1 -0
  443. package/dist/sparkle-core/p-5a3d0e6b.js +4 -0
  444. package/dist/sparkle-core/{p-85d31769.entry.js → p-5b40aae5.entry.js} +1 -1
  445. package/dist/sparkle-core/p-5c9aa1f9.entry.js +4 -0
  446. package/dist/sparkle-core/p-5d2e54ee.entry.js +1 -0
  447. package/dist/sparkle-core/p-5d409601.js +1 -0
  448. package/dist/sparkle-core/{p-afbaad64.entry.js → p-5f45d206.entry.js} +1 -1
  449. package/dist/sparkle-core/p-5ff6416d.entry.js +7 -0
  450. package/dist/sparkle-core/{p-cf2332bb.entry.js → p-62a6c96f.entry.js} +1 -1
  451. package/dist/sparkle-core/p-64e72f8f.js +4 -0
  452. package/dist/sparkle-core/p-660e0742.js +1 -0
  453. package/dist/sparkle-core/{p-d5023db0.entry.js → p-667accac.entry.js} +1 -1
  454. package/dist/sparkle-core/{p-9ca56f5d.entry.js → p-680663a2.entry.js} +1 -1
  455. package/dist/sparkle-core/{p-e975924a.entry.js → p-6823e6c1.entry.js} +1 -1
  456. package/dist/sparkle-core/p-69e7783d.js +4 -0
  457. package/dist/sparkle-core/p-6bbabb80.entry.js +1 -0
  458. package/dist/sparkle-core/p-6bf07a28.js +1 -0
  459. package/dist/sparkle-core/p-6c6145cd.js +4 -0
  460. package/dist/sparkle-core/p-6c90bde6.entry.js +5 -0
  461. package/dist/sparkle-core/p-6e88764b.entry.js +4 -0
  462. package/dist/sparkle-core/p-6ee40949.js +1 -0
  463. package/dist/sparkle-core/p-6fbe3ca3.entry.js +1 -0
  464. package/dist/sparkle-core/{p-f2660943.js → p-6fd4985d.js} +3 -0
  465. package/dist/sparkle-core/{p-8fc9298a.js → p-703ca87c.js} +3 -0
  466. package/dist/sparkle-core/{p-1bf8bed6.entry.js → p-7052c43a.entry.js} +1 -1
  467. package/dist/sparkle-core/{p-111520a0.js → p-70b2452c.js} +3 -0
  468. package/dist/sparkle-core/p-713590fc.js +5 -0
  469. package/dist/sparkle-core/p-7493ee15.entry.js +1 -0
  470. package/dist/sparkle-core/p-75572037.js +1 -0
  471. package/dist/sparkle-core/{p-eb56aa20.entry.js → p-768bcc9e.entry.js} +1 -1
  472. package/dist/sparkle-core/p-797c23ed.entry.js +1 -0
  473. package/dist/sparkle-core/{p-03eb2164.js → p-7c38a70b.js} +1 -1
  474. package/dist/sparkle-core/{p-09d43bee.entry.js → p-7d61177b.entry.js} +1 -1
  475. package/dist/sparkle-core/p-7dbfc316.js +1 -0
  476. package/dist/sparkle-core/p-7e61973d.entry.js +7 -0
  477. package/dist/sparkle-core/{p-3cd28c60.entry.js → p-82e98d07.entry.js} +1 -1
  478. package/dist/sparkle-core/p-838fa86d.entry.js +18 -0
  479. package/dist/sparkle-core/p-855ca600.js +1 -0
  480. package/dist/sparkle-core/p-857f3696.entry.js +1 -0
  481. package/dist/sparkle-core/{p-8f72be08.js → p-8c6b6038.js} +3 -0
  482. package/dist/sparkle-core/p-8fe2e51f.entry.js +4 -0
  483. package/dist/sparkle-core/{p-f72a6e6d.entry.js → p-90389886.entry.js} +1 -1
  484. package/dist/sparkle-core/p-932bfb69.entry.js +1 -0
  485. package/dist/sparkle-core/p-935e7cfc.js +1 -0
  486. package/dist/sparkle-core/{p-c70b9765.entry.js → p-941eaa3a.entry.js} +1 -1
  487. package/dist/sparkle-core/p-95004267.entry.js +1 -0
  488. package/dist/sparkle-core/p-950effe7.entry.js +1 -0
  489. package/dist/sparkle-core/{p-1ca4bf1d.entry.js → p-996361f9.entry.js} +1 -1
  490. package/dist/sparkle-core/p-9a17f2ad.js +4 -0
  491. package/dist/sparkle-core/p-9a443f51.js +1 -1
  492. package/dist/sparkle-core/p-9babd345.js +1 -0
  493. package/dist/sparkle-core/p-9cfdeb18.entry.js +1 -0
  494. package/dist/sparkle-core/p-a080e768.entry.js +1 -0
  495. package/dist/sparkle-core/p-a1cab0f3.js +4 -0
  496. package/dist/sparkle-core/p-a7cc0052.entry.js +4 -0
  497. package/dist/sparkle-core/p-a9ccb0df.js +4 -0
  498. package/dist/sparkle-core/p-a9ee3f6d.entry.js +1 -0
  499. package/dist/sparkle-core/{p-abe2676a.entry.js → p-aa87c7f0.entry.js} +1 -1
  500. package/dist/sparkle-core/{p-e818b11d.entry.js → p-aa9ebc39.entry.js} +1 -1
  501. package/dist/sparkle-core/p-ae1f145d.entry.js +1 -0
  502. package/dist/sparkle-core/{p-73a646fb.entry.js → p-b07a2cf2.entry.js} +1 -1
  503. package/dist/sparkle-core/{p-c82b05e0.entry.js → p-b3909012.entry.js} +1 -1
  504. package/dist/sparkle-core/p-b3e6427d.js +7 -0
  505. package/dist/sparkle-core/p-b49ca0ea.entry.js +1 -0
  506. package/dist/sparkle-core/p-b81e20fe.entry.js +4 -0
  507. package/dist/sparkle-core/p-bca0e465.entry.js +1 -0
  508. package/dist/sparkle-core/p-c1279cc9.entry.js +1 -0
  509. package/dist/sparkle-core/{p-82d95fcd.entry.js → p-c1376096.entry.js} +1 -1
  510. package/dist/sparkle-core/p-c3986a52.entry.js +1 -0
  511. package/dist/sparkle-core/p-c3d3d5c4.entry.js +1 -0
  512. package/dist/sparkle-core/p-c48bbc7c.entry.js +4 -0
  513. package/dist/sparkle-core/p-c5b9bdd6.entry.js +1 -0
  514. package/dist/sparkle-core/{p-15d68269.entry.js → p-c69b0a7a.entry.js} +1 -1
  515. package/dist/sparkle-core/p-cbbeed67.entry.js +1 -0
  516. package/dist/sparkle-core/p-d4a435f8.entry.js +1 -0
  517. package/dist/sparkle-core/p-d4c07aca.js +4 -0
  518. package/dist/sparkle-core/p-d5b05ece.entry.js +5 -0
  519. package/dist/sparkle-core/p-d7baf31e.entry.js +1 -0
  520. package/dist/sparkle-core/p-d8d3524a.js +1 -0
  521. package/dist/sparkle-core/p-df0070c5.entry.js +352 -0
  522. package/dist/sparkle-core/{p-22926eed.entry.js → p-e0fced48.entry.js} +1 -1
  523. package/dist/sparkle-core/p-e1cba44b.entry.js +4 -0
  524. package/dist/sparkle-core/p-e225581a.js +7 -0
  525. package/dist/sparkle-core/{p-4e28ca37.entry.js → p-e3fdd0a8.entry.js} +1 -1
  526. package/dist/sparkle-core/p-e72d4450.js +4 -0
  527. package/dist/sparkle-core/p-eb70a23c.entry.js +1 -0
  528. package/dist/sparkle-core/{p-f9143c5d.entry.js → p-ecd39170.entry.js} +1 -1
  529. package/dist/sparkle-core/{p-151afa9e.entry.js → p-ed0e9d29.entry.js} +1 -1
  530. package/dist/sparkle-core/{p-92d42c10.entry.js → p-ee0d7f19.entry.js} +1 -1
  531. package/dist/sparkle-core/p-f4001fdf.js +4 -0
  532. package/dist/sparkle-core/p-f9b73032.entry.js +1 -0
  533. package/dist/sparkle-core/p-faa912d7.entry.js +1 -0
  534. package/dist/sparkle-core/{p-a250e2ae.entry.js → p-fbd7eeca.entry.js} +1 -1
  535. package/dist/sparkle-core/p-fc933591.entry.js +1 -0
  536. package/dist/sparkle-core/p-fef04ab5.js +4 -0
  537. package/dist/sparkle-core/sparkle-core.css +1 -1
  538. package/dist/sparkle-core/sparkle-core.esm.js +1 -1
  539. package/dist/sparkle-core/svg/balloon-outline.svg +1 -0
  540. package/dist/sparkle-core/svg/balloon-sharp.svg +1 -0
  541. package/dist/sparkle-core/svg/balloon.svg +1 -0
  542. package/dist/sparkle-core/svg/bowling-ball-outline.svg +1 -0
  543. package/dist/sparkle-core/svg/bowling-ball-sharp.svg +1 -0
  544. package/dist/sparkle-core/svg/bowling-ball.svg +1 -0
  545. package/dist/sparkle-core/svg/calendar-number-outline.svg +1 -0
  546. package/dist/sparkle-core/svg/calendar-number-sharp.svg +1 -0
  547. package/dist/sparkle-core/svg/calendar-number.svg +1 -0
  548. package/dist/sparkle-core/svg/diamond-outline.svg +1 -0
  549. package/dist/sparkle-core/svg/diamond-sharp.svg +1 -0
  550. package/dist/sparkle-core/svg/diamond.svg +1 -0
  551. package/dist/sparkle-core/svg/footsteps-outline.svg +1 -0
  552. package/dist/sparkle-core/svg/footsteps-sharp.svg +1 -0
  553. package/dist/sparkle-core/svg/footsteps.svg +1 -0
  554. package/dist/sparkle-core/svg/id-card-outline.svg +1 -0
  555. package/dist/sparkle-core/svg/id-card-sharp.svg +1 -0
  556. package/dist/sparkle-core/svg/id-card.svg +1 -0
  557. package/dist/sparkle-core/svg/logo-apple-ar.svg +1 -0
  558. package/dist/sparkle-core/svg/prism-outline.svg +1 -0
  559. package/dist/sparkle-core/svg/prism-sharp.svg +1 -0
  560. package/dist/sparkle-core/svg/prism.svg +1 -0
  561. package/dist/sparkle-core/svg/scale-outline.svg +1 -0
  562. package/dist/sparkle-core/svg/scale-sharp.svg +1 -0
  563. package/dist/sparkle-core/svg/scale.svg +1 -0
  564. package/dist/sparkle-core/svg/shield-half-outline.svg +1 -0
  565. package/dist/sparkle-core/svg/shield-half-sharp.svg +1 -0
  566. package/dist/sparkle-core/svg/shield-half.svg +1 -0
  567. package/dist/sparkle-core/svg/sparkles-outline.svg +1 -0
  568. package/dist/sparkle-core/svg/sparkles-sharp.svg +1 -0
  569. package/dist/sparkle-core/svg/sparkles.svg +1 -0
  570. package/dist/sparkle-core/swiper/swiper.bundle.js +2 -2
  571. package/dist/types/components/sparkle-animation-player/sparkle-animation-player.d.ts +1 -0
  572. package/dist/types/components/sparkle-character-intro/sparkle-character-intro.d.ts +7 -0
  573. package/dist/types/components/sparkle-course-root/sparkle-course-root.d.ts +2 -2
  574. package/dist/types/components/sparkle-youtube/sparkle-youtube.d.ts +1 -1
  575. package/dist/types/components.d.ts +17 -0
  576. package/dist/types/models/definitions.d.ts +8 -0
  577. package/dist/types/stencil-public-runtime.d.ts +200 -190
  578. package/dist/types/util.d.ts +1 -0
  579. package/package.json +26 -26
  580. package/dist/cjs/app-globals-98121d6d.js +0 -9
  581. package/dist/cjs/button-active-9456fb4d.js +0 -66
  582. package/dist/cjs/feed.service-518d18fd.js +0 -5802
  583. package/dist/cjs/focus-visible-1583bc8e.js +0 -45
  584. package/dist/cjs/framework-delegate-72815681.js +0 -37
  585. package/dist/cjs/header-mobile-collapse_60.cjs.entry.js +0 -86
  586. package/dist/cjs/index.es-baef3314.js +0 -13834
  587. package/dist/cjs/ion-action-sheet.cjs.entry.js +0 -261
  588. package/dist/cjs/ion-alert.cjs.entry.js +0 -455
  589. package/dist/cjs/ion-note.cjs.entry.js +0 -29
  590. package/dist/cjs/ion-popover.cjs.entry.js +0 -365
  591. package/dist/cjs/ion-select-popover.cjs.entry.js +0 -35
  592. package/dist/cjs/status-tap-466a7c6a.js +0 -25
  593. package/dist/esm/app-globals-6451faf3.js +0 -7
  594. package/dist/esm/auth.store-dd944bc2.js +0 -2552
  595. package/dist/esm/button-active-97535443.js +0 -64
  596. package/dist/esm/feed.service-0fda1e36.js +0 -5787
  597. package/dist/esm/focus-visible-abf04ce3.js +0 -43
  598. package/dist/esm/framework-delegate-2c397da3.js +0 -34
  599. package/dist/esm/header-mobile-collapse_60.entry.js +0 -19
  600. package/dist/esm/index.es-a5bf9a49.js +0 -13748
  601. package/dist/esm/ion-action-sheet.entry.js +0 -257
  602. package/dist/esm/ion-alert.entry.js +0 -451
  603. package/dist/esm/ion-note.entry.js +0 -25
  604. package/dist/esm/ion-popover.entry.js +0 -361
  605. package/dist/esm/ion-select-popover.entry.js +0 -31
  606. package/dist/esm/status-tap-9221cd79.js +0 -23
  607. package/dist/sparkle-core/p-019d9d02.entry.js +0 -1
  608. package/dist/sparkle-core/p-02d6d899.js +0 -1
  609. package/dist/sparkle-core/p-03fd27d0.entry.js +0 -1
  610. package/dist/sparkle-core/p-07018d29.js +0 -1
  611. package/dist/sparkle-core/p-083d57a6.entry.js +0 -1
  612. package/dist/sparkle-core/p-090f2624.js +0 -1
  613. package/dist/sparkle-core/p-0e1c7c8c.js +0 -1
  614. package/dist/sparkle-core/p-101feae9.js +0 -1
  615. package/dist/sparkle-core/p-13b0cdfc.entry.js +0 -1
  616. package/dist/sparkle-core/p-13c9bf3a.entry.js +0 -1
  617. package/dist/sparkle-core/p-169920f1.js +0 -1
  618. package/dist/sparkle-core/p-1e1f5e98.entry.js +0 -1
  619. package/dist/sparkle-core/p-1e866c41.entry.js +0 -1
  620. package/dist/sparkle-core/p-2474bf60.entry.js +0 -1
  621. package/dist/sparkle-core/p-25bbf9b4.entry.js +0 -1
  622. package/dist/sparkle-core/p-2a45b732.js +0 -1
  623. package/dist/sparkle-core/p-2abf4d37.entry.js +0 -1
  624. package/dist/sparkle-core/p-2c5edb9f.entry.js +0 -1
  625. package/dist/sparkle-core/p-2d966d35.js +0 -1
  626. package/dist/sparkle-core/p-30b641a4.entry.js +0 -1
  627. package/dist/sparkle-core/p-34ea6639.entry.js +0 -1
  628. package/dist/sparkle-core/p-359422b6.entry.js +0 -1
  629. package/dist/sparkle-core/p-37bfb548.entry.js +0 -1
  630. package/dist/sparkle-core/p-38307b31.js +0 -1
  631. package/dist/sparkle-core/p-3a29a75b.entry.js +0 -1
  632. package/dist/sparkle-core/p-3bb55510.entry.js +0 -1
  633. package/dist/sparkle-core/p-3be0a218.js +0 -1
  634. package/dist/sparkle-core/p-417a8dd6.js +0 -1
  635. package/dist/sparkle-core/p-447163be.entry.js +0 -1
  636. package/dist/sparkle-core/p-49265a8e.entry.js +0 -1
  637. package/dist/sparkle-core/p-4950f841.entry.js +0 -1
  638. package/dist/sparkle-core/p-4b7db0e6.js +0 -1
  639. package/dist/sparkle-core/p-4d8cb365.entry.js +0 -1
  640. package/dist/sparkle-core/p-5073899e.entry.js +0 -1
  641. package/dist/sparkle-core/p-5b366c20.entry.js +0 -1
  642. package/dist/sparkle-core/p-5dce20b9.entry.js +0 -1
  643. package/dist/sparkle-core/p-6006beec.entry.js +0 -1
  644. package/dist/sparkle-core/p-600d04fc.entry.js +0 -1
  645. package/dist/sparkle-core/p-60828739.entry.js +0 -1
  646. package/dist/sparkle-core/p-6112b180.entry.js +0 -1
  647. package/dist/sparkle-core/p-66eb6b7a.entry.js +0 -1
  648. package/dist/sparkle-core/p-67ddec3f.entry.js +0 -1
  649. package/dist/sparkle-core/p-68cb7d41.entry.js +0 -1
  650. package/dist/sparkle-core/p-69cd49de.js +0 -1
  651. package/dist/sparkle-core/p-6edbdde5.entry.js +0 -1
  652. package/dist/sparkle-core/p-6f0ecbe3.js +0 -1
  653. package/dist/sparkle-core/p-765b8593.js +0 -1
  654. package/dist/sparkle-core/p-770128c8.js +0 -1
  655. package/dist/sparkle-core/p-7840618d.js +0 -1
  656. package/dist/sparkle-core/p-7b37d523.entry.js +0 -1
  657. package/dist/sparkle-core/p-7d83d006.entry.js +0 -1
  658. package/dist/sparkle-core/p-7f3d5344.js +0 -1
  659. package/dist/sparkle-core/p-81651f26.entry.js +0 -1
  660. package/dist/sparkle-core/p-86148067.entry.js +0 -1
  661. package/dist/sparkle-core/p-8b5bc1d6.entry.js +0 -1
  662. package/dist/sparkle-core/p-8c3ee44c.entry.js +0 -1
  663. package/dist/sparkle-core/p-9007a06b.entry.js +0 -1
  664. package/dist/sparkle-core/p-90482861.entry.js +0 -1
  665. package/dist/sparkle-core/p-a061537e.entry.js +0 -1
  666. package/dist/sparkle-core/p-a38ea475.js +0 -1
  667. package/dist/sparkle-core/p-ad1ddf1f.js +0 -483
  668. package/dist/sparkle-core/p-aef0bba0.js +0 -1
  669. package/dist/sparkle-core/p-b080c1e3.entry.js +0 -1
  670. package/dist/sparkle-core/p-b11fe0c7.js +0 -1
  671. package/dist/sparkle-core/p-bac45a26.entry.js +0 -1
  672. package/dist/sparkle-core/p-bbe5977b.entry.js +0 -1
  673. package/dist/sparkle-core/p-bc568dcb.js +0 -1
  674. package/dist/sparkle-core/p-bfb55f1d.js +0 -3
  675. package/dist/sparkle-core/p-c163c16d.entry.js +0 -1
  676. package/dist/sparkle-core/p-c3166584.entry.js +0 -1
  677. package/dist/sparkle-core/p-c34269ae.entry.js +0 -1
  678. package/dist/sparkle-core/p-c466ee32.js +0 -1
  679. package/dist/sparkle-core/p-c6710592.entry.js +0 -1
  680. package/dist/sparkle-core/p-c7022391.entry.js +0 -1
  681. package/dist/sparkle-core/p-d4ad796c.js +0 -1
  682. package/dist/sparkle-core/p-d6152660.entry.js +0 -1
  683. package/dist/sparkle-core/p-d63406d8.js +0 -1
  684. package/dist/sparkle-core/p-dba672d5.entry.js +0 -1
  685. package/dist/sparkle-core/p-dd73d01a.entry.js +0 -1
  686. package/dist/sparkle-core/p-de33872d.entry.js +0 -1
  687. package/dist/sparkle-core/p-dee2128a.entry.js +0 -1
  688. package/dist/sparkle-core/p-df07e132.entry.js +0 -1
  689. package/dist/sparkle-core/p-e5d5aaa5.js +0 -1
  690. package/dist/sparkle-core/p-e72c6d87.entry.js +0 -1
  691. package/dist/sparkle-core/p-e8df6ea6.entry.js +0 -1
  692. package/dist/sparkle-core/p-ef2a2172.js +0 -1
  693. package/dist/sparkle-core/p-f1a4ab33.entry.js +0 -1
  694. package/dist/sparkle-core/p-f43ac631.entry.js +0 -1
  695. package/dist/sparkle-core/p-f8063d7b.js +0 -1
  696. package/dist/sparkle-core/p-fd62283e.entry.js +0 -1
  697. package/dist/sparkle-core/p-fef71e0e.entry.js +0 -1
@@ -0,0 +1,4061 @@
1
+ import { t as toastController } from './overlays-34cfa9e0.js';
2
+ import { E as EnvironmentConfigService } from './environment-config.service-2b5d692b.js';
3
+ import { d as getRenderingRef, f as forceUpdate } from './index-5568e3fa.js';
4
+
5
+ var bind = function bind(fn, thisArg) {
6
+ return function wrap() {
7
+ var args = new Array(arguments.length);
8
+ for (var i = 0; i < args.length; i++) {
9
+ args[i] = arguments[i];
10
+ }
11
+ return fn.apply(thisArg, args);
12
+ };
13
+ };
14
+
15
+ // utils is a library of generic helper functions non-specific to axios
16
+
17
+ var toString = Object.prototype.toString;
18
+
19
+ /**
20
+ * Determine if a value is an Array
21
+ *
22
+ * @param {Object} val The value to test
23
+ * @returns {boolean} True if value is an Array, otherwise false
24
+ */
25
+ function isArray$4(val) {
26
+ return Array.isArray(val);
27
+ }
28
+
29
+ /**
30
+ * Determine if a value is undefined
31
+ *
32
+ * @param {Object} val The value to test
33
+ * @returns {boolean} True if the value is undefined, otherwise false
34
+ */
35
+ function isUndefined(val) {
36
+ return typeof val === 'undefined';
37
+ }
38
+
39
+ /**
40
+ * Determine if a value is a Buffer
41
+ *
42
+ * @param {Object} val The value to test
43
+ * @returns {boolean} True if value is a Buffer, otherwise false
44
+ */
45
+ function isBuffer$1(val) {
46
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
47
+ && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
48
+ }
49
+
50
+ /**
51
+ * Determine if a value is an ArrayBuffer
52
+ *
53
+ * @param {Object} val The value to test
54
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
55
+ */
56
+ function isArrayBuffer(val) {
57
+ return toString.call(val) === '[object ArrayBuffer]';
58
+ }
59
+
60
+ /**
61
+ * Determine if a value is a FormData
62
+ *
63
+ * @param {Object} val The value to test
64
+ * @returns {boolean} True if value is an FormData, otherwise false
65
+ */
66
+ function isFormData(val) {
67
+ return toString.call(val) === '[object FormData]';
68
+ }
69
+
70
+ /**
71
+ * Determine if a value is a view on an ArrayBuffer
72
+ *
73
+ * @param {Object} val The value to test
74
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
75
+ */
76
+ function isArrayBufferView(val) {
77
+ var result;
78
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
79
+ result = ArrayBuffer.isView(val);
80
+ } else {
81
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
82
+ }
83
+ return result;
84
+ }
85
+
86
+ /**
87
+ * Determine if a value is a String
88
+ *
89
+ * @param {Object} val The value to test
90
+ * @returns {boolean} True if value is a String, otherwise false
91
+ */
92
+ function isString$1(val) {
93
+ return typeof val === 'string';
94
+ }
95
+
96
+ /**
97
+ * Determine if a value is a Number
98
+ *
99
+ * @param {Object} val The value to test
100
+ * @returns {boolean} True if value is a Number, otherwise false
101
+ */
102
+ function isNumber$1(val) {
103
+ return typeof val === 'number';
104
+ }
105
+
106
+ /**
107
+ * Determine if a value is an Object
108
+ *
109
+ * @param {Object} val The value to test
110
+ * @returns {boolean} True if value is an Object, otherwise false
111
+ */
112
+ function isObject(val) {
113
+ return val !== null && typeof val === 'object';
114
+ }
115
+
116
+ /**
117
+ * Determine if a value is a plain Object
118
+ *
119
+ * @param {Object} val The value to test
120
+ * @return {boolean} True if value is a plain Object, otherwise false
121
+ */
122
+ function isPlainObject(val) {
123
+ if (toString.call(val) !== '[object Object]') {
124
+ return false;
125
+ }
126
+
127
+ var prototype = Object.getPrototypeOf(val);
128
+ return prototype === null || prototype === Object.prototype;
129
+ }
130
+
131
+ /**
132
+ * Determine if a value is a Date
133
+ *
134
+ * @param {Object} val The value to test
135
+ * @returns {boolean} True if value is a Date, otherwise false
136
+ */
137
+ function isDate$1(val) {
138
+ return toString.call(val) === '[object Date]';
139
+ }
140
+
141
+ /**
142
+ * Determine if a value is a File
143
+ *
144
+ * @param {Object} val The value to test
145
+ * @returns {boolean} True if value is a File, otherwise false
146
+ */
147
+ function isFile(val) {
148
+ return toString.call(val) === '[object File]';
149
+ }
150
+
151
+ /**
152
+ * Determine if a value is a Blob
153
+ *
154
+ * @param {Object} val The value to test
155
+ * @returns {boolean} True if value is a Blob, otherwise false
156
+ */
157
+ function isBlob(val) {
158
+ return toString.call(val) === '[object Blob]';
159
+ }
160
+
161
+ /**
162
+ * Determine if a value is a Function
163
+ *
164
+ * @param {Object} val The value to test
165
+ * @returns {boolean} True if value is a Function, otherwise false
166
+ */
167
+ function isFunction(val) {
168
+ return toString.call(val) === '[object Function]';
169
+ }
170
+
171
+ /**
172
+ * Determine if a value is a Stream
173
+ *
174
+ * @param {Object} val The value to test
175
+ * @returns {boolean} True if value is a Stream, otherwise false
176
+ */
177
+ function isStream(val) {
178
+ return isObject(val) && isFunction(val.pipe);
179
+ }
180
+
181
+ /**
182
+ * Determine if a value is a URLSearchParams object
183
+ *
184
+ * @param {Object} val The value to test
185
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
186
+ */
187
+ function isURLSearchParams(val) {
188
+ return toString.call(val) === '[object URLSearchParams]';
189
+ }
190
+
191
+ /**
192
+ * Trim excess whitespace off the beginning and end of a string
193
+ *
194
+ * @param {String} str The String to trim
195
+ * @returns {String} The String freed of excess whitespace
196
+ */
197
+ function trim(str) {
198
+ return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
199
+ }
200
+
201
+ /**
202
+ * Determine if we're running in a standard browser environment
203
+ *
204
+ * This allows axios to run in a web worker, and react-native.
205
+ * Both environments support XMLHttpRequest, but not fully standard globals.
206
+ *
207
+ * web workers:
208
+ * typeof window -> undefined
209
+ * typeof document -> undefined
210
+ *
211
+ * react-native:
212
+ * navigator.product -> 'ReactNative'
213
+ * nativescript
214
+ * navigator.product -> 'NativeScript' or 'NS'
215
+ */
216
+ function isStandardBrowserEnv() {
217
+ if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
218
+ navigator.product === 'NativeScript' ||
219
+ navigator.product === 'NS')) {
220
+ return false;
221
+ }
222
+ return (
223
+ typeof window !== 'undefined' &&
224
+ typeof document !== 'undefined'
225
+ );
226
+ }
227
+
228
+ /**
229
+ * Iterate over an Array or an Object invoking a function for each item.
230
+ *
231
+ * If `obj` is an Array callback will be called passing
232
+ * the value, index, and complete array for each item.
233
+ *
234
+ * If 'obj' is an Object callback will be called passing
235
+ * the value, key, and complete object for each property.
236
+ *
237
+ * @param {Object|Array} obj The object to iterate
238
+ * @param {Function} fn The callback to invoke for each item
239
+ */
240
+ function forEach(obj, fn) {
241
+ // Don't bother if no value provided
242
+ if (obj === null || typeof obj === 'undefined') {
243
+ return;
244
+ }
245
+
246
+ // Force an array if not already something iterable
247
+ if (typeof obj !== 'object') {
248
+ /*eslint no-param-reassign:0*/
249
+ obj = [obj];
250
+ }
251
+
252
+ if (isArray$4(obj)) {
253
+ // Iterate over array values
254
+ for (var i = 0, l = obj.length; i < l; i++) {
255
+ fn.call(null, obj[i], i, obj);
256
+ }
257
+ } else {
258
+ // Iterate over object keys
259
+ for (var key in obj) {
260
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
261
+ fn.call(null, obj[key], key, obj);
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ /**
268
+ * Accepts varargs expecting each argument to be an object, then
269
+ * immutably merges the properties of each object and returns result.
270
+ *
271
+ * When multiple objects contain the same key the later object in
272
+ * the arguments list will take precedence.
273
+ *
274
+ * Example:
275
+ *
276
+ * ```js
277
+ * var result = merge({foo: 123}, {foo: 456});
278
+ * console.log(result.foo); // outputs 456
279
+ * ```
280
+ *
281
+ * @param {Object} obj1 Object to merge
282
+ * @returns {Object} Result of all merge properties
283
+ */
284
+ function merge$1(/* obj1, obj2, obj3, ... */) {
285
+ var result = {};
286
+ function assignValue(val, key) {
287
+ if (isPlainObject(result[key]) && isPlainObject(val)) {
288
+ result[key] = merge$1(result[key], val);
289
+ } else if (isPlainObject(val)) {
290
+ result[key] = merge$1({}, val);
291
+ } else if (isArray$4(val)) {
292
+ result[key] = val.slice();
293
+ } else {
294
+ result[key] = val;
295
+ }
296
+ }
297
+
298
+ for (var i = 0, l = arguments.length; i < l; i++) {
299
+ forEach(arguments[i], assignValue);
300
+ }
301
+ return result;
302
+ }
303
+
304
+ /**
305
+ * Extends object a by mutably adding to it the properties of object b.
306
+ *
307
+ * @param {Object} a The object to be extended
308
+ * @param {Object} b The object to copy properties from
309
+ * @param {Object} thisArg The object to bind function to
310
+ * @return {Object} The resulting value of object a
311
+ */
312
+ function extend(a, b, thisArg) {
313
+ forEach(b, function assignValue(val, key) {
314
+ if (thisArg && typeof val === 'function') {
315
+ a[key] = bind(val, thisArg);
316
+ } else {
317
+ a[key] = val;
318
+ }
319
+ });
320
+ return a;
321
+ }
322
+
323
+ /**
324
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
325
+ *
326
+ * @param {string} content with BOM
327
+ * @return {string} content value without BOM
328
+ */
329
+ function stripBOM(content) {
330
+ if (content.charCodeAt(0) === 0xFEFF) {
331
+ content = content.slice(1);
332
+ }
333
+ return content;
334
+ }
335
+
336
+ var utils$1 = {
337
+ isArray: isArray$4,
338
+ isArrayBuffer: isArrayBuffer,
339
+ isBuffer: isBuffer$1,
340
+ isFormData: isFormData,
341
+ isArrayBufferView: isArrayBufferView,
342
+ isString: isString$1,
343
+ isNumber: isNumber$1,
344
+ isObject: isObject,
345
+ isPlainObject: isPlainObject,
346
+ isUndefined: isUndefined,
347
+ isDate: isDate$1,
348
+ isFile: isFile,
349
+ isBlob: isBlob,
350
+ isFunction: isFunction,
351
+ isStream: isStream,
352
+ isURLSearchParams: isURLSearchParams,
353
+ isStandardBrowserEnv: isStandardBrowserEnv,
354
+ forEach: forEach,
355
+ merge: merge$1,
356
+ extend: extend,
357
+ trim: trim,
358
+ stripBOM: stripBOM
359
+ };
360
+
361
+ function encode$1(val) {
362
+ return encodeURIComponent(val).
363
+ replace(/%3A/gi, ':').
364
+ replace(/%24/g, '$').
365
+ replace(/%2C/gi, ',').
366
+ replace(/%20/g, '+').
367
+ replace(/%5B/gi, '[').
368
+ replace(/%5D/gi, ']');
369
+ }
370
+
371
+ /**
372
+ * Build a URL by appending params to the end
373
+ *
374
+ * @param {string} url The base of the url (e.g., http://www.google.com)
375
+ * @param {object} [params] The params to be appended
376
+ * @returns {string} The formatted url
377
+ */
378
+ var buildURL = function buildURL(url, params, paramsSerializer) {
379
+ /*eslint no-param-reassign:0*/
380
+ if (!params) {
381
+ return url;
382
+ }
383
+
384
+ var serializedParams;
385
+ if (paramsSerializer) {
386
+ serializedParams = paramsSerializer(params);
387
+ } else if (utils$1.isURLSearchParams(params)) {
388
+ serializedParams = params.toString();
389
+ } else {
390
+ var parts = [];
391
+
392
+ utils$1.forEach(params, function serialize(val, key) {
393
+ if (val === null || typeof val === 'undefined') {
394
+ return;
395
+ }
396
+
397
+ if (utils$1.isArray(val)) {
398
+ key = key + '[]';
399
+ } else {
400
+ val = [val];
401
+ }
402
+
403
+ utils$1.forEach(val, function parseValue(v) {
404
+ if (utils$1.isDate(v)) {
405
+ v = v.toISOString();
406
+ } else if (utils$1.isObject(v)) {
407
+ v = JSON.stringify(v);
408
+ }
409
+ parts.push(encode$1(key) + '=' + encode$1(v));
410
+ });
411
+ });
412
+
413
+ serializedParams = parts.join('&');
414
+ }
415
+
416
+ if (serializedParams) {
417
+ var hashmarkIndex = url.indexOf('#');
418
+ if (hashmarkIndex !== -1) {
419
+ url = url.slice(0, hashmarkIndex);
420
+ }
421
+
422
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
423
+ }
424
+
425
+ return url;
426
+ };
427
+
428
+ function InterceptorManager() {
429
+ this.handlers = [];
430
+ }
431
+
432
+ /**
433
+ * Add a new interceptor to the stack
434
+ *
435
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
436
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
437
+ *
438
+ * @return {Number} An ID used to remove interceptor later
439
+ */
440
+ InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
441
+ this.handlers.push({
442
+ fulfilled: fulfilled,
443
+ rejected: rejected,
444
+ synchronous: options ? options.synchronous : false,
445
+ runWhen: options ? options.runWhen : null
446
+ });
447
+ return this.handlers.length - 1;
448
+ };
449
+
450
+ /**
451
+ * Remove an interceptor from the stack
452
+ *
453
+ * @param {Number} id The ID that was returned by `use`
454
+ */
455
+ InterceptorManager.prototype.eject = function eject(id) {
456
+ if (this.handlers[id]) {
457
+ this.handlers[id] = null;
458
+ }
459
+ };
460
+
461
+ /**
462
+ * Iterate over all the registered interceptors
463
+ *
464
+ * This method is particularly useful for skipping over any
465
+ * interceptors that may have become `null` calling `eject`.
466
+ *
467
+ * @param {Function} fn The function to call for each interceptor
468
+ */
469
+ InterceptorManager.prototype.forEach = function forEach(fn) {
470
+ utils$1.forEach(this.handlers, function forEachHandler(h) {
471
+ if (h !== null) {
472
+ fn(h);
473
+ }
474
+ });
475
+ };
476
+
477
+ var InterceptorManager_1 = InterceptorManager;
478
+
479
+ var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
480
+ utils$1.forEach(headers, function processHeader(value, name) {
481
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
482
+ headers[normalizedName] = value;
483
+ delete headers[name];
484
+ }
485
+ });
486
+ };
487
+
488
+ /**
489
+ * Update an Error with the specified config, error code, and response.
490
+ *
491
+ * @param {Error} error The error to update.
492
+ * @param {Object} config The config.
493
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
494
+ * @param {Object} [request] The request.
495
+ * @param {Object} [response] The response.
496
+ * @returns {Error} The error.
497
+ */
498
+ var enhanceError = function enhanceError(error, config, code, request, response) {
499
+ error.config = config;
500
+ if (code) {
501
+ error.code = code;
502
+ }
503
+
504
+ error.request = request;
505
+ error.response = response;
506
+ error.isAxiosError = true;
507
+
508
+ error.toJSON = function toJSON() {
509
+ return {
510
+ // Standard
511
+ message: this.message,
512
+ name: this.name,
513
+ // Microsoft
514
+ description: this.description,
515
+ number: this.number,
516
+ // Mozilla
517
+ fileName: this.fileName,
518
+ lineNumber: this.lineNumber,
519
+ columnNumber: this.columnNumber,
520
+ stack: this.stack,
521
+ // Axios
522
+ config: this.config,
523
+ code: this.code,
524
+ status: this.response && this.response.status ? this.response.status : null
525
+ };
526
+ };
527
+ return error;
528
+ };
529
+
530
+ var transitional = {
531
+ silentJSONParsing: true,
532
+ forcedJSONParsing: true,
533
+ clarifyTimeoutError: false
534
+ };
535
+
536
+ /**
537
+ * Create an Error with the specified message, config, error code, request and response.
538
+ *
539
+ * @param {string} message The error message.
540
+ * @param {Object} config The config.
541
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
542
+ * @param {Object} [request] The request.
543
+ * @param {Object} [response] The response.
544
+ * @returns {Error} The created error.
545
+ */
546
+ var createError = function createError(message, config, code, request, response) {
547
+ var error = new Error(message);
548
+ return enhanceError(error, config, code, request, response);
549
+ };
550
+
551
+ /**
552
+ * Resolve or reject a Promise based on response status.
553
+ *
554
+ * @param {Function} resolve A function that resolves the promise.
555
+ * @param {Function} reject A function that rejects the promise.
556
+ * @param {object} response The response.
557
+ */
558
+ var settle = function settle(resolve, reject, response) {
559
+ var validateStatus = response.config.validateStatus;
560
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
561
+ resolve(response);
562
+ } else {
563
+ reject(createError(
564
+ 'Request failed with status code ' + response.status,
565
+ response.config,
566
+ null,
567
+ response.request,
568
+ response
569
+ ));
570
+ }
571
+ };
572
+
573
+ var cookies = (
574
+ utils$1.isStandardBrowserEnv() ?
575
+
576
+ // Standard browser envs support document.cookie
577
+ (function standardBrowserEnv() {
578
+ return {
579
+ write: function write(name, value, expires, path, domain, secure) {
580
+ var cookie = [];
581
+ cookie.push(name + '=' + encodeURIComponent(value));
582
+
583
+ if (utils$1.isNumber(expires)) {
584
+ cookie.push('expires=' + new Date(expires).toGMTString());
585
+ }
586
+
587
+ if (utils$1.isString(path)) {
588
+ cookie.push('path=' + path);
589
+ }
590
+
591
+ if (utils$1.isString(domain)) {
592
+ cookie.push('domain=' + domain);
593
+ }
594
+
595
+ if (secure === true) {
596
+ cookie.push('secure');
597
+ }
598
+
599
+ document.cookie = cookie.join('; ');
600
+ },
601
+
602
+ read: function read(name) {
603
+ var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
604
+ return (match ? decodeURIComponent(match[3]) : null);
605
+ },
606
+
607
+ remove: function remove(name) {
608
+ this.write(name, '', Date.now() - 86400000);
609
+ }
610
+ };
611
+ })() :
612
+
613
+ // Non standard browser env (web workers, react-native) lack needed support.
614
+ (function nonStandardBrowserEnv() {
615
+ return {
616
+ write: function write() {},
617
+ read: function read() { return null; },
618
+ remove: function remove() {}
619
+ };
620
+ })()
621
+ );
622
+
623
+ /**
624
+ * Determines whether the specified URL is absolute
625
+ *
626
+ * @param {string} url The URL to test
627
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
628
+ */
629
+ var isAbsoluteURL = function isAbsoluteURL(url) {
630
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
631
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
632
+ // by any combination of letters, digits, plus, period, or hyphen.
633
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
634
+ };
635
+
636
+ /**
637
+ * Creates a new URL by combining the specified URLs
638
+ *
639
+ * @param {string} baseURL The base URL
640
+ * @param {string} relativeURL The relative URL
641
+ * @returns {string} The combined URL
642
+ */
643
+ var combineURLs = function combineURLs(baseURL, relativeURL) {
644
+ return relativeURL
645
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
646
+ : baseURL;
647
+ };
648
+
649
+ /**
650
+ * Creates a new URL by combining the baseURL with the requestedURL,
651
+ * only when the requestedURL is not already an absolute URL.
652
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
653
+ *
654
+ * @param {string} baseURL The base URL
655
+ * @param {string} requestedURL Absolute or relative URL to combine
656
+ * @returns {string} The combined full path
657
+ */
658
+ var buildFullPath = function buildFullPath(baseURL, requestedURL) {
659
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
660
+ return combineURLs(baseURL, requestedURL);
661
+ }
662
+ return requestedURL;
663
+ };
664
+
665
+ // Headers whose duplicates are ignored by node
666
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
667
+ var ignoreDuplicateOf = [
668
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
669
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
670
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
671
+ 'referer', 'retry-after', 'user-agent'
672
+ ];
673
+
674
+ /**
675
+ * Parse headers into an object
676
+ *
677
+ * ```
678
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
679
+ * Content-Type: application/json
680
+ * Connection: keep-alive
681
+ * Transfer-Encoding: chunked
682
+ * ```
683
+ *
684
+ * @param {String} headers Headers needing to be parsed
685
+ * @returns {Object} Headers parsed into an object
686
+ */
687
+ var parseHeaders = function parseHeaders(headers) {
688
+ var parsed = {};
689
+ var key;
690
+ var val;
691
+ var i;
692
+
693
+ if (!headers) { return parsed; }
694
+
695
+ utils$1.forEach(headers.split('\n'), function parser(line) {
696
+ i = line.indexOf(':');
697
+ key = utils$1.trim(line.substr(0, i)).toLowerCase();
698
+ val = utils$1.trim(line.substr(i + 1));
699
+
700
+ if (key) {
701
+ if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
702
+ return;
703
+ }
704
+ if (key === 'set-cookie') {
705
+ parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
706
+ } else {
707
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
708
+ }
709
+ }
710
+ });
711
+
712
+ return parsed;
713
+ };
714
+
715
+ var isURLSameOrigin = (
716
+ utils$1.isStandardBrowserEnv() ?
717
+
718
+ // Standard browser envs have full support of the APIs needed to test
719
+ // whether the request URL is of the same origin as current location.
720
+ (function standardBrowserEnv() {
721
+ var msie = /(msie|trident)/i.test(navigator.userAgent);
722
+ var urlParsingNode = document.createElement('a');
723
+ var originURL;
724
+
725
+ /**
726
+ * Parse a URL to discover it's components
727
+ *
728
+ * @param {String} url The URL to be parsed
729
+ * @returns {Object}
730
+ */
731
+ function resolveURL(url) {
732
+ var href = url;
733
+
734
+ if (msie) {
735
+ // IE needs attribute set twice to normalize properties
736
+ urlParsingNode.setAttribute('href', href);
737
+ href = urlParsingNode.href;
738
+ }
739
+
740
+ urlParsingNode.setAttribute('href', href);
741
+
742
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
743
+ return {
744
+ href: urlParsingNode.href,
745
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
746
+ host: urlParsingNode.host,
747
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
748
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
749
+ hostname: urlParsingNode.hostname,
750
+ port: urlParsingNode.port,
751
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
752
+ urlParsingNode.pathname :
753
+ '/' + urlParsingNode.pathname
754
+ };
755
+ }
756
+
757
+ originURL = resolveURL(window.location.href);
758
+
759
+ /**
760
+ * Determine if a URL shares the same origin as the current location
761
+ *
762
+ * @param {String} requestURL The URL to test
763
+ * @returns {boolean} True if URL shares the same origin, otherwise false
764
+ */
765
+ return function isURLSameOrigin(requestURL) {
766
+ var parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
767
+ return (parsed.protocol === originURL.protocol &&
768
+ parsed.host === originURL.host);
769
+ };
770
+ })() :
771
+
772
+ // Non standard browser envs (web workers, react-native) lack needed support.
773
+ (function nonStandardBrowserEnv() {
774
+ return function isURLSameOrigin() {
775
+ return true;
776
+ };
777
+ })()
778
+ );
779
+
780
+ /**
781
+ * A `Cancel` is an object that is thrown when an operation is canceled.
782
+ *
783
+ * @class
784
+ * @param {string=} message The message.
785
+ */
786
+ function Cancel(message) {
787
+ this.message = message;
788
+ }
789
+
790
+ Cancel.prototype.toString = function toString() {
791
+ return 'Cancel' + (this.message ? ': ' + this.message : '');
792
+ };
793
+
794
+ Cancel.prototype.__CANCEL__ = true;
795
+
796
+ var Cancel_1 = Cancel;
797
+
798
+ var xhr = function xhrAdapter(config) {
799
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
800
+ var requestData = config.data;
801
+ var requestHeaders = config.headers;
802
+ var responseType = config.responseType;
803
+ var onCanceled;
804
+ function done() {
805
+ if (config.cancelToken) {
806
+ config.cancelToken.unsubscribe(onCanceled);
807
+ }
808
+
809
+ if (config.signal) {
810
+ config.signal.removeEventListener('abort', onCanceled);
811
+ }
812
+ }
813
+
814
+ if (utils$1.isFormData(requestData)) {
815
+ delete requestHeaders['Content-Type']; // Let the browser set it
816
+ }
817
+
818
+ var request = new XMLHttpRequest();
819
+
820
+ // HTTP basic authentication
821
+ if (config.auth) {
822
+ var username = config.auth.username || '';
823
+ var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
824
+ requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
825
+ }
826
+
827
+ var fullPath = buildFullPath(config.baseURL, config.url);
828
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
829
+
830
+ // Set the request timeout in MS
831
+ request.timeout = config.timeout;
832
+
833
+ function onloadend() {
834
+ if (!request) {
835
+ return;
836
+ }
837
+ // Prepare the response
838
+ var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
839
+ var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
840
+ request.responseText : request.response;
841
+ var response = {
842
+ data: responseData,
843
+ status: request.status,
844
+ statusText: request.statusText,
845
+ headers: responseHeaders,
846
+ config: config,
847
+ request: request
848
+ };
849
+
850
+ settle(function _resolve(value) {
851
+ resolve(value);
852
+ done();
853
+ }, function _reject(err) {
854
+ reject(err);
855
+ done();
856
+ }, response);
857
+
858
+ // Clean up request
859
+ request = null;
860
+ }
861
+
862
+ if ('onloadend' in request) {
863
+ // Use onloadend if available
864
+ request.onloadend = onloadend;
865
+ } else {
866
+ // Listen for ready state to emulate onloadend
867
+ request.onreadystatechange = function handleLoad() {
868
+ if (!request || request.readyState !== 4) {
869
+ return;
870
+ }
871
+
872
+ // The request errored out and we didn't get a response, this will be
873
+ // handled by onerror instead
874
+ // With one exception: request that using file: protocol, most browsers
875
+ // will return status as 0 even though it's a successful request
876
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
877
+ return;
878
+ }
879
+ // readystate handler is calling before onerror or ontimeout handlers,
880
+ // so we should call onloadend on the next 'tick'
881
+ setTimeout(onloadend);
882
+ };
883
+ }
884
+
885
+ // Handle browser request cancellation (as opposed to a manual cancellation)
886
+ request.onabort = function handleAbort() {
887
+ if (!request) {
888
+ return;
889
+ }
890
+
891
+ reject(createError('Request aborted', config, 'ECONNABORTED', request));
892
+
893
+ // Clean up request
894
+ request = null;
895
+ };
896
+
897
+ // Handle low level network errors
898
+ request.onerror = function handleError() {
899
+ // Real errors are hidden from us by the browser
900
+ // onerror should only fire if it's a network error
901
+ reject(createError('Network Error', config, null, request));
902
+
903
+ // Clean up request
904
+ request = null;
905
+ };
906
+
907
+ // Handle timeout
908
+ request.ontimeout = function handleTimeout() {
909
+ var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
910
+ var transitional$1 = config.transitional || transitional;
911
+ if (config.timeoutErrorMessage) {
912
+ timeoutErrorMessage = config.timeoutErrorMessage;
913
+ }
914
+ reject(createError(
915
+ timeoutErrorMessage,
916
+ config,
917
+ transitional$1.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
918
+ request));
919
+
920
+ // Clean up request
921
+ request = null;
922
+ };
923
+
924
+ // Add xsrf header
925
+ // This is only done if running in a standard browser environment.
926
+ // Specifically not if we're in a web worker, or react-native.
927
+ if (utils$1.isStandardBrowserEnv()) {
928
+ // Add xsrf header
929
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
930
+ cookies.read(config.xsrfCookieName) :
931
+ undefined;
932
+
933
+ if (xsrfValue) {
934
+ requestHeaders[config.xsrfHeaderName] = xsrfValue;
935
+ }
936
+ }
937
+
938
+ // Add headers to the request
939
+ if ('setRequestHeader' in request) {
940
+ utils$1.forEach(requestHeaders, function setRequestHeader(val, key) {
941
+ if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
942
+ // Remove Content-Type if data is undefined
943
+ delete requestHeaders[key];
944
+ } else {
945
+ // Otherwise add header to the request
946
+ request.setRequestHeader(key, val);
947
+ }
948
+ });
949
+ }
950
+
951
+ // Add withCredentials to request if needed
952
+ if (!utils$1.isUndefined(config.withCredentials)) {
953
+ request.withCredentials = !!config.withCredentials;
954
+ }
955
+
956
+ // Add responseType to request if needed
957
+ if (responseType && responseType !== 'json') {
958
+ request.responseType = config.responseType;
959
+ }
960
+
961
+ // Handle progress if needed
962
+ if (typeof config.onDownloadProgress === 'function') {
963
+ request.addEventListener('progress', config.onDownloadProgress);
964
+ }
965
+
966
+ // Not all browsers support upload events
967
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
968
+ request.upload.addEventListener('progress', config.onUploadProgress);
969
+ }
970
+
971
+ if (config.cancelToken || config.signal) {
972
+ // Handle cancellation
973
+ // eslint-disable-next-line func-names
974
+ onCanceled = function(cancel) {
975
+ if (!request) {
976
+ return;
977
+ }
978
+ reject(!cancel || (cancel && cancel.type) ? new Cancel_1('canceled') : cancel);
979
+ request.abort();
980
+ request = null;
981
+ };
982
+
983
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
984
+ if (config.signal) {
985
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
986
+ }
987
+ }
988
+
989
+ if (!requestData) {
990
+ requestData = null;
991
+ }
992
+
993
+ // Send the request
994
+ request.send(requestData);
995
+ });
996
+ };
997
+
998
+ var DEFAULT_CONTENT_TYPE = {
999
+ 'Content-Type': 'application/x-www-form-urlencoded'
1000
+ };
1001
+
1002
+ function setContentTypeIfUnset(headers, value) {
1003
+ if (!utils$1.isUndefined(headers) && utils$1.isUndefined(headers['Content-Type'])) {
1004
+ headers['Content-Type'] = value;
1005
+ }
1006
+ }
1007
+
1008
+ function getDefaultAdapter() {
1009
+ var adapter;
1010
+ if (typeof XMLHttpRequest !== 'undefined') {
1011
+ // For browsers use XHR adapter
1012
+ adapter = xhr;
1013
+ } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
1014
+ // For node use HTTP adapter
1015
+ adapter = xhr;
1016
+ }
1017
+ return adapter;
1018
+ }
1019
+
1020
+ function stringifySafely(rawValue, parser, encoder) {
1021
+ if (utils$1.isString(rawValue)) {
1022
+ try {
1023
+ (parser || JSON.parse)(rawValue);
1024
+ return utils$1.trim(rawValue);
1025
+ } catch (e) {
1026
+ if (e.name !== 'SyntaxError') {
1027
+ throw e;
1028
+ }
1029
+ }
1030
+ }
1031
+
1032
+ return (encoder || JSON.stringify)(rawValue);
1033
+ }
1034
+
1035
+ var defaults$2 = {
1036
+
1037
+ transitional: transitional,
1038
+
1039
+ adapter: getDefaultAdapter(),
1040
+
1041
+ transformRequest: [function transformRequest(data, headers) {
1042
+ normalizeHeaderName(headers, 'Accept');
1043
+ normalizeHeaderName(headers, 'Content-Type');
1044
+
1045
+ if (utils$1.isFormData(data) ||
1046
+ utils$1.isArrayBuffer(data) ||
1047
+ utils$1.isBuffer(data) ||
1048
+ utils$1.isStream(data) ||
1049
+ utils$1.isFile(data) ||
1050
+ utils$1.isBlob(data)
1051
+ ) {
1052
+ return data;
1053
+ }
1054
+ if (utils$1.isArrayBufferView(data)) {
1055
+ return data.buffer;
1056
+ }
1057
+ if (utils$1.isURLSearchParams(data)) {
1058
+ setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
1059
+ return data.toString();
1060
+ }
1061
+ if (utils$1.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
1062
+ setContentTypeIfUnset(headers, 'application/json');
1063
+ return stringifySafely(data);
1064
+ }
1065
+ return data;
1066
+ }],
1067
+
1068
+ transformResponse: [function transformResponse(data) {
1069
+ var transitional = this.transitional || defaults$2.transitional;
1070
+ var silentJSONParsing = transitional && transitional.silentJSONParsing;
1071
+ var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1072
+ var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
1073
+
1074
+ if (strictJSONParsing || (forcedJSONParsing && utils$1.isString(data) && data.length)) {
1075
+ try {
1076
+ return JSON.parse(data);
1077
+ } catch (e) {
1078
+ if (strictJSONParsing) {
1079
+ if (e.name === 'SyntaxError') {
1080
+ throw enhanceError(e, this, 'E_JSON_PARSE');
1081
+ }
1082
+ throw e;
1083
+ }
1084
+ }
1085
+ }
1086
+
1087
+ return data;
1088
+ }],
1089
+
1090
+ /**
1091
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1092
+ * timeout is not created.
1093
+ */
1094
+ timeout: 0,
1095
+
1096
+ xsrfCookieName: 'XSRF-TOKEN',
1097
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1098
+
1099
+ maxContentLength: -1,
1100
+ maxBodyLength: -1,
1101
+
1102
+ validateStatus: function validateStatus(status) {
1103
+ return status >= 200 && status < 300;
1104
+ },
1105
+
1106
+ headers: {
1107
+ common: {
1108
+ 'Accept': 'application/json, text/plain, */*'
1109
+ }
1110
+ }
1111
+ };
1112
+
1113
+ utils$1.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1114
+ defaults$2.headers[method] = {};
1115
+ });
1116
+
1117
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1118
+ defaults$2.headers[method] = utils$1.merge(DEFAULT_CONTENT_TYPE);
1119
+ });
1120
+
1121
+ var defaults_1 = defaults$2;
1122
+
1123
+ /**
1124
+ * Transform the data for a request or a response
1125
+ *
1126
+ * @param {Object|String} data The data to be transformed
1127
+ * @param {Array} headers The headers for the request or response
1128
+ * @param {Array|Function} fns A single function or Array of functions
1129
+ * @returns {*} The resulting transformed data
1130
+ */
1131
+ var transformData = function transformData(data, headers, fns) {
1132
+ var context = this || defaults_1;
1133
+ /*eslint no-param-reassign:0*/
1134
+ utils$1.forEach(fns, function transform(fn) {
1135
+ data = fn.call(context, data, headers);
1136
+ });
1137
+
1138
+ return data;
1139
+ };
1140
+
1141
+ var isCancel = function isCancel(value) {
1142
+ return !!(value && value.__CANCEL__);
1143
+ };
1144
+
1145
+ /**
1146
+ * Throws a `Cancel` if cancellation has been requested.
1147
+ */
1148
+ function throwIfCancellationRequested(config) {
1149
+ if (config.cancelToken) {
1150
+ config.cancelToken.throwIfRequested();
1151
+ }
1152
+
1153
+ if (config.signal && config.signal.aborted) {
1154
+ throw new Cancel_1('canceled');
1155
+ }
1156
+ }
1157
+
1158
+ /**
1159
+ * Dispatch a request to the server using the configured adapter.
1160
+ *
1161
+ * @param {object} config The config that is to be used for the request
1162
+ * @returns {Promise} The Promise to be fulfilled
1163
+ */
1164
+ var dispatchRequest = function dispatchRequest(config) {
1165
+ throwIfCancellationRequested(config);
1166
+
1167
+ // Ensure headers exist
1168
+ config.headers = config.headers || {};
1169
+
1170
+ // Transform request data
1171
+ config.data = transformData.call(
1172
+ config,
1173
+ config.data,
1174
+ config.headers,
1175
+ config.transformRequest
1176
+ );
1177
+
1178
+ // Flatten headers
1179
+ config.headers = utils$1.merge(
1180
+ config.headers.common || {},
1181
+ config.headers[config.method] || {},
1182
+ config.headers
1183
+ );
1184
+
1185
+ utils$1.forEach(
1186
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
1187
+ function cleanHeaderConfig(method) {
1188
+ delete config.headers[method];
1189
+ }
1190
+ );
1191
+
1192
+ var adapter = config.adapter || defaults_1.adapter;
1193
+
1194
+ return adapter(config).then(function onAdapterResolution(response) {
1195
+ throwIfCancellationRequested(config);
1196
+
1197
+ // Transform response data
1198
+ response.data = transformData.call(
1199
+ config,
1200
+ response.data,
1201
+ response.headers,
1202
+ config.transformResponse
1203
+ );
1204
+
1205
+ return response;
1206
+ }, function onAdapterRejection(reason) {
1207
+ if (!isCancel(reason)) {
1208
+ throwIfCancellationRequested(config);
1209
+
1210
+ // Transform response data
1211
+ if (reason && reason.response) {
1212
+ reason.response.data = transformData.call(
1213
+ config,
1214
+ reason.response.data,
1215
+ reason.response.headers,
1216
+ config.transformResponse
1217
+ );
1218
+ }
1219
+ }
1220
+
1221
+ return Promise.reject(reason);
1222
+ });
1223
+ };
1224
+
1225
+ /**
1226
+ * Config-specific merge-function which creates a new config-object
1227
+ * by merging two configuration objects together.
1228
+ *
1229
+ * @param {Object} config1
1230
+ * @param {Object} config2
1231
+ * @returns {Object} New object resulting from merging config2 to config1
1232
+ */
1233
+ var mergeConfig = function mergeConfig(config1, config2) {
1234
+ // eslint-disable-next-line no-param-reassign
1235
+ config2 = config2 || {};
1236
+ var config = {};
1237
+
1238
+ function getMergedValue(target, source) {
1239
+ if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
1240
+ return utils$1.merge(target, source);
1241
+ } else if (utils$1.isPlainObject(source)) {
1242
+ return utils$1.merge({}, source);
1243
+ } else if (utils$1.isArray(source)) {
1244
+ return source.slice();
1245
+ }
1246
+ return source;
1247
+ }
1248
+
1249
+ // eslint-disable-next-line consistent-return
1250
+ function mergeDeepProperties(prop) {
1251
+ if (!utils$1.isUndefined(config2[prop])) {
1252
+ return getMergedValue(config1[prop], config2[prop]);
1253
+ } else if (!utils$1.isUndefined(config1[prop])) {
1254
+ return getMergedValue(undefined, config1[prop]);
1255
+ }
1256
+ }
1257
+
1258
+ // eslint-disable-next-line consistent-return
1259
+ function valueFromConfig2(prop) {
1260
+ if (!utils$1.isUndefined(config2[prop])) {
1261
+ return getMergedValue(undefined, config2[prop]);
1262
+ }
1263
+ }
1264
+
1265
+ // eslint-disable-next-line consistent-return
1266
+ function defaultToConfig2(prop) {
1267
+ if (!utils$1.isUndefined(config2[prop])) {
1268
+ return getMergedValue(undefined, config2[prop]);
1269
+ } else if (!utils$1.isUndefined(config1[prop])) {
1270
+ return getMergedValue(undefined, config1[prop]);
1271
+ }
1272
+ }
1273
+
1274
+ // eslint-disable-next-line consistent-return
1275
+ function mergeDirectKeys(prop) {
1276
+ if (prop in config2) {
1277
+ return getMergedValue(config1[prop], config2[prop]);
1278
+ } else if (prop in config1) {
1279
+ return getMergedValue(undefined, config1[prop]);
1280
+ }
1281
+ }
1282
+
1283
+ var mergeMap = {
1284
+ 'url': valueFromConfig2,
1285
+ 'method': valueFromConfig2,
1286
+ 'data': valueFromConfig2,
1287
+ 'baseURL': defaultToConfig2,
1288
+ 'transformRequest': defaultToConfig2,
1289
+ 'transformResponse': defaultToConfig2,
1290
+ 'paramsSerializer': defaultToConfig2,
1291
+ 'timeout': defaultToConfig2,
1292
+ 'timeoutMessage': defaultToConfig2,
1293
+ 'withCredentials': defaultToConfig2,
1294
+ 'adapter': defaultToConfig2,
1295
+ 'responseType': defaultToConfig2,
1296
+ 'xsrfCookieName': defaultToConfig2,
1297
+ 'xsrfHeaderName': defaultToConfig2,
1298
+ 'onUploadProgress': defaultToConfig2,
1299
+ 'onDownloadProgress': defaultToConfig2,
1300
+ 'decompress': defaultToConfig2,
1301
+ 'maxContentLength': defaultToConfig2,
1302
+ 'maxBodyLength': defaultToConfig2,
1303
+ 'transport': defaultToConfig2,
1304
+ 'httpAgent': defaultToConfig2,
1305
+ 'httpsAgent': defaultToConfig2,
1306
+ 'cancelToken': defaultToConfig2,
1307
+ 'socketPath': defaultToConfig2,
1308
+ 'responseEncoding': defaultToConfig2,
1309
+ 'validateStatus': mergeDirectKeys
1310
+ };
1311
+
1312
+ utils$1.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
1313
+ var merge = mergeMap[prop] || mergeDeepProperties;
1314
+ var configValue = merge(prop);
1315
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
1316
+ });
1317
+
1318
+ return config;
1319
+ };
1320
+
1321
+ var data = {
1322
+ "version": "0.26.1"
1323
+ };
1324
+
1325
+ var VERSION = data.version;
1326
+
1327
+ var validators$1 = {};
1328
+
1329
+ // eslint-disable-next-line func-names
1330
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
1331
+ validators$1[type] = function validator(thing) {
1332
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
1333
+ };
1334
+ });
1335
+
1336
+ var deprecatedWarnings = {};
1337
+
1338
+ /**
1339
+ * Transitional option validator
1340
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
1341
+ * @param {string?} version - deprecated version / removed since version
1342
+ * @param {string?} message - some message with additional info
1343
+ * @returns {function}
1344
+ */
1345
+ validators$1.transitional = function transitional(validator, version, message) {
1346
+ function formatMessage(opt, desc) {
1347
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
1348
+ }
1349
+
1350
+ // eslint-disable-next-line func-names
1351
+ return function(value, opt, opts) {
1352
+ if (validator === false) {
1353
+ throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
1354
+ }
1355
+
1356
+ if (version && !deprecatedWarnings[opt]) {
1357
+ deprecatedWarnings[opt] = true;
1358
+ // eslint-disable-next-line no-console
1359
+ console.warn(
1360
+ formatMessage(
1361
+ opt,
1362
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
1363
+ )
1364
+ );
1365
+ }
1366
+
1367
+ return validator ? validator(value, opt, opts) : true;
1368
+ };
1369
+ };
1370
+
1371
+ /**
1372
+ * Assert object's properties type
1373
+ * @param {object} options
1374
+ * @param {object} schema
1375
+ * @param {boolean?} allowUnknown
1376
+ */
1377
+
1378
+ function assertOptions(options, schema, allowUnknown) {
1379
+ if (typeof options !== 'object') {
1380
+ throw new TypeError('options must be an object');
1381
+ }
1382
+ var keys = Object.keys(options);
1383
+ var i = keys.length;
1384
+ while (i-- > 0) {
1385
+ var opt = keys[i];
1386
+ var validator = schema[opt];
1387
+ if (validator) {
1388
+ var value = options[opt];
1389
+ var result = value === undefined || validator(value, opt, options);
1390
+ if (result !== true) {
1391
+ throw new TypeError('option ' + opt + ' must be ' + result);
1392
+ }
1393
+ continue;
1394
+ }
1395
+ if (allowUnknown !== true) {
1396
+ throw Error('Unknown option ' + opt);
1397
+ }
1398
+ }
1399
+ }
1400
+
1401
+ var validator = {
1402
+ assertOptions: assertOptions,
1403
+ validators: validators$1
1404
+ };
1405
+
1406
+ var validators = validator.validators;
1407
+ /**
1408
+ * Create a new instance of Axios
1409
+ *
1410
+ * @param {Object} instanceConfig The default config for the instance
1411
+ */
1412
+ function Axios(instanceConfig) {
1413
+ this.defaults = instanceConfig;
1414
+ this.interceptors = {
1415
+ request: new InterceptorManager_1(),
1416
+ response: new InterceptorManager_1()
1417
+ };
1418
+ }
1419
+
1420
+ /**
1421
+ * Dispatch a request
1422
+ *
1423
+ * @param {Object} config The config specific for this request (merged with this.defaults)
1424
+ */
1425
+ Axios.prototype.request = function request(configOrUrl, config) {
1426
+ /*eslint no-param-reassign:0*/
1427
+ // Allow for axios('example/url'[, config]) a la fetch API
1428
+ if (typeof configOrUrl === 'string') {
1429
+ config = config || {};
1430
+ config.url = configOrUrl;
1431
+ } else {
1432
+ config = configOrUrl || {};
1433
+ }
1434
+
1435
+ config = mergeConfig(this.defaults, config);
1436
+
1437
+ // Set config.method
1438
+ if (config.method) {
1439
+ config.method = config.method.toLowerCase();
1440
+ } else if (this.defaults.method) {
1441
+ config.method = this.defaults.method.toLowerCase();
1442
+ } else {
1443
+ config.method = 'get';
1444
+ }
1445
+
1446
+ var transitional = config.transitional;
1447
+
1448
+ if (transitional !== undefined) {
1449
+ validator.assertOptions(transitional, {
1450
+ silentJSONParsing: validators.transitional(validators.boolean),
1451
+ forcedJSONParsing: validators.transitional(validators.boolean),
1452
+ clarifyTimeoutError: validators.transitional(validators.boolean)
1453
+ }, false);
1454
+ }
1455
+
1456
+ // filter out skipped interceptors
1457
+ var requestInterceptorChain = [];
1458
+ var synchronousRequestInterceptors = true;
1459
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
1460
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
1461
+ return;
1462
+ }
1463
+
1464
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
1465
+
1466
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
1467
+ });
1468
+
1469
+ var responseInterceptorChain = [];
1470
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
1471
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
1472
+ });
1473
+
1474
+ var promise;
1475
+
1476
+ if (!synchronousRequestInterceptors) {
1477
+ var chain = [dispatchRequest, undefined];
1478
+
1479
+ Array.prototype.unshift.apply(chain, requestInterceptorChain);
1480
+ chain = chain.concat(responseInterceptorChain);
1481
+
1482
+ promise = Promise.resolve(config);
1483
+ while (chain.length) {
1484
+ promise = promise.then(chain.shift(), chain.shift());
1485
+ }
1486
+
1487
+ return promise;
1488
+ }
1489
+
1490
+
1491
+ var newConfig = config;
1492
+ while (requestInterceptorChain.length) {
1493
+ var onFulfilled = requestInterceptorChain.shift();
1494
+ var onRejected = requestInterceptorChain.shift();
1495
+ try {
1496
+ newConfig = onFulfilled(newConfig);
1497
+ } catch (error) {
1498
+ onRejected(error);
1499
+ break;
1500
+ }
1501
+ }
1502
+
1503
+ try {
1504
+ promise = dispatchRequest(newConfig);
1505
+ } catch (error) {
1506
+ return Promise.reject(error);
1507
+ }
1508
+
1509
+ while (responseInterceptorChain.length) {
1510
+ promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
1511
+ }
1512
+
1513
+ return promise;
1514
+ };
1515
+
1516
+ Axios.prototype.getUri = function getUri(config) {
1517
+ config = mergeConfig(this.defaults, config);
1518
+ return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
1519
+ };
1520
+
1521
+ // Provide aliases for supported request methods
1522
+ utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
1523
+ /*eslint func-names:0*/
1524
+ Axios.prototype[method] = function(url, config) {
1525
+ return this.request(mergeConfig(config || {}, {
1526
+ method: method,
1527
+ url: url,
1528
+ data: (config || {}).data
1529
+ }));
1530
+ };
1531
+ });
1532
+
1533
+ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1534
+ /*eslint func-names:0*/
1535
+ Axios.prototype[method] = function(url, data, config) {
1536
+ return this.request(mergeConfig(config || {}, {
1537
+ method: method,
1538
+ url: url,
1539
+ data: data
1540
+ }));
1541
+ };
1542
+ });
1543
+
1544
+ var Axios_1 = Axios;
1545
+
1546
+ /**
1547
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
1548
+ *
1549
+ * @class
1550
+ * @param {Function} executor The executor function.
1551
+ */
1552
+ function CancelToken(executor) {
1553
+ if (typeof executor !== 'function') {
1554
+ throw new TypeError('executor must be a function.');
1555
+ }
1556
+
1557
+ var resolvePromise;
1558
+
1559
+ this.promise = new Promise(function promiseExecutor(resolve) {
1560
+ resolvePromise = resolve;
1561
+ });
1562
+
1563
+ var token = this;
1564
+
1565
+ // eslint-disable-next-line func-names
1566
+ this.promise.then(function(cancel) {
1567
+ if (!token._listeners) return;
1568
+
1569
+ var i;
1570
+ var l = token._listeners.length;
1571
+
1572
+ for (i = 0; i < l; i++) {
1573
+ token._listeners[i](cancel);
1574
+ }
1575
+ token._listeners = null;
1576
+ });
1577
+
1578
+ // eslint-disable-next-line func-names
1579
+ this.promise.then = function(onfulfilled) {
1580
+ var _resolve;
1581
+ // eslint-disable-next-line func-names
1582
+ var promise = new Promise(function(resolve) {
1583
+ token.subscribe(resolve);
1584
+ _resolve = resolve;
1585
+ }).then(onfulfilled);
1586
+
1587
+ promise.cancel = function reject() {
1588
+ token.unsubscribe(_resolve);
1589
+ };
1590
+
1591
+ return promise;
1592
+ };
1593
+
1594
+ executor(function cancel(message) {
1595
+ if (token.reason) {
1596
+ // Cancellation has already been requested
1597
+ return;
1598
+ }
1599
+
1600
+ token.reason = new Cancel_1(message);
1601
+ resolvePromise(token.reason);
1602
+ });
1603
+ }
1604
+
1605
+ /**
1606
+ * Throws a `Cancel` if cancellation has been requested.
1607
+ */
1608
+ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1609
+ if (this.reason) {
1610
+ throw this.reason;
1611
+ }
1612
+ };
1613
+
1614
+ /**
1615
+ * Subscribe to the cancel signal
1616
+ */
1617
+
1618
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1619
+ if (this.reason) {
1620
+ listener(this.reason);
1621
+ return;
1622
+ }
1623
+
1624
+ if (this._listeners) {
1625
+ this._listeners.push(listener);
1626
+ } else {
1627
+ this._listeners = [listener];
1628
+ }
1629
+ };
1630
+
1631
+ /**
1632
+ * Unsubscribe from the cancel signal
1633
+ */
1634
+
1635
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1636
+ if (!this._listeners) {
1637
+ return;
1638
+ }
1639
+ var index = this._listeners.indexOf(listener);
1640
+ if (index !== -1) {
1641
+ this._listeners.splice(index, 1);
1642
+ }
1643
+ };
1644
+
1645
+ /**
1646
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1647
+ * cancels the `CancelToken`.
1648
+ */
1649
+ CancelToken.source = function source() {
1650
+ var cancel;
1651
+ var token = new CancelToken(function executor(c) {
1652
+ cancel = c;
1653
+ });
1654
+ return {
1655
+ token: token,
1656
+ cancel: cancel
1657
+ };
1658
+ };
1659
+
1660
+ var CancelToken_1 = CancelToken;
1661
+
1662
+ /**
1663
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
1664
+ *
1665
+ * Common use case would be to use `Function.prototype.apply`.
1666
+ *
1667
+ * ```js
1668
+ * function f(x, y, z) {}
1669
+ * var args = [1, 2, 3];
1670
+ * f.apply(null, args);
1671
+ * ```
1672
+ *
1673
+ * With `spread` this example can be re-written.
1674
+ *
1675
+ * ```js
1676
+ * spread(function(x, y, z) {})([1, 2, 3]);
1677
+ * ```
1678
+ *
1679
+ * @param {Function} callback
1680
+ * @returns {Function}
1681
+ */
1682
+ var spread = function spread(callback) {
1683
+ return function wrap(arr) {
1684
+ return callback.apply(null, arr);
1685
+ };
1686
+ };
1687
+
1688
+ /**
1689
+ * Determines whether the payload is an error thrown by Axios
1690
+ *
1691
+ * @param {*} payload The value to test
1692
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
1693
+ */
1694
+ var isAxiosError = function isAxiosError(payload) {
1695
+ return utils$1.isObject(payload) && (payload.isAxiosError === true);
1696
+ };
1697
+
1698
+ /**
1699
+ * Create an instance of Axios
1700
+ *
1701
+ * @param {Object} defaultConfig The default config for the instance
1702
+ * @return {Axios} A new instance of Axios
1703
+ */
1704
+ function createInstance(defaultConfig) {
1705
+ var context = new Axios_1(defaultConfig);
1706
+ var instance = bind(Axios_1.prototype.request, context);
1707
+
1708
+ // Copy axios.prototype to instance
1709
+ utils$1.extend(instance, Axios_1.prototype, context);
1710
+
1711
+ // Copy context to instance
1712
+ utils$1.extend(instance, context);
1713
+
1714
+ // Factory for creating new instances
1715
+ instance.create = function create(instanceConfig) {
1716
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
1717
+ };
1718
+
1719
+ return instance;
1720
+ }
1721
+
1722
+ // Create the default instance to be exported
1723
+ var axios$1 = createInstance(defaults_1);
1724
+
1725
+ // Expose Axios class to allow class inheritance
1726
+ axios$1.Axios = Axios_1;
1727
+
1728
+ // Expose Cancel & CancelToken
1729
+ axios$1.Cancel = Cancel_1;
1730
+ axios$1.CancelToken = CancelToken_1;
1731
+ axios$1.isCancel = isCancel;
1732
+ axios$1.VERSION = data.version;
1733
+
1734
+ // Expose all/spread
1735
+ axios$1.all = function all(promises) {
1736
+ return Promise.all(promises);
1737
+ };
1738
+ axios$1.spread = spread;
1739
+
1740
+ // Expose isAxiosError
1741
+ axios$1.isAxiosError = isAxiosError;
1742
+
1743
+ var axios_1 = axios$1;
1744
+
1745
+ // Allow use of default import syntax in TypeScript
1746
+ var _default = axios$1;
1747
+ axios_1.default = _default;
1748
+
1749
+ var axios = axios_1;
1750
+
1751
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1752
+ var shams = function hasSymbols() {
1753
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1754
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1755
+
1756
+ var obj = {};
1757
+ var sym = Symbol('test');
1758
+ var symObj = Object(sym);
1759
+ if (typeof sym === 'string') { return false; }
1760
+
1761
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1762
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1763
+
1764
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1765
+ // if (sym instanceof Symbol) { return false; }
1766
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1767
+ // if (!(symObj instanceof Symbol)) { return false; }
1768
+
1769
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1770
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1771
+
1772
+ var symVal = 42;
1773
+ obj[sym] = symVal;
1774
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1775
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1776
+
1777
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1778
+
1779
+ var syms = Object.getOwnPropertySymbols(obj);
1780
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1781
+
1782
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1783
+
1784
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1785
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1786
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1787
+ }
1788
+
1789
+ return true;
1790
+ };
1791
+
1792
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1793
+
1794
+
1795
+ var hasSymbols$1 = function hasNativeSymbols() {
1796
+ if (typeof origSymbol !== 'function') { return false; }
1797
+ if (typeof Symbol !== 'function') { return false; }
1798
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1799
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1800
+
1801
+ return shams();
1802
+ };
1803
+
1804
+ /* eslint no-invalid-this: 1 */
1805
+
1806
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1807
+ var slice = Array.prototype.slice;
1808
+ var toStr$1 = Object.prototype.toString;
1809
+ var funcType = '[object Function]';
1810
+
1811
+ var implementation = function bind(that) {
1812
+ var target = this;
1813
+ if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
1814
+ throw new TypeError(ERROR_MESSAGE + target);
1815
+ }
1816
+ var args = slice.call(arguments, 1);
1817
+
1818
+ var bound;
1819
+ var binder = function () {
1820
+ if (this instanceof bound) {
1821
+ var result = target.apply(
1822
+ this,
1823
+ args.concat(slice.call(arguments))
1824
+ );
1825
+ if (Object(result) === result) {
1826
+ return result;
1827
+ }
1828
+ return this;
1829
+ } else {
1830
+ return target.apply(
1831
+ that,
1832
+ args.concat(slice.call(arguments))
1833
+ );
1834
+ }
1835
+ };
1836
+
1837
+ var boundLength = Math.max(0, target.length - args.length);
1838
+ var boundArgs = [];
1839
+ for (var i = 0; i < boundLength; i++) {
1840
+ boundArgs.push('$' + i);
1841
+ }
1842
+
1843
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1844
+
1845
+ if (target.prototype) {
1846
+ var Empty = function Empty() {};
1847
+ Empty.prototype = target.prototype;
1848
+ bound.prototype = new Empty();
1849
+ Empty.prototype = null;
1850
+ }
1851
+
1852
+ return bound;
1853
+ };
1854
+
1855
+ var functionBind = Function.prototype.bind || implementation;
1856
+
1857
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1858
+
1859
+ var undefined$1;
1860
+
1861
+ var $SyntaxError = SyntaxError;
1862
+ var $Function = Function;
1863
+ var $TypeError$1 = TypeError;
1864
+
1865
+ // eslint-disable-next-line consistent-return
1866
+ var getEvalledConstructor = function (expressionSyntax) {
1867
+ try {
1868
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1869
+ } catch (e) {}
1870
+ };
1871
+
1872
+ var $gOPD = Object.getOwnPropertyDescriptor;
1873
+
1874
+ var throwTypeError = function () {
1875
+ throw new $TypeError$1();
1876
+ };
1877
+ var ThrowTypeError = $gOPD
1878
+ ? (function () {
1879
+ try {
1880
+ return throwTypeError;
1881
+ } catch (calleeThrows) {
1882
+ try {
1883
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1884
+ return $gOPD(arguments, 'callee').get;
1885
+ } catch (gOPDthrows) {
1886
+ return throwTypeError;
1887
+ }
1888
+ }
1889
+ }())
1890
+ : throwTypeError;
1891
+
1892
+ var hasSymbols = hasSymbols$1();
1893
+
1894
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1895
+
1896
+ var needsEval = {};
1897
+
1898
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1899
+
1900
+ var INTRINSICS = {
1901
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1902
+ '%Array%': Array,
1903
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1904
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
1905
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
1906
+ '%AsyncFunction%': needsEval,
1907
+ '%AsyncGenerator%': needsEval,
1908
+ '%AsyncGeneratorFunction%': needsEval,
1909
+ '%AsyncIteratorPrototype%': needsEval,
1910
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1911
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1912
+ '%Boolean%': Boolean,
1913
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1914
+ '%Date%': Date,
1915
+ '%decodeURI%': decodeURI,
1916
+ '%decodeURIComponent%': decodeURIComponent,
1917
+ '%encodeURI%': encodeURI,
1918
+ '%encodeURIComponent%': encodeURIComponent,
1919
+ '%Error%': Error,
1920
+ '%eval%': eval, // eslint-disable-line no-eval
1921
+ '%EvalError%': EvalError,
1922
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1923
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1924
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1925
+ '%Function%': $Function,
1926
+ '%GeneratorFunction%': needsEval,
1927
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1928
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1929
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1930
+ '%isFinite%': isFinite,
1931
+ '%isNaN%': isNaN,
1932
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1933
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1934
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1935
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1936
+ '%Math%': Math,
1937
+ '%Number%': Number,
1938
+ '%Object%': Object,
1939
+ '%parseFloat%': parseFloat,
1940
+ '%parseInt%': parseInt,
1941
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1942
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1943
+ '%RangeError%': RangeError,
1944
+ '%ReferenceError%': ReferenceError,
1945
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1946
+ '%RegExp%': RegExp,
1947
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1948
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1949
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1950
+ '%String%': String,
1951
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
1952
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
1953
+ '%SyntaxError%': $SyntaxError,
1954
+ '%ThrowTypeError%': ThrowTypeError,
1955
+ '%TypedArray%': TypedArray,
1956
+ '%TypeError%': $TypeError$1,
1957
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1958
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1959
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1960
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1961
+ '%URIError%': URIError,
1962
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1963
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1964
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1965
+ };
1966
+
1967
+ var doEval = function doEval(name) {
1968
+ var value;
1969
+ if (name === '%AsyncFunction%') {
1970
+ value = getEvalledConstructor('async function () {}');
1971
+ } else if (name === '%GeneratorFunction%') {
1972
+ value = getEvalledConstructor('function* () {}');
1973
+ } else if (name === '%AsyncGeneratorFunction%') {
1974
+ value = getEvalledConstructor('async function* () {}');
1975
+ } else if (name === '%AsyncGenerator%') {
1976
+ var fn = doEval('%AsyncGeneratorFunction%');
1977
+ if (fn) {
1978
+ value = fn.prototype;
1979
+ }
1980
+ } else if (name === '%AsyncIteratorPrototype%') {
1981
+ var gen = doEval('%AsyncGenerator%');
1982
+ if (gen) {
1983
+ value = getProto(gen.prototype);
1984
+ }
1985
+ }
1986
+
1987
+ INTRINSICS[name] = value;
1988
+
1989
+ return value;
1990
+ };
1991
+
1992
+ var LEGACY_ALIASES = {
1993
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1994
+ '%ArrayPrototype%': ['Array', 'prototype'],
1995
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1996
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1997
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1998
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1999
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
2000
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
2001
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
2002
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
2003
+ '%DataViewPrototype%': ['DataView', 'prototype'],
2004
+ '%DatePrototype%': ['Date', 'prototype'],
2005
+ '%ErrorPrototype%': ['Error', 'prototype'],
2006
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
2007
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
2008
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
2009
+ '%FunctionPrototype%': ['Function', 'prototype'],
2010
+ '%Generator%': ['GeneratorFunction', 'prototype'],
2011
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
2012
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
2013
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
2014
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
2015
+ '%JSONParse%': ['JSON', 'parse'],
2016
+ '%JSONStringify%': ['JSON', 'stringify'],
2017
+ '%MapPrototype%': ['Map', 'prototype'],
2018
+ '%NumberPrototype%': ['Number', 'prototype'],
2019
+ '%ObjectPrototype%': ['Object', 'prototype'],
2020
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
2021
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
2022
+ '%PromisePrototype%': ['Promise', 'prototype'],
2023
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
2024
+ '%Promise_all%': ['Promise', 'all'],
2025
+ '%Promise_reject%': ['Promise', 'reject'],
2026
+ '%Promise_resolve%': ['Promise', 'resolve'],
2027
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
2028
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
2029
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
2030
+ '%SetPrototype%': ['Set', 'prototype'],
2031
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
2032
+ '%StringPrototype%': ['String', 'prototype'],
2033
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
2034
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
2035
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
2036
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
2037
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
2038
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
2039
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
2040
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
2041
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
2042
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
2043
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
2044
+ };
2045
+
2046
+
2047
+
2048
+ var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
2049
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2050
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2051
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2052
+
2053
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2054
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2055
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2056
+ var stringToPath = function stringToPath(string) {
2057
+ var first = $strSlice(string, 0, 1);
2058
+ var last = $strSlice(string, -1);
2059
+ if (first === '%' && last !== '%') {
2060
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
2061
+ } else if (last === '%' && first !== '%') {
2062
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
2063
+ }
2064
+ var result = [];
2065
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
2066
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
2067
+ });
2068
+ return result;
2069
+ };
2070
+ /* end adaptation */
2071
+
2072
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2073
+ var intrinsicName = name;
2074
+ var alias;
2075
+ if (src(LEGACY_ALIASES, intrinsicName)) {
2076
+ alias = LEGACY_ALIASES[intrinsicName];
2077
+ intrinsicName = '%' + alias[0] + '%';
2078
+ }
2079
+
2080
+ if (src(INTRINSICS, intrinsicName)) {
2081
+ var value = INTRINSICS[intrinsicName];
2082
+ if (value === needsEval) {
2083
+ value = doEval(intrinsicName);
2084
+ }
2085
+ if (typeof value === 'undefined' && !allowMissing) {
2086
+ throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2087
+ }
2088
+
2089
+ return {
2090
+ alias: alias,
2091
+ name: intrinsicName,
2092
+ value: value
2093
+ };
2094
+ }
2095
+
2096
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
2097
+ };
2098
+
2099
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2100
+ if (typeof name !== 'string' || name.length === 0) {
2101
+ throw new $TypeError$1('intrinsic name must be a non-empty string');
2102
+ }
2103
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2104
+ throw new $TypeError$1('"allowMissing" argument must be a boolean');
2105
+ }
2106
+
2107
+ var parts = stringToPath(name);
2108
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
2109
+
2110
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
2111
+ var intrinsicRealName = intrinsic.name;
2112
+ var value = intrinsic.value;
2113
+ var skipFurtherCaching = false;
2114
+
2115
+ var alias = intrinsic.alias;
2116
+ if (alias) {
2117
+ intrinsicBaseName = alias[0];
2118
+ $spliceApply(parts, $concat$1([0, 1], alias));
2119
+ }
2120
+
2121
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
2122
+ var part = parts[i];
2123
+ var first = $strSlice(part, 0, 1);
2124
+ var last = $strSlice(part, -1);
2125
+ if (
2126
+ (
2127
+ (first === '"' || first === "'" || first === '`')
2128
+ || (last === '"' || last === "'" || last === '`')
2129
+ )
2130
+ && first !== last
2131
+ ) {
2132
+ throw new $SyntaxError('property names with quotes must have matching quotes');
2133
+ }
2134
+ if (part === 'constructor' || !isOwn) {
2135
+ skipFurtherCaching = true;
2136
+ }
2137
+
2138
+ intrinsicBaseName += '.' + part;
2139
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
2140
+
2141
+ if (src(INTRINSICS, intrinsicRealName)) {
2142
+ value = INTRINSICS[intrinsicRealName];
2143
+ } else if (value != null) {
2144
+ if (!(part in value)) {
2145
+ if (!allowMissing) {
2146
+ throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
2147
+ }
2148
+ return void undefined$1;
2149
+ }
2150
+ if ($gOPD && (i + 1) >= parts.length) {
2151
+ var desc = $gOPD(value, part);
2152
+ isOwn = !!desc;
2153
+
2154
+ // By convention, when a data property is converted to an accessor
2155
+ // property to emulate a data property that does not suffer from
2156
+ // the override mistake, that accessor's getter is marked with
2157
+ // an `originalValue` property. Here, when we detect this, we
2158
+ // uphold the illusion by pretending to see that original data
2159
+ // property, i.e., returning the value rather than the getter
2160
+ // itself.
2161
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
2162
+ value = desc.get;
2163
+ } else {
2164
+ value = value[part];
2165
+ }
2166
+ } else {
2167
+ isOwn = src(value, part);
2168
+ value = value[part];
2169
+ }
2170
+
2171
+ if (isOwn && !skipFurtherCaching) {
2172
+ INTRINSICS[intrinsicRealName] = value;
2173
+ }
2174
+ }
2175
+ }
2176
+ return value;
2177
+ };
2178
+
2179
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2180
+
2181
+ function getDefaultExportFromCjs (x) {
2182
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2183
+ }
2184
+
2185
+ function createCommonjsModule(fn, basedir, module) {
2186
+ return module = {
2187
+ path: basedir,
2188
+ exports: {},
2189
+ require: function (path, base) {
2190
+ return commonjsRequire();
2191
+ }
2192
+ }, fn(module, module.exports), module.exports;
2193
+ }
2194
+
2195
+ function getAugmentedNamespace(n) {
2196
+ if (n.__esModule) return n;
2197
+ var a = Object.defineProperty({}, '__esModule', {value: true});
2198
+ Object.keys(n).forEach(function (k) {
2199
+ var d = Object.getOwnPropertyDescriptor(n, k);
2200
+ Object.defineProperty(a, k, d.get ? d : {
2201
+ enumerable: true,
2202
+ get: function () {
2203
+ return n[k];
2204
+ }
2205
+ });
2206
+ });
2207
+ return a;
2208
+ }
2209
+
2210
+ function commonjsRequire () {
2211
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
2212
+ }
2213
+
2214
+ var callBind = createCommonjsModule(function (module) {
2215
+
2216
+
2217
+
2218
+
2219
+ var $apply = getIntrinsic('%Function.prototype.apply%');
2220
+ var $call = getIntrinsic('%Function.prototype.call%');
2221
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2222
+
2223
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2224
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2225
+ var $max = getIntrinsic('%Math.max%');
2226
+
2227
+ if ($defineProperty) {
2228
+ try {
2229
+ $defineProperty({}, 'a', { value: 1 });
2230
+ } catch (e) {
2231
+ // IE 8 has a broken defineProperty
2232
+ $defineProperty = null;
2233
+ }
2234
+ }
2235
+
2236
+ module.exports = function callBind(originalFunction) {
2237
+ var func = $reflectApply(functionBind, $call, arguments);
2238
+ if ($gOPD && $defineProperty) {
2239
+ var desc = $gOPD(func, 'length');
2240
+ if (desc.configurable) {
2241
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2242
+ $defineProperty(
2243
+ func,
2244
+ 'length',
2245
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2246
+ );
2247
+ }
2248
+ }
2249
+ return func;
2250
+ };
2251
+
2252
+ var applyBind = function applyBind() {
2253
+ return $reflectApply(functionBind, $apply, arguments);
2254
+ };
2255
+
2256
+ if ($defineProperty) {
2257
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2258
+ } else {
2259
+ module.exports.apply = applyBind;
2260
+ }
2261
+ });
2262
+
2263
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2264
+
2265
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
2266
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2267
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2268
+ return callBind(intrinsic);
2269
+ }
2270
+ return intrinsic;
2271
+ };
2272
+
2273
+ const _nodeResolve_empty = {};
2274
+
2275
+ const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
2276
+ __proto__: null,
2277
+ 'default': _nodeResolve_empty
2278
+ });
2279
+
2280
+ const require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
2281
+
2282
+ var hasMap = typeof Map === 'function' && Map.prototype;
2283
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
2284
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
2285
+ var mapForEach = hasMap && Map.prototype.forEach;
2286
+ var hasSet = typeof Set === 'function' && Set.prototype;
2287
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
2288
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
2289
+ var setForEach = hasSet && Set.prototype.forEach;
2290
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
2291
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
2292
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
2293
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
2294
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
2295
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
2296
+ var booleanValueOf = Boolean.prototype.valueOf;
2297
+ var objectToString = Object.prototype.toString;
2298
+ var functionToString = Function.prototype.toString;
2299
+ var $match = String.prototype.match;
2300
+ var $slice = String.prototype.slice;
2301
+ var $replace = String.prototype.replace;
2302
+ var $toUpperCase = String.prototype.toUpperCase;
2303
+ var $toLowerCase = String.prototype.toLowerCase;
2304
+ var $test = RegExp.prototype.test;
2305
+ var $concat = Array.prototype.concat;
2306
+ var $join = Array.prototype.join;
2307
+ var $arrSlice = Array.prototype.slice;
2308
+ var $floor = Math.floor;
2309
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
2310
+ var gOPS = Object.getOwnPropertySymbols;
2311
+ var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
2312
+ var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
2313
+ // ie, `has-tostringtag/shams
2314
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
2315
+ ? Symbol.toStringTag
2316
+ : null;
2317
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
2318
+
2319
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
2320
+ [].__proto__ === Array.prototype // eslint-disable-line no-proto
2321
+ ? function (O) {
2322
+ return O.__proto__; // eslint-disable-line no-proto
2323
+ }
2324
+ : null
2325
+ );
2326
+
2327
+ function addNumericSeparator(num, str) {
2328
+ if (
2329
+ num === Infinity
2330
+ || num === -Infinity
2331
+ || num !== num
2332
+ || (num && num > -1000 && num < 1000)
2333
+ || $test.call(/e/, str)
2334
+ ) {
2335
+ return str;
2336
+ }
2337
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2338
+ if (typeof num === 'number') {
2339
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
2340
+ if (int !== num) {
2341
+ var intStr = String(int);
2342
+ var dec = $slice.call(str, intStr.length + 1);
2343
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
2344
+ }
2345
+ }
2346
+ return $replace.call(str, sepRegex, '$&_');
2347
+ }
2348
+
2349
+ var inspectCustom = require$$0.custom;
2350
+ var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
2351
+
2352
+ var objectInspect = function inspect_(obj, options, depth, seen) {
2353
+ var opts = options || {};
2354
+
2355
+ if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
2356
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
2357
+ }
2358
+ if (
2359
+ has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
2360
+ ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
2361
+ : opts.maxStringLength !== null
2362
+ )
2363
+ ) {
2364
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
2365
+ }
2366
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
2367
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
2368
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
2369
+ }
2370
+
2371
+ if (
2372
+ has$3(opts, 'indent')
2373
+ && opts.indent !== null
2374
+ && opts.indent !== '\t'
2375
+ && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
2376
+ ) {
2377
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2378
+ }
2379
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
2380
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2381
+ }
2382
+ var numericSeparator = opts.numericSeparator;
2383
+
2384
+ if (typeof obj === 'undefined') {
2385
+ return 'undefined';
2386
+ }
2387
+ if (obj === null) {
2388
+ return 'null';
2389
+ }
2390
+ if (typeof obj === 'boolean') {
2391
+ return obj ? 'true' : 'false';
2392
+ }
2393
+
2394
+ if (typeof obj === 'string') {
2395
+ return inspectString(obj, opts);
2396
+ }
2397
+ if (typeof obj === 'number') {
2398
+ if (obj === 0) {
2399
+ return Infinity / obj > 0 ? '0' : '-0';
2400
+ }
2401
+ var str = String(obj);
2402
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
2403
+ }
2404
+ if (typeof obj === 'bigint') {
2405
+ var bigIntStr = String(obj) + 'n';
2406
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
2407
+ }
2408
+
2409
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
2410
+ if (typeof depth === 'undefined') { depth = 0; }
2411
+ if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
2412
+ return isArray$3(obj) ? '[Array]' : '[Object]';
2413
+ }
2414
+
2415
+ var indent = getIndent(opts, depth);
2416
+
2417
+ if (typeof seen === 'undefined') {
2418
+ seen = [];
2419
+ } else if (indexOf(seen, obj) >= 0) {
2420
+ return '[Circular]';
2421
+ }
2422
+
2423
+ function inspect(value, from, noIndent) {
2424
+ if (from) {
2425
+ seen = $arrSlice.call(seen);
2426
+ seen.push(from);
2427
+ }
2428
+ if (noIndent) {
2429
+ var newOpts = {
2430
+ depth: opts.depth
2431
+ };
2432
+ if (has$3(opts, 'quoteStyle')) {
2433
+ newOpts.quoteStyle = opts.quoteStyle;
2434
+ }
2435
+ return inspect_(value, newOpts, depth + 1, seen);
2436
+ }
2437
+ return inspect_(value, opts, depth + 1, seen);
2438
+ }
2439
+
2440
+ if (typeof obj === 'function') {
2441
+ var name = nameOf(obj);
2442
+ var keys = arrObjKeys(obj, inspect);
2443
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
2444
+ }
2445
+ if (isSymbol(obj)) {
2446
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
2447
+ return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
2448
+ }
2449
+ if (isElement(obj)) {
2450
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
2451
+ var attrs = obj.attributes || [];
2452
+ for (var i = 0; i < attrs.length; i++) {
2453
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
2454
+ }
2455
+ s += '>';
2456
+ if (obj.childNodes && obj.childNodes.length) { s += '...'; }
2457
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
2458
+ return s;
2459
+ }
2460
+ if (isArray$3(obj)) {
2461
+ if (obj.length === 0) { return '[]'; }
2462
+ var xs = arrObjKeys(obj, inspect);
2463
+ if (indent && !singleLineValues(xs)) {
2464
+ return '[' + indentedJoin(xs, indent) + ']';
2465
+ }
2466
+ return '[ ' + $join.call(xs, ', ') + ' ]';
2467
+ }
2468
+ if (isError(obj)) {
2469
+ var parts = arrObjKeys(obj, inspect);
2470
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
2471
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
2472
+ }
2473
+ if (parts.length === 0) { return '[' + String(obj) + ']'; }
2474
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
2475
+ }
2476
+ if (typeof obj === 'object' && customInspect) {
2477
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
2478
+ return obj[inspectSymbol]();
2479
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
2480
+ return obj.inspect();
2481
+ }
2482
+ }
2483
+ if (isMap(obj)) {
2484
+ var mapParts = [];
2485
+ mapForEach.call(obj, function (value, key) {
2486
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
2487
+ });
2488
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
2489
+ }
2490
+ if (isSet(obj)) {
2491
+ var setParts = [];
2492
+ setForEach.call(obj, function (value) {
2493
+ setParts.push(inspect(value, obj));
2494
+ });
2495
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
2496
+ }
2497
+ if (isWeakMap(obj)) {
2498
+ return weakCollectionOf('WeakMap');
2499
+ }
2500
+ if (isWeakSet(obj)) {
2501
+ return weakCollectionOf('WeakSet');
2502
+ }
2503
+ if (isWeakRef(obj)) {
2504
+ return weakCollectionOf('WeakRef');
2505
+ }
2506
+ if (isNumber(obj)) {
2507
+ return markBoxed(inspect(Number(obj)));
2508
+ }
2509
+ if (isBigInt(obj)) {
2510
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
2511
+ }
2512
+ if (isBoolean(obj)) {
2513
+ return markBoxed(booleanValueOf.call(obj));
2514
+ }
2515
+ if (isString(obj)) {
2516
+ return markBoxed(inspect(String(obj)));
2517
+ }
2518
+ if (!isDate(obj) && !isRegExp$1(obj)) {
2519
+ var ys = arrObjKeys(obj, inspect);
2520
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2521
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
2522
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
2523
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
2524
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
2525
+ if (ys.length === 0) { return tag + '{}'; }
2526
+ if (indent) {
2527
+ return tag + '{' + indentedJoin(ys, indent) + '}';
2528
+ }
2529
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
2530
+ }
2531
+ return String(obj);
2532
+ };
2533
+
2534
+ function wrapQuotes(s, defaultStyle, opts) {
2535
+ var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
2536
+ return quoteChar + s + quoteChar;
2537
+ }
2538
+
2539
+ function quote(s) {
2540
+ return $replace.call(String(s), /"/g, '&quot;');
2541
+ }
2542
+
2543
+ function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2544
+ function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2545
+ function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2546
+ function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2547
+ function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2548
+ function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2549
+ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2550
+
2551
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
2552
+ function isSymbol(obj) {
2553
+ if (hasShammedSymbols) {
2554
+ return obj && typeof obj === 'object' && obj instanceof Symbol;
2555
+ }
2556
+ if (typeof obj === 'symbol') {
2557
+ return true;
2558
+ }
2559
+ if (!obj || typeof obj !== 'object' || !symToString) {
2560
+ return false;
2561
+ }
2562
+ try {
2563
+ symToString.call(obj);
2564
+ return true;
2565
+ } catch (e) {}
2566
+ return false;
2567
+ }
2568
+
2569
+ function isBigInt(obj) {
2570
+ if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
2571
+ return false;
2572
+ }
2573
+ try {
2574
+ bigIntValueOf.call(obj);
2575
+ return true;
2576
+ } catch (e) {}
2577
+ return false;
2578
+ }
2579
+
2580
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
2581
+ function has$3(obj, key) {
2582
+ return hasOwn.call(obj, key);
2583
+ }
2584
+
2585
+ function toStr(obj) {
2586
+ return objectToString.call(obj);
2587
+ }
2588
+
2589
+ function nameOf(f) {
2590
+ if (f.name) { return f.name; }
2591
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
2592
+ if (m) { return m[1]; }
2593
+ return null;
2594
+ }
2595
+
2596
+ function indexOf(xs, x) {
2597
+ if (xs.indexOf) { return xs.indexOf(x); }
2598
+ for (var i = 0, l = xs.length; i < l; i++) {
2599
+ if (xs[i] === x) { return i; }
2600
+ }
2601
+ return -1;
2602
+ }
2603
+
2604
+ function isMap(x) {
2605
+ if (!mapSize || !x || typeof x !== 'object') {
2606
+ return false;
2607
+ }
2608
+ try {
2609
+ mapSize.call(x);
2610
+ try {
2611
+ setSize.call(x);
2612
+ } catch (s) {
2613
+ return true;
2614
+ }
2615
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
2616
+ } catch (e) {}
2617
+ return false;
2618
+ }
2619
+
2620
+ function isWeakMap(x) {
2621
+ if (!weakMapHas || !x || typeof x !== 'object') {
2622
+ return false;
2623
+ }
2624
+ try {
2625
+ weakMapHas.call(x, weakMapHas);
2626
+ try {
2627
+ weakSetHas.call(x, weakSetHas);
2628
+ } catch (s) {
2629
+ return true;
2630
+ }
2631
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
2632
+ } catch (e) {}
2633
+ return false;
2634
+ }
2635
+
2636
+ function isWeakRef(x) {
2637
+ if (!weakRefDeref || !x || typeof x !== 'object') {
2638
+ return false;
2639
+ }
2640
+ try {
2641
+ weakRefDeref.call(x);
2642
+ return true;
2643
+ } catch (e) {}
2644
+ return false;
2645
+ }
2646
+
2647
+ function isSet(x) {
2648
+ if (!setSize || !x || typeof x !== 'object') {
2649
+ return false;
2650
+ }
2651
+ try {
2652
+ setSize.call(x);
2653
+ try {
2654
+ mapSize.call(x);
2655
+ } catch (m) {
2656
+ return true;
2657
+ }
2658
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
2659
+ } catch (e) {}
2660
+ return false;
2661
+ }
2662
+
2663
+ function isWeakSet(x) {
2664
+ if (!weakSetHas || !x || typeof x !== 'object') {
2665
+ return false;
2666
+ }
2667
+ try {
2668
+ weakSetHas.call(x, weakSetHas);
2669
+ try {
2670
+ weakMapHas.call(x, weakMapHas);
2671
+ } catch (s) {
2672
+ return true;
2673
+ }
2674
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
2675
+ } catch (e) {}
2676
+ return false;
2677
+ }
2678
+
2679
+ function isElement(x) {
2680
+ if (!x || typeof x !== 'object') { return false; }
2681
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
2682
+ return true;
2683
+ }
2684
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
2685
+ }
2686
+
2687
+ function inspectString(str, opts) {
2688
+ if (str.length > opts.maxStringLength) {
2689
+ var remaining = str.length - opts.maxStringLength;
2690
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
2691
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
2692
+ }
2693
+ // eslint-disable-next-line no-control-regex
2694
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
2695
+ return wrapQuotes(s, 'single', opts);
2696
+ }
2697
+
2698
+ function lowbyte(c) {
2699
+ var n = c.charCodeAt(0);
2700
+ var x = {
2701
+ 8: 'b',
2702
+ 9: 't',
2703
+ 10: 'n',
2704
+ 12: 'f',
2705
+ 13: 'r'
2706
+ }[n];
2707
+ if (x) { return '\\' + x; }
2708
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
2709
+ }
2710
+
2711
+ function markBoxed(str) {
2712
+ return 'Object(' + str + ')';
2713
+ }
2714
+
2715
+ function weakCollectionOf(type) {
2716
+ return type + ' { ? }';
2717
+ }
2718
+
2719
+ function collectionOf(type, size, entries, indent) {
2720
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
2721
+ return type + ' (' + size + ') {' + joinedEntries + '}';
2722
+ }
2723
+
2724
+ function singleLineValues(xs) {
2725
+ for (var i = 0; i < xs.length; i++) {
2726
+ if (indexOf(xs[i], '\n') >= 0) {
2727
+ return false;
2728
+ }
2729
+ }
2730
+ return true;
2731
+ }
2732
+
2733
+ function getIndent(opts, depth) {
2734
+ var baseIndent;
2735
+ if (opts.indent === '\t') {
2736
+ baseIndent = '\t';
2737
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
2738
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
2739
+ } else {
2740
+ return null;
2741
+ }
2742
+ return {
2743
+ base: baseIndent,
2744
+ prev: $join.call(Array(depth + 1), baseIndent)
2745
+ };
2746
+ }
2747
+
2748
+ function indentedJoin(xs, indent) {
2749
+ if (xs.length === 0) { return ''; }
2750
+ var lineJoiner = '\n' + indent.prev + indent.base;
2751
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
2752
+ }
2753
+
2754
+ function arrObjKeys(obj, inspect) {
2755
+ var isArr = isArray$3(obj);
2756
+ var xs = [];
2757
+ if (isArr) {
2758
+ xs.length = obj.length;
2759
+ for (var i = 0; i < obj.length; i++) {
2760
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
2761
+ }
2762
+ }
2763
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
2764
+ var symMap;
2765
+ if (hasShammedSymbols) {
2766
+ symMap = {};
2767
+ for (var k = 0; k < syms.length; k++) {
2768
+ symMap['$' + syms[k]] = syms[k];
2769
+ }
2770
+ }
2771
+
2772
+ for (var key in obj) { // eslint-disable-line no-restricted-syntax
2773
+ if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2774
+ if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2775
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
2776
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
2777
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
2778
+ } else if ($test.call(/[^\w$]/, key)) {
2779
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
2780
+ } else {
2781
+ xs.push(key + ': ' + inspect(obj[key], obj));
2782
+ }
2783
+ }
2784
+ if (typeof gOPS === 'function') {
2785
+ for (var j = 0; j < syms.length; j++) {
2786
+ if (isEnumerable.call(obj, syms[j])) {
2787
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
2788
+ }
2789
+ }
2790
+ }
2791
+ return xs;
2792
+ }
2793
+
2794
+ var $TypeError = getIntrinsic('%TypeError%');
2795
+ var $WeakMap = getIntrinsic('%WeakMap%', true);
2796
+ var $Map = getIntrinsic('%Map%', true);
2797
+
2798
+ var $weakMapGet = callBound('WeakMap.prototype.get', true);
2799
+ var $weakMapSet = callBound('WeakMap.prototype.set', true);
2800
+ var $weakMapHas = callBound('WeakMap.prototype.has', true);
2801
+ var $mapGet = callBound('Map.prototype.get', true);
2802
+ var $mapSet = callBound('Map.prototype.set', true);
2803
+ var $mapHas = callBound('Map.prototype.has', true);
2804
+
2805
+ /*
2806
+ * This function traverses the list returning the node corresponding to the
2807
+ * given key.
2808
+ *
2809
+ * That node is also moved to the head of the list, so that if it's accessed
2810
+ * again we don't need to traverse the whole list. By doing so, all the recently
2811
+ * used nodes can be accessed relatively quickly.
2812
+ */
2813
+ var listGetNode = function (list, key) { // eslint-disable-line consistent-return
2814
+ for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
2815
+ if (curr.key === key) {
2816
+ prev.next = curr.next;
2817
+ curr.next = list.next;
2818
+ list.next = curr; // eslint-disable-line no-param-reassign
2819
+ return curr;
2820
+ }
2821
+ }
2822
+ };
2823
+
2824
+ var listGet = function (objects, key) {
2825
+ var node = listGetNode(objects, key);
2826
+ return node && node.value;
2827
+ };
2828
+ var listSet = function (objects, key, value) {
2829
+ var node = listGetNode(objects, key);
2830
+ if (node) {
2831
+ node.value = value;
2832
+ } else {
2833
+ // Prepend the new node to the beginning of the list
2834
+ objects.next = { // eslint-disable-line no-param-reassign
2835
+ key: key,
2836
+ next: objects.next,
2837
+ value: value
2838
+ };
2839
+ }
2840
+ };
2841
+ var listHas = function (objects, key) {
2842
+ return !!listGetNode(objects, key);
2843
+ };
2844
+
2845
+ var sideChannel = function getSideChannel() {
2846
+ var $wm;
2847
+ var $m;
2848
+ var $o;
2849
+ var channel = {
2850
+ assert: function (key) {
2851
+ if (!channel.has(key)) {
2852
+ throw new $TypeError('Side channel does not contain ' + objectInspect(key));
2853
+ }
2854
+ },
2855
+ get: function (key) { // eslint-disable-line consistent-return
2856
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2857
+ if ($wm) {
2858
+ return $weakMapGet($wm, key);
2859
+ }
2860
+ } else if ($Map) {
2861
+ if ($m) {
2862
+ return $mapGet($m, key);
2863
+ }
2864
+ } else {
2865
+ if ($o) { // eslint-disable-line no-lonely-if
2866
+ return listGet($o, key);
2867
+ }
2868
+ }
2869
+ },
2870
+ has: function (key) {
2871
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2872
+ if ($wm) {
2873
+ return $weakMapHas($wm, key);
2874
+ }
2875
+ } else if ($Map) {
2876
+ if ($m) {
2877
+ return $mapHas($m, key);
2878
+ }
2879
+ } else {
2880
+ if ($o) { // eslint-disable-line no-lonely-if
2881
+ return listHas($o, key);
2882
+ }
2883
+ }
2884
+ return false;
2885
+ },
2886
+ set: function (key, value) {
2887
+ if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2888
+ if (!$wm) {
2889
+ $wm = new $WeakMap();
2890
+ }
2891
+ $weakMapSet($wm, key, value);
2892
+ } else if ($Map) {
2893
+ if (!$m) {
2894
+ $m = new $Map();
2895
+ }
2896
+ $mapSet($m, key, value);
2897
+ } else {
2898
+ if (!$o) {
2899
+ /*
2900
+ * Initialize the linked list as an empty node, so that we don't have
2901
+ * to special-case handling of the first node: we can always refer to
2902
+ * it as (previous node).next, instead of something like (list).head
2903
+ */
2904
+ $o = { key: {}, next: null };
2905
+ }
2906
+ listSet($o, key, value);
2907
+ }
2908
+ }
2909
+ };
2910
+ return channel;
2911
+ };
2912
+
2913
+ var replace = String.prototype.replace;
2914
+ var percentTwenties = /%20/g;
2915
+
2916
+ var Format = {
2917
+ RFC1738: 'RFC1738',
2918
+ RFC3986: 'RFC3986'
2919
+ };
2920
+
2921
+ var formats = {
2922
+ 'default': Format.RFC3986,
2923
+ formatters: {
2924
+ RFC1738: function (value) {
2925
+ return replace.call(value, percentTwenties, '+');
2926
+ },
2927
+ RFC3986: function (value) {
2928
+ return String(value);
2929
+ }
2930
+ },
2931
+ RFC1738: Format.RFC1738,
2932
+ RFC3986: Format.RFC3986
2933
+ };
2934
+
2935
+ var has$2 = Object.prototype.hasOwnProperty;
2936
+ var isArray$2 = Array.isArray;
2937
+
2938
+ var hexTable = (function () {
2939
+ var array = [];
2940
+ for (var i = 0; i < 256; ++i) {
2941
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
2942
+ }
2943
+
2944
+ return array;
2945
+ }());
2946
+
2947
+ var compactQueue = function compactQueue(queue) {
2948
+ while (queue.length > 1) {
2949
+ var item = queue.pop();
2950
+ var obj = item.obj[item.prop];
2951
+
2952
+ if (isArray$2(obj)) {
2953
+ var compacted = [];
2954
+
2955
+ for (var j = 0; j < obj.length; ++j) {
2956
+ if (typeof obj[j] !== 'undefined') {
2957
+ compacted.push(obj[j]);
2958
+ }
2959
+ }
2960
+
2961
+ item.obj[item.prop] = compacted;
2962
+ }
2963
+ }
2964
+ };
2965
+
2966
+ var arrayToObject = function arrayToObject(source, options) {
2967
+ var obj = options && options.plainObjects ? Object.create(null) : {};
2968
+ for (var i = 0; i < source.length; ++i) {
2969
+ if (typeof source[i] !== 'undefined') {
2970
+ obj[i] = source[i];
2971
+ }
2972
+ }
2973
+
2974
+ return obj;
2975
+ };
2976
+
2977
+ var merge = function merge(target, source, options) {
2978
+ /* eslint no-param-reassign: 0 */
2979
+ if (!source) {
2980
+ return target;
2981
+ }
2982
+
2983
+ if (typeof source !== 'object') {
2984
+ if (isArray$2(target)) {
2985
+ target.push(source);
2986
+ } else if (target && typeof target === 'object') {
2987
+ if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
2988
+ target[source] = true;
2989
+ }
2990
+ } else {
2991
+ return [target, source];
2992
+ }
2993
+
2994
+ return target;
2995
+ }
2996
+
2997
+ if (!target || typeof target !== 'object') {
2998
+ return [target].concat(source);
2999
+ }
3000
+
3001
+ var mergeTarget = target;
3002
+ if (isArray$2(target) && !isArray$2(source)) {
3003
+ mergeTarget = arrayToObject(target, options);
3004
+ }
3005
+
3006
+ if (isArray$2(target) && isArray$2(source)) {
3007
+ source.forEach(function (item, i) {
3008
+ if (has$2.call(target, i)) {
3009
+ var targetItem = target[i];
3010
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
3011
+ target[i] = merge(targetItem, item, options);
3012
+ } else {
3013
+ target.push(item);
3014
+ }
3015
+ } else {
3016
+ target[i] = item;
3017
+ }
3018
+ });
3019
+ return target;
3020
+ }
3021
+
3022
+ return Object.keys(source).reduce(function (acc, key) {
3023
+ var value = source[key];
3024
+
3025
+ if (has$2.call(acc, key)) {
3026
+ acc[key] = merge(acc[key], value, options);
3027
+ } else {
3028
+ acc[key] = value;
3029
+ }
3030
+ return acc;
3031
+ }, mergeTarget);
3032
+ };
3033
+
3034
+ var assign = function assignSingleSource(target, source) {
3035
+ return Object.keys(source).reduce(function (acc, key) {
3036
+ acc[key] = source[key];
3037
+ return acc;
3038
+ }, target);
3039
+ };
3040
+
3041
+ var decode = function (str, decoder, charset) {
3042
+ var strWithoutPlus = str.replace(/\+/g, ' ');
3043
+ if (charset === 'iso-8859-1') {
3044
+ // unescape never throws, no try...catch needed:
3045
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
3046
+ }
3047
+ // utf-8
3048
+ try {
3049
+ return decodeURIComponent(strWithoutPlus);
3050
+ } catch (e) {
3051
+ return strWithoutPlus;
3052
+ }
3053
+ };
3054
+
3055
+ var encode = function encode(str, defaultEncoder, charset, kind, format) {
3056
+ // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
3057
+ // It has been adapted here for stricter adherence to RFC 3986
3058
+ if (str.length === 0) {
3059
+ return str;
3060
+ }
3061
+
3062
+ var string = str;
3063
+ if (typeof str === 'symbol') {
3064
+ string = Symbol.prototype.toString.call(str);
3065
+ } else if (typeof str !== 'string') {
3066
+ string = String(str);
3067
+ }
3068
+
3069
+ if (charset === 'iso-8859-1') {
3070
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
3071
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
3072
+ });
3073
+ }
3074
+
3075
+ var out = '';
3076
+ for (var i = 0; i < string.length; ++i) {
3077
+ var c = string.charCodeAt(i);
3078
+
3079
+ if (
3080
+ c === 0x2D // -
3081
+ || c === 0x2E // .
3082
+ || c === 0x5F // _
3083
+ || c === 0x7E // ~
3084
+ || (c >= 0x30 && c <= 0x39) // 0-9
3085
+ || (c >= 0x41 && c <= 0x5A) // a-z
3086
+ || (c >= 0x61 && c <= 0x7A) // A-Z
3087
+ || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
3088
+ ) {
3089
+ out += string.charAt(i);
3090
+ continue;
3091
+ }
3092
+
3093
+ if (c < 0x80) {
3094
+ out = out + hexTable[c];
3095
+ continue;
3096
+ }
3097
+
3098
+ if (c < 0x800) {
3099
+ out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
3100
+ continue;
3101
+ }
3102
+
3103
+ if (c < 0xD800 || c >= 0xE000) {
3104
+ out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
3105
+ continue;
3106
+ }
3107
+
3108
+ i += 1;
3109
+ c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
3110
+ /* eslint operator-linebreak: [2, "before"] */
3111
+ out += hexTable[0xF0 | (c >> 18)]
3112
+ + hexTable[0x80 | ((c >> 12) & 0x3F)]
3113
+ + hexTable[0x80 | ((c >> 6) & 0x3F)]
3114
+ + hexTable[0x80 | (c & 0x3F)];
3115
+ }
3116
+
3117
+ return out;
3118
+ };
3119
+
3120
+ var compact = function compact(value) {
3121
+ var queue = [{ obj: { o: value }, prop: 'o' }];
3122
+ var refs = [];
3123
+
3124
+ for (var i = 0; i < queue.length; ++i) {
3125
+ var item = queue[i];
3126
+ var obj = item.obj[item.prop];
3127
+
3128
+ var keys = Object.keys(obj);
3129
+ for (var j = 0; j < keys.length; ++j) {
3130
+ var key = keys[j];
3131
+ var val = obj[key];
3132
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
3133
+ queue.push({ obj: obj, prop: key });
3134
+ refs.push(val);
3135
+ }
3136
+ }
3137
+ }
3138
+
3139
+ compactQueue(queue);
3140
+
3141
+ return value;
3142
+ };
3143
+
3144
+ var isRegExp = function isRegExp(obj) {
3145
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
3146
+ };
3147
+
3148
+ var isBuffer = function isBuffer(obj) {
3149
+ if (!obj || typeof obj !== 'object') {
3150
+ return false;
3151
+ }
3152
+
3153
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
3154
+ };
3155
+
3156
+ var combine = function combine(a, b) {
3157
+ return [].concat(a, b);
3158
+ };
3159
+
3160
+ var maybeMap = function maybeMap(val, fn) {
3161
+ if (isArray$2(val)) {
3162
+ var mapped = [];
3163
+ for (var i = 0; i < val.length; i += 1) {
3164
+ mapped.push(fn(val[i]));
3165
+ }
3166
+ return mapped;
3167
+ }
3168
+ return fn(val);
3169
+ };
3170
+
3171
+ var utils = {
3172
+ arrayToObject: arrayToObject,
3173
+ assign: assign,
3174
+ combine: combine,
3175
+ compact: compact,
3176
+ decode: decode,
3177
+ encode: encode,
3178
+ isBuffer: isBuffer,
3179
+ isRegExp: isRegExp,
3180
+ maybeMap: maybeMap,
3181
+ merge: merge
3182
+ };
3183
+
3184
+ var has$1 = Object.prototype.hasOwnProperty;
3185
+
3186
+ var arrayPrefixGenerators = {
3187
+ brackets: function brackets(prefix) {
3188
+ return prefix + '[]';
3189
+ },
3190
+ comma: 'comma',
3191
+ indices: function indices(prefix, key) {
3192
+ return prefix + '[' + key + ']';
3193
+ },
3194
+ repeat: function repeat(prefix) {
3195
+ return prefix;
3196
+ }
3197
+ };
3198
+
3199
+ var isArray$1 = Array.isArray;
3200
+ var split = String.prototype.split;
3201
+ var push = Array.prototype.push;
3202
+ var pushToArray = function (arr, valueOrArray) {
3203
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
3204
+ };
3205
+
3206
+ var toISO = Date.prototype.toISOString;
3207
+
3208
+ var defaultFormat = formats['default'];
3209
+ var defaults$1 = {
3210
+ addQueryPrefix: false,
3211
+ allowDots: false,
3212
+ charset: 'utf-8',
3213
+ charsetSentinel: false,
3214
+ delimiter: '&',
3215
+ encode: true,
3216
+ encoder: utils.encode,
3217
+ encodeValuesOnly: false,
3218
+ format: defaultFormat,
3219
+ formatter: formats.formatters[defaultFormat],
3220
+ // deprecated
3221
+ indices: false,
3222
+ serializeDate: function serializeDate(date) {
3223
+ return toISO.call(date);
3224
+ },
3225
+ skipNulls: false,
3226
+ strictNullHandling: false
3227
+ };
3228
+
3229
+ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
3230
+ return typeof v === 'string'
3231
+ || typeof v === 'number'
3232
+ || typeof v === 'boolean'
3233
+ || typeof v === 'symbol'
3234
+ || typeof v === 'bigint';
3235
+ };
3236
+
3237
+ var sentinel = {};
3238
+
3239
+ var stringify = function stringify(
3240
+ object,
3241
+ prefix,
3242
+ generateArrayPrefix,
3243
+ strictNullHandling,
3244
+ skipNulls,
3245
+ encoder,
3246
+ filter,
3247
+ sort,
3248
+ allowDots,
3249
+ serializeDate,
3250
+ format,
3251
+ formatter,
3252
+ encodeValuesOnly,
3253
+ charset,
3254
+ sideChannel$1
3255
+ ) {
3256
+ var obj = object;
3257
+
3258
+ var tmpSc = sideChannel$1;
3259
+ var step = 0;
3260
+ var findFlag = false;
3261
+ while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
3262
+ // Where object last appeared in the ref tree
3263
+ var pos = tmpSc.get(object);
3264
+ step += 1;
3265
+ if (typeof pos !== 'undefined') {
3266
+ if (pos === step) {
3267
+ throw new RangeError('Cyclic object value');
3268
+ } else {
3269
+ findFlag = true; // Break while
3270
+ }
3271
+ }
3272
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
3273
+ step = 0;
3274
+ }
3275
+ }
3276
+
3277
+ if (typeof filter === 'function') {
3278
+ obj = filter(prefix, obj);
3279
+ } else if (obj instanceof Date) {
3280
+ obj = serializeDate(obj);
3281
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
3282
+ obj = utils.maybeMap(obj, function (value) {
3283
+ if (value instanceof Date) {
3284
+ return serializeDate(value);
3285
+ }
3286
+ return value;
3287
+ });
3288
+ }
3289
+
3290
+ if (obj === null) {
3291
+ if (strictNullHandling) {
3292
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
3293
+ }
3294
+
3295
+ obj = '';
3296
+ }
3297
+
3298
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
3299
+ if (encoder) {
3300
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
3301
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
3302
+ var valuesArray = split.call(String(obj), ',');
3303
+ var valuesJoined = '';
3304
+ for (var i = 0; i < valuesArray.length; ++i) {
3305
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
3306
+ }
3307
+ return [formatter(keyValue) + '=' + valuesJoined];
3308
+ }
3309
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
3310
+ }
3311
+ return [formatter(prefix) + '=' + formatter(String(obj))];
3312
+ }
3313
+
3314
+ var values = [];
3315
+
3316
+ if (typeof obj === 'undefined') {
3317
+ return values;
3318
+ }
3319
+
3320
+ var objKeys;
3321
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
3322
+ // we need to join elements in
3323
+ objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
3324
+ } else if (isArray$1(filter)) {
3325
+ objKeys = filter;
3326
+ } else {
3327
+ var keys = Object.keys(obj);
3328
+ objKeys = sort ? keys.sort(sort) : keys;
3329
+ }
3330
+
3331
+ for (var j = 0; j < objKeys.length; ++j) {
3332
+ var key = objKeys[j];
3333
+ var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
3334
+
3335
+ if (skipNulls && value === null) {
3336
+ continue;
3337
+ }
3338
+
3339
+ var keyPrefix = isArray$1(obj)
3340
+ ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
3341
+ : prefix + (allowDots ? '.' + key : '[' + key + ']');
3342
+
3343
+ sideChannel$1.set(object, step);
3344
+ var valueSideChannel = sideChannel();
3345
+ valueSideChannel.set(sentinel, sideChannel$1);
3346
+ pushToArray(values, stringify(
3347
+ value,
3348
+ keyPrefix,
3349
+ generateArrayPrefix,
3350
+ strictNullHandling,
3351
+ skipNulls,
3352
+ encoder,
3353
+ filter,
3354
+ sort,
3355
+ allowDots,
3356
+ serializeDate,
3357
+ format,
3358
+ formatter,
3359
+ encodeValuesOnly,
3360
+ charset,
3361
+ valueSideChannel
3362
+ ));
3363
+ }
3364
+
3365
+ return values;
3366
+ };
3367
+
3368
+ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
3369
+ if (!opts) {
3370
+ return defaults$1;
3371
+ }
3372
+
3373
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
3374
+ throw new TypeError('Encoder has to be a function.');
3375
+ }
3376
+
3377
+ var charset = opts.charset || defaults$1.charset;
3378
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
3379
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
3380
+ }
3381
+
3382
+ var format = formats['default'];
3383
+ if (typeof opts.format !== 'undefined') {
3384
+ if (!has$1.call(formats.formatters, opts.format)) {
3385
+ throw new TypeError('Unknown format option provided.');
3386
+ }
3387
+ format = opts.format;
3388
+ }
3389
+ var formatter = formats.formatters[format];
3390
+
3391
+ var filter = defaults$1.filter;
3392
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
3393
+ filter = opts.filter;
3394
+ }
3395
+
3396
+ return {
3397
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
3398
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
3399
+ charset: charset,
3400
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
3401
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
3402
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
3403
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
3404
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
3405
+ filter: filter,
3406
+ format: format,
3407
+ formatter: formatter,
3408
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
3409
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
3410
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
3411
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
3412
+ };
3413
+ };
3414
+
3415
+ var stringify_1 = function (object, opts) {
3416
+ var obj = object;
3417
+ var options = normalizeStringifyOptions(opts);
3418
+
3419
+ var objKeys;
3420
+ var filter;
3421
+
3422
+ if (typeof options.filter === 'function') {
3423
+ filter = options.filter;
3424
+ obj = filter('', obj);
3425
+ } else if (isArray$1(options.filter)) {
3426
+ filter = options.filter;
3427
+ objKeys = filter;
3428
+ }
3429
+
3430
+ var keys = [];
3431
+
3432
+ if (typeof obj !== 'object' || obj === null) {
3433
+ return '';
3434
+ }
3435
+
3436
+ var arrayFormat;
3437
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
3438
+ arrayFormat = opts.arrayFormat;
3439
+ } else if (opts && 'indices' in opts) {
3440
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
3441
+ } else {
3442
+ arrayFormat = 'indices';
3443
+ }
3444
+
3445
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
3446
+
3447
+ if (!objKeys) {
3448
+ objKeys = Object.keys(obj);
3449
+ }
3450
+
3451
+ if (options.sort) {
3452
+ objKeys.sort(options.sort);
3453
+ }
3454
+
3455
+ var sideChannel$1 = sideChannel();
3456
+ for (var i = 0; i < objKeys.length; ++i) {
3457
+ var key = objKeys[i];
3458
+
3459
+ if (options.skipNulls && obj[key] === null) {
3460
+ continue;
3461
+ }
3462
+ pushToArray(keys, stringify(
3463
+ obj[key],
3464
+ key,
3465
+ generateArrayPrefix,
3466
+ options.strictNullHandling,
3467
+ options.skipNulls,
3468
+ options.encode ? options.encoder : null,
3469
+ options.filter,
3470
+ options.sort,
3471
+ options.allowDots,
3472
+ options.serializeDate,
3473
+ options.format,
3474
+ options.formatter,
3475
+ options.encodeValuesOnly,
3476
+ options.charset,
3477
+ sideChannel$1
3478
+ ));
3479
+ }
3480
+
3481
+ var joined = keys.join(options.delimiter);
3482
+ var prefix = options.addQueryPrefix === true ? '?' : '';
3483
+
3484
+ if (options.charsetSentinel) {
3485
+ if (options.charset === 'iso-8859-1') {
3486
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
3487
+ prefix += 'utf8=%26%2310003%3B&';
3488
+ } else {
3489
+ // encodeURIComponent('✓')
3490
+ prefix += 'utf8=%E2%9C%93&';
3491
+ }
3492
+ }
3493
+
3494
+ return joined.length > 0 ? prefix + joined : '';
3495
+ };
3496
+
3497
+ var has = Object.prototype.hasOwnProperty;
3498
+ var isArray = Array.isArray;
3499
+
3500
+ var defaults = {
3501
+ allowDots: false,
3502
+ allowPrototypes: false,
3503
+ allowSparse: false,
3504
+ arrayLimit: 20,
3505
+ charset: 'utf-8',
3506
+ charsetSentinel: false,
3507
+ comma: false,
3508
+ decoder: utils.decode,
3509
+ delimiter: '&',
3510
+ depth: 5,
3511
+ ignoreQueryPrefix: false,
3512
+ interpretNumericEntities: false,
3513
+ parameterLimit: 1000,
3514
+ parseArrays: true,
3515
+ plainObjects: false,
3516
+ strictNullHandling: false
3517
+ };
3518
+
3519
+ var interpretNumericEntities = function (str) {
3520
+ return str.replace(/&#(\d+);/g, function ($0, numberStr) {
3521
+ return String.fromCharCode(parseInt(numberStr, 10));
3522
+ });
3523
+ };
3524
+
3525
+ var parseArrayValue = function (val, options) {
3526
+ if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
3527
+ return val.split(',');
3528
+ }
3529
+
3530
+ return val;
3531
+ };
3532
+
3533
+ // This is what browsers will submit when the ✓ character occurs in an
3534
+ // application/x-www-form-urlencoded body and the encoding of the page containing
3535
+ // the form is iso-8859-1, or when the submitted form has an accept-charset
3536
+ // attribute of iso-8859-1. Presumably also with other charsets that do not contain
3537
+ // the ✓ character, such as us-ascii.
3538
+ var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
3539
+
3540
+ // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
3541
+ var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
3542
+
3543
+ var parseValues = function parseQueryStringValues(str, options) {
3544
+ var obj = {};
3545
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
3546
+ var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
3547
+ var parts = cleanStr.split(options.delimiter, limit);
3548
+ var skipIndex = -1; // Keep track of where the utf8 sentinel was found
3549
+ var i;
3550
+
3551
+ var charset = options.charset;
3552
+ if (options.charsetSentinel) {
3553
+ for (i = 0; i < parts.length; ++i) {
3554
+ if (parts[i].indexOf('utf8=') === 0) {
3555
+ if (parts[i] === charsetSentinel) {
3556
+ charset = 'utf-8';
3557
+ } else if (parts[i] === isoSentinel) {
3558
+ charset = 'iso-8859-1';
3559
+ }
3560
+ skipIndex = i;
3561
+ i = parts.length; // The eslint settings do not allow break;
3562
+ }
3563
+ }
3564
+ }
3565
+
3566
+ for (i = 0; i < parts.length; ++i) {
3567
+ if (i === skipIndex) {
3568
+ continue;
3569
+ }
3570
+ var part = parts[i];
3571
+
3572
+ var bracketEqualsPos = part.indexOf(']=');
3573
+ var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
3574
+
3575
+ var key, val;
3576
+ if (pos === -1) {
3577
+ key = options.decoder(part, defaults.decoder, charset, 'key');
3578
+ val = options.strictNullHandling ? null : '';
3579
+ } else {
3580
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
3581
+ val = utils.maybeMap(
3582
+ parseArrayValue(part.slice(pos + 1), options),
3583
+ function (encodedVal) {
3584
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
3585
+ }
3586
+ );
3587
+ }
3588
+
3589
+ if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
3590
+ val = interpretNumericEntities(val);
3591
+ }
3592
+
3593
+ if (part.indexOf('[]=') > -1) {
3594
+ val = isArray(val) ? [val] : val;
3595
+ }
3596
+
3597
+ if (has.call(obj, key)) {
3598
+ obj[key] = utils.combine(obj[key], val);
3599
+ } else {
3600
+ obj[key] = val;
3601
+ }
3602
+ }
3603
+
3604
+ return obj;
3605
+ };
3606
+
3607
+ var parseObject = function (chain, val, options, valuesParsed) {
3608
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
3609
+
3610
+ for (var i = chain.length - 1; i >= 0; --i) {
3611
+ var obj;
3612
+ var root = chain[i];
3613
+
3614
+ if (root === '[]' && options.parseArrays) {
3615
+ obj = [].concat(leaf);
3616
+ } else {
3617
+ obj = options.plainObjects ? Object.create(null) : {};
3618
+ var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
3619
+ var index = parseInt(cleanRoot, 10);
3620
+ if (!options.parseArrays && cleanRoot === '') {
3621
+ obj = { 0: leaf };
3622
+ } else if (
3623
+ !isNaN(index)
3624
+ && root !== cleanRoot
3625
+ && String(index) === cleanRoot
3626
+ && index >= 0
3627
+ && (options.parseArrays && index <= options.arrayLimit)
3628
+ ) {
3629
+ obj = [];
3630
+ obj[index] = leaf;
3631
+ } else if (cleanRoot !== '__proto__') {
3632
+ obj[cleanRoot] = leaf;
3633
+ }
3634
+ }
3635
+
3636
+ leaf = obj;
3637
+ }
3638
+
3639
+ return leaf;
3640
+ };
3641
+
3642
+ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
3643
+ if (!givenKey) {
3644
+ return;
3645
+ }
3646
+
3647
+ // Transform dot notation to bracket notation
3648
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
3649
+
3650
+ // The regex chunks
3651
+
3652
+ var brackets = /(\[[^[\]]*])/;
3653
+ var child = /(\[[^[\]]*])/g;
3654
+
3655
+ // Get the parent
3656
+
3657
+ var segment = options.depth > 0 && brackets.exec(key);
3658
+ var parent = segment ? key.slice(0, segment.index) : key;
3659
+
3660
+ // Stash the parent if it exists
3661
+
3662
+ var keys = [];
3663
+ if (parent) {
3664
+ // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
3665
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
3666
+ if (!options.allowPrototypes) {
3667
+ return;
3668
+ }
3669
+ }
3670
+
3671
+ keys.push(parent);
3672
+ }
3673
+
3674
+ // Loop through children appending to the array until we hit depth
3675
+
3676
+ var i = 0;
3677
+ while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
3678
+ i += 1;
3679
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
3680
+ if (!options.allowPrototypes) {
3681
+ return;
3682
+ }
3683
+ }
3684
+ keys.push(segment[1]);
3685
+ }
3686
+
3687
+ // If there's a remainder, just add whatever is left
3688
+
3689
+ if (segment) {
3690
+ keys.push('[' + key.slice(segment.index) + ']');
3691
+ }
3692
+
3693
+ return parseObject(keys, val, options, valuesParsed);
3694
+ };
3695
+
3696
+ var normalizeParseOptions = function normalizeParseOptions(opts) {
3697
+ if (!opts) {
3698
+ return defaults;
3699
+ }
3700
+
3701
+ if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
3702
+ throw new TypeError('Decoder has to be a function.');
3703
+ }
3704
+
3705
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
3706
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
3707
+ }
3708
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
3709
+
3710
+ return {
3711
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
3712
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
3713
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
3714
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
3715
+ charset: charset,
3716
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
3717
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
3718
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
3719
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
3720
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3721
+ depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
3722
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
3723
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
3724
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
3725
+ parseArrays: opts.parseArrays !== false,
3726
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
3727
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
3728
+ };
3729
+ };
3730
+
3731
+ var parse = function (str, opts) {
3732
+ var options = normalizeParseOptions(opts);
3733
+
3734
+ if (str === '' || str === null || typeof str === 'undefined') {
3735
+ return options.plainObjects ? Object.create(null) : {};
3736
+ }
3737
+
3738
+ var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
3739
+ var obj = options.plainObjects ? Object.create(null) : {};
3740
+
3741
+ // Iterate over the keys and setup the new object
3742
+
3743
+ var keys = Object.keys(tempObj);
3744
+ for (var i = 0; i < keys.length; ++i) {
3745
+ var key = keys[i];
3746
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
3747
+ obj = utils.merge(obj, newObj, options);
3748
+ }
3749
+
3750
+ if (options.allowSparse === true) {
3751
+ return obj;
3752
+ }
3753
+
3754
+ return utils.compact(obj);
3755
+ };
3756
+
3757
+ var lib = {
3758
+ formats: formats,
3759
+ parse: parse,
3760
+ stringify: stringify_1
3761
+ };
3762
+
3763
+ const appendToMap = (map, propName, value) => {
3764
+ const items = map.get(propName);
3765
+ if (!items) {
3766
+ map.set(propName, [value]);
3767
+ }
3768
+ else if (!items.includes(value)) {
3769
+ items.push(value);
3770
+ }
3771
+ };
3772
+ const debounce = (fn, ms) => {
3773
+ let timeoutId;
3774
+ return (...args) => {
3775
+ if (timeoutId) {
3776
+ clearTimeout(timeoutId);
3777
+ }
3778
+ timeoutId = setTimeout(() => {
3779
+ timeoutId = 0;
3780
+ fn(...args);
3781
+ }, ms);
3782
+ };
3783
+ };
3784
+
3785
+ /**
3786
+ * Check if a possible element isConnected.
3787
+ * The property might not be there, so we check for it.
3788
+ *
3789
+ * We want it to return true if isConnected is not a property,
3790
+ * otherwise we would remove these elements and would not update.
3791
+ *
3792
+ * Better leak in Edge than to be useless.
3793
+ */
3794
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
3795
+ const cleanupElements = debounce((map) => {
3796
+ for (let key of map.keys()) {
3797
+ map.set(key, map.get(key).filter(isConnected));
3798
+ }
3799
+ }, 2000);
3800
+ const stencilSubscription = () => {
3801
+ if (typeof getRenderingRef !== 'function') {
3802
+ // If we are not in a stencil project, we do nothing.
3803
+ // This function is not really exported by @stencil/core.
3804
+ return {};
3805
+ }
3806
+ const elmsToUpdate = new Map();
3807
+ return {
3808
+ dispose: () => elmsToUpdate.clear(),
3809
+ get: (propName) => {
3810
+ const elm = getRenderingRef();
3811
+ if (elm) {
3812
+ appendToMap(elmsToUpdate, propName, elm);
3813
+ }
3814
+ },
3815
+ set: (propName) => {
3816
+ const elements = elmsToUpdate.get(propName);
3817
+ if (elements) {
3818
+ elmsToUpdate.set(propName, elements.filter(forceUpdate));
3819
+ }
3820
+ cleanupElements(elmsToUpdate);
3821
+ },
3822
+ reset: () => {
3823
+ elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
3824
+ cleanupElements(elmsToUpdate);
3825
+ },
3826
+ };
3827
+ };
3828
+
3829
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
3830
+ let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
3831
+ const handlers = {
3832
+ dispose: [],
3833
+ get: [],
3834
+ set: [],
3835
+ reset: [],
3836
+ };
3837
+ const reset = () => {
3838
+ states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
3839
+ handlers.reset.forEach((cb) => cb());
3840
+ };
3841
+ const dispose = () => {
3842
+ // Call first dispose as resetting the state would
3843
+ // cause less updates ;)
3844
+ handlers.dispose.forEach((cb) => cb());
3845
+ reset();
3846
+ };
3847
+ const get = (propName) => {
3848
+ handlers.get.forEach((cb) => cb(propName));
3849
+ return states.get(propName);
3850
+ };
3851
+ const set = (propName, value) => {
3852
+ const oldValue = states.get(propName);
3853
+ if (shouldUpdate(value, oldValue, propName)) {
3854
+ states.set(propName, value);
3855
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
3856
+ }
3857
+ };
3858
+ const state = (typeof Proxy === 'undefined'
3859
+ ? {}
3860
+ : new Proxy(defaultState, {
3861
+ get(_, propName) {
3862
+ return get(propName);
3863
+ },
3864
+ ownKeys(_) {
3865
+ return Array.from(states.keys());
3866
+ },
3867
+ getOwnPropertyDescriptor() {
3868
+ return {
3869
+ enumerable: true,
3870
+ configurable: true,
3871
+ };
3872
+ },
3873
+ has(_, propName) {
3874
+ return states.has(propName);
3875
+ },
3876
+ set(_, propName, value) {
3877
+ set(propName, value);
3878
+ return true;
3879
+ },
3880
+ }));
3881
+ const on = (eventName, callback) => {
3882
+ handlers[eventName].push(callback);
3883
+ return () => {
3884
+ removeFromArray(handlers[eventName], callback);
3885
+ };
3886
+ };
3887
+ const onChange = (propName, cb) => {
3888
+ const unSet = on('set', (key, newValue) => {
3889
+ if (key === propName) {
3890
+ cb(newValue);
3891
+ }
3892
+ });
3893
+ const unReset = on('reset', () => cb(defaultState[propName]));
3894
+ return () => {
3895
+ unSet();
3896
+ unReset();
3897
+ };
3898
+ };
3899
+ const use = (...subscriptions) => {
3900
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
3901
+ if (subscription.set) {
3902
+ unsubs.push(on('set', subscription.set));
3903
+ }
3904
+ if (subscription.get) {
3905
+ unsubs.push(on('get', subscription.get));
3906
+ }
3907
+ if (subscription.reset) {
3908
+ unsubs.push(on('reset', subscription.reset));
3909
+ }
3910
+ if (subscription.dispose) {
3911
+ unsubs.push(on('dispose', subscription.dispose));
3912
+ }
3913
+ return unsubs;
3914
+ }, []);
3915
+ return () => unsubs.forEach((unsub) => unsub());
3916
+ };
3917
+ const forceUpdate = (key) => {
3918
+ const oldValue = states.get(key);
3919
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
3920
+ };
3921
+ return {
3922
+ state,
3923
+ get,
3924
+ set,
3925
+ on,
3926
+ onChange,
3927
+ use,
3928
+ dispose,
3929
+ reset,
3930
+ forceUpdate,
3931
+ };
3932
+ };
3933
+ const removeFromArray = (array, item) => {
3934
+ const index = array.indexOf(item);
3935
+ if (index >= 0) {
3936
+ array[index] = array[array.length - 1];
3937
+ array.length--;
3938
+ }
3939
+ };
3940
+
3941
+ const createStore = (defaultState, shouldUpdate) => {
3942
+ const map = createObservableMap(defaultState, shouldUpdate);
3943
+ map.use(stencilSubscription());
3944
+ return map;
3945
+ };
3946
+
3947
+ const { state: state$1, onChange: onChange$1, reset: reset$1 } = createStore({
3948
+ toc: undefined,
3949
+ });
3950
+ const TocStore = { state: state$1, onChange: onChange$1, reset: reset$1 };
3951
+
3952
+ class HttpService {
3953
+ constructor() { }
3954
+ static getInstance() {
3955
+ if (!HttpService.instance) {
3956
+ HttpService.instance = new HttpService();
3957
+ }
3958
+ return HttpService.instance;
3959
+ }
3960
+ static init() {
3961
+ var sparkleConfig = EnvironmentConfigService.getInstance().get('sparkle');
3962
+ this.http = axios.create({
3963
+ baseURL: sparkleConfig.apiUrl,
3964
+ headers: {
3965
+ 'Content-Type': 'application/json'
3966
+ },
3967
+ timeout: 30000,
3968
+ paramsSerializer: function (params) {
3969
+ return lib.stringify(params, {
3970
+ encode: false,
3971
+ });
3972
+ },
3973
+ });
3974
+ this.http.interceptors.request.use(function (config) {
3975
+ if (!!sparkleConfig && !!sparkleConfig.auth && !!sparkleConfig.auth.getToken()) {
3976
+ config.headers.common['Authorization'] = 'Bearer ' + sparkle.auth.getToken();
3977
+ }
3978
+ // //config.headers.common['.AspNetCore.Culture'] = sparkle.utils.getCookieValue('Sparkle.Localization.CultureName');
3979
+ config.headers.common['Sparkle.CourseId'] = sparkleConfig.courseId;
3980
+ console.log(TocStore.state.pageInfo);
3981
+ if (TocStore.state.pageInfo) {
3982
+ config.headers.common['Sparkle.CourseModuleId'] = TocStore.state.pageInfo.courseModuleId;
3983
+ config.headers.common['Sparkle.SessionId'] = TocStore.state.pageInfo.sessionId;
3984
+ config.headers.common['Sparkle.PageId'] = TocStore.state.pageInfo.pageId;
3985
+ }
3986
+ return config;
3987
+ }, function (error) {
3988
+ return Promise.reject(error);
3989
+ });
3990
+ this.http.interceptors.response.use(async (response) => {
3991
+ if (response.data.Message) {
3992
+ const toast = await toastController.create({
3993
+ message: response.data.Message,
3994
+ duration: 3000
3995
+ });
3996
+ toast.present();
3997
+ }
3998
+ return response.data.Failed ? null : response.data;
3999
+ }, async (error) => {
4000
+ if (error.response && error.response.data && error.response.data.ErrorMessage) {
4001
+ // The request was made and the server responded with a status code
4002
+ // that falls out of the range of 2xx
4003
+ const toast = await toastController.create({
4004
+ message: error.response.data.ErrorMessage,
4005
+ duration: 3000
4006
+ });
4007
+ toast.present();
4008
+ return Promise.reject(error);
4009
+ }
4010
+ else if (error.response && error.response.data && error.response.status == 400) {
4011
+ // The request was made and the server responded with a status code
4012
+ // that falls out of the range of 2xx
4013
+ const toast = await toastController.create({
4014
+ message: error.response.data.Message,
4015
+ duration: 3000
4016
+ });
4017
+ toast.present();
4018
+ return Promise.reject(error.response.data);
4019
+ }
4020
+ else if (error.response && error.response.data && error.response.data.Message) {
4021
+ // The request was made and the server responded with a status code
4022
+ // that falls out of the range of 2xx
4023
+ const toast = await toastController.create({
4024
+ message: error.response.data.Message,
4025
+ duration: 3000
4026
+ });
4027
+ toast.present();
4028
+ return Promise.reject(error);
4029
+ }
4030
+ else if (error.request) {
4031
+ // The request was made but no response was received
4032
+ // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
4033
+ // http.ClientRequest in node.js
4034
+ console.log(error.request);
4035
+ }
4036
+ else {
4037
+ const toast = await toastController.create({
4038
+ message: "Unknown Error",
4039
+ duration: 3000
4040
+ });
4041
+ toast.present();
4042
+ }
4043
+ setTimeout(() => { }, 1000);
4044
+ return Promise.reject(error);
4045
+ });
4046
+ }
4047
+ }
4048
+
4049
+ const { state, onChange, reset } = createStore({
4050
+ authUser: null,
4051
+ bearer: 'Bearer ',
4052
+ isAuthenticated: false,
4053
+ loading: false
4054
+ });
4055
+ onChange('authUser', (authUser) => {
4056
+ state.bearer = `Bearer ${authUser ? authUser.JWToken : ''}`;
4057
+ state.isAuthenticated = authUser && !!authUser.Id;
4058
+ });
4059
+ const AuthStore = { state, onChange, reset };
4060
+
4061
+ export { AuthStore as A, HttpService as H, TocStore as T, commonjsGlobal as a, createStore as b, createCommonjsModule as c, getDefaultExportFromCjs as g };