@flarehr/apollo-super-selection 1.3.23524 → 1.3.23680

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 (283) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -0
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -0
  3. package/dist/lib/apollo-super-selection/apollo-super-selection.js +130 -0
  4. package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
  5. package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
  6. package/dist/lib/apollo-super-selection/index.esm.js +0 -0
  7. package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
  8. package/dist/lib/apollo-super-selection/p-15f0e5eb.system.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-22939048.system.entry.js +1 -0
  10. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
  12. package/dist/lib/apollo-super-selection/p-2b42304a.system.entry.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-33eca162.entry.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-4e871154.entry.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-53b231f0.system.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-5c73c587.entry.js +1 -0
  18. package/dist/lib/apollo-super-selection/p-5e00b8d8.system.entry.js +69 -0
  19. package/dist/lib/apollo-super-selection/p-69bbf1dd.entry.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-71ca4cf8.system.js +1 -0
  21. package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
  22. package/dist/lib/apollo-super-selection/p-97188c78.system.js +1 -0
  23. package/dist/lib/apollo-super-selection/p-9d2a7c0e.entry.js +1 -0
  24. package/dist/lib/apollo-super-selection/p-9f64929e.entry.js +14 -0
  25. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +1 -0
  26. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +1 -0
  27. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -0
  28. package/dist/lib/apollo-super-selection/p-c775c0e4.system.entry.js +1 -0
  29. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
  30. package/dist/lib/apollo-super-selection/p-db0bded8.js +1 -0
  31. package/dist/lib/apollo-super-selection/p-e957b393.system.entry.js +1 -0
  32. package/dist/lib/apollo-super-selection/p-fdadb647.js +1 -0
  33. package/dist/lib/cjs/active-router-1f555f75.js +75 -0
  34. package/dist/lib/cjs/apollo-super-selection.cjs.js +22 -0
  35. package/dist/lib/cjs/app-globals-b1125d8c.js +25 -0
  36. package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
  37. package/dist/lib/cjs/custom-fund-choice.api-293c1ace.js +3209 -0
  38. package/dist/lib/cjs/datorama-akita-6c9cb8fb.js +3641 -0
  39. package/dist/lib/cjs/index-eb4f212f.js +1766 -0
  40. package/dist/lib/cjs/index.cjs.js +2 -0
  41. package/dist/lib/cjs/loader.cjs.js +24 -0
  42. package/dist/lib/cjs/sss-button_32.cjs.entry.js +14934 -0
  43. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +111 -0
  44. package/dist/lib/cjs/stencil-async-content.cjs.entry.js +32 -0
  45. package/dist/lib/cjs/stencil-route-title.cjs.entry.js +32 -0
  46. package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +59 -0
  47. package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +32 -0
  48. package/dist/lib/collection/apollo-super-selection.css +1 -0
  49. package/dist/lib/collection/collection-manifest.json +98 -0
  50. package/dist/lib/collection/components/app-host/loading-page.js +9 -0
  51. package/dist/lib/collection/components/app-host/services/app-configuration.query.js +18 -0
  52. package/dist/lib/collection/components/app-host/services/app-configuration.service.js +25 -0
  53. package/dist/lib/collection/components/app-host/services/app-parameters.query.js +13 -0
  54. package/dist/lib/collection/components/app-host/services/app-parameters.service.js +14 -0
  55. package/dist/lib/collection/components/app-host/services/appinsights.service.js +46 -0
  56. package/dist/lib/collection/components/app-host/services/authentication.query.js +21 -0
  57. package/dist/lib/collection/components/app-host/services/authentication.service.js +50 -0
  58. package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +31 -0
  59. package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +30 -0
  60. package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +20 -0
  61. package/dist/lib/collection/components/app-host/services/interop.query.js +26 -0
  62. package/dist/lib/collection/components/app-host/services/session.store.js +38 -0
  63. package/dist/lib/collection/components/app-host/super-selection-app-host.css +24 -0
  64. package/dist/lib/collection/components/app-host/super-selection-app-host.js +87 -0
  65. package/dist/lib/collection/components/external-loading-page/external-loading-page.js +29 -0
  66. package/dist/lib/collection/components/super-byof/super-byof-types.js +1 -0
  67. package/dist/lib/collection/components/super-byof/super-byof.form.js +1 -0
  68. package/dist/lib/collection/components/super-byof/super-byof.js +139 -0
  69. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +49 -0
  70. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +121 -0
  71. package/dist/lib/collection/components/super-campaign/super-campaign-types.js +6 -0
  72. package/dist/lib/collection/components/super-campaign/super-campaign.js +210 -0
  73. package/dist/lib/collection/components/super-selection-app/api/api-client.js +14 -0
  74. package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +9 -0
  75. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +9 -0
  76. package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
  77. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +16 -0
  78. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +179 -0
  79. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +69 -0
  80. package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +36 -0
  81. package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
  82. package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
  83. package/dist/lib/collection/components/super-selection-app/choice/choice-router.js +42 -0
  84. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +163 -0
  85. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +39 -0
  86. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +1 -0
  87. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +50 -0
  88. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +109 -0
  89. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +36 -0
  90. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +114 -0
  91. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +113 -0
  92. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +1 -0
  93. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/member-name-input.js +162 -0
  94. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.js +1 -0
  95. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js +115 -0
  96. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.js +11 -0
  97. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +111 -0
  98. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +161 -0
  99. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
  100. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
  101. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +31 -0
  102. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +1 -0
  103. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +13 -0
  104. package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate.js +4 -0
  105. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +37 -0
  106. package/dist/lib/collection/components/super-selection-app/misc/button.js +195 -0
  107. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
  108. package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +390 -0
  109. package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
  110. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +22 -0
  111. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +42 -0
  112. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +66 -0
  113. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +121 -0
  114. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +145 -0
  115. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +223 -0
  116. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +398 -0
  117. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +288 -0
  118. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +37 -0
  119. package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +81 -0
  120. package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +15 -0
  121. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +117 -0
  122. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +134 -0
  123. package/dist/lib/collection/components/super-selection-app/services/misc.service.js +7 -0
  124. package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +31 -0
  125. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +38 -0
  126. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +171 -0
  127. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +45 -0
  128. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +155 -0
  129. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +11 -0
  130. package/dist/lib/collection/components/super-selection-app/super-selection-app.css +27 -0
  131. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +291 -0
  132. package/dist/lib/collection/components/super-smsf/super-smsf-types.js +1 -0
  133. package/dist/lib/collection/components/super-smsf/super-smsf.form.js +1 -0
  134. package/dist/lib/collection/components/super-smsf/super-smsf.js +166 -0
  135. package/dist/lib/collection/global/init-host.js +25 -0
  136. package/dist/lib/collection/global/main.dev.js +29 -0
  137. package/dist/lib/collection/global/main.js +11 -0
  138. package/dist/lib/collection/global/stencil-router-workaround.js +12 -0
  139. package/dist/lib/collection/index.js +2 -0
  140. package/dist/lib/collection/utils/config.js +2 -0
  141. package/dist/lib/collection/utils/gtm.js +5 -0
  142. package/dist/lib/collection/utils/iframe.js +33 -0
  143. package/dist/lib/collection/utils/index.js +11 -0
  144. package/dist/lib/collection/utils/lazy.js +29 -0
  145. package/dist/lib/collection/utils/storage.js +5 -0
  146. package/dist/lib/esm/active-router-d18b36fb.js +73 -0
  147. package/dist/lib/esm/apollo-super-selection.js +20 -0
  148. package/dist/lib/esm/app-globals-c1f89805.js +23 -0
  149. package/dist/lib/esm/context-consumer.entry.js +25 -0
  150. package/dist/lib/esm/custom-fund-choice.api-42801d64.js +3188 -0
  151. package/dist/lib/esm/datorama-akita-127aea91.js +3624 -0
  152. package/dist/lib/esm/index-107d7c24.js +1732 -0
  153. package/dist/lib/esm/index.js +1 -0
  154. package/dist/lib/esm/loader.js +20 -0
  155. package/dist/lib/esm/polyfills/core-js.js +11 -0
  156. package/dist/lib/esm/polyfills/css-shim.js +1 -0
  157. package/dist/lib/esm/polyfills/dom.js +79 -0
  158. package/dist/lib/esm/polyfills/es5-html-element.js +1 -0
  159. package/dist/lib/esm/polyfills/index.js +34 -0
  160. package/dist/lib/esm/polyfills/system.js +6 -0
  161. package/dist/lib/esm/sss-button_32.entry.js +14879 -0
  162. package/dist/lib/esm/sss-super-byof-host.entry.js +107 -0
  163. package/dist/lib/esm/stencil-async-content.entry.js +28 -0
  164. package/dist/lib/esm/stencil-route-title.entry.js +28 -0
  165. package/dist/lib/esm/stencil-router-prompt.entry.js +55 -0
  166. package/dist/lib/esm/stencil-router-redirect.entry.js +28 -0
  167. package/dist/lib/esm-es5/active-router-d18b36fb.js +1 -0
  168. package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
  169. package/dist/lib/esm-es5/app-globals-c1f89805.js +1 -0
  170. package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
  171. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
  172. package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
  173. package/dist/lib/esm-es5/index-107d7c24.js +1 -0
  174. package/dist/lib/esm-es5/index.js +0 -0
  175. package/dist/lib/esm-es5/loader.js +1 -0
  176. package/dist/lib/esm-es5/sss-button_32.entry.js +69 -0
  177. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -0
  178. package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -0
  179. package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -0
  180. package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -0
  181. package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -0
  182. package/dist/lib/index.cjs.js +1 -0
  183. package/dist/lib/index.js +1 -0
  184. package/dist/lib/loader/cdn.js +3 -0
  185. package/dist/lib/loader/index.cjs.js +3 -0
  186. package/dist/lib/loader/index.d.ts +13 -0
  187. package/dist/lib/loader/index.es2017.js +3 -0
  188. package/dist/lib/loader/index.js +4 -0
  189. package/dist/lib/loader/package.json +10 -0
  190. package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +3 -0
  191. package/dist/lib/types/components/app-host/loading-page.d.ts +3 -0
  192. package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +11 -0
  193. package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +9 -0
  194. package/dist/lib/types/components/app-host/services/app-parameters.query.d.ts +10 -0
  195. package/dist/lib/types/components/app-host/services/app-parameters.service.d.ts +6 -0
  196. package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +15 -0
  197. package/dist/lib/types/components/app-host/services/authentication.query.d.ts +13 -0
  198. package/dist/lib/types/components/app-host/services/authentication.service.d.ts +9 -0
  199. package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +7 -0
  200. package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +5 -0
  201. package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +7 -0
  202. package/dist/lib/types/components/app-host/services/interop.query.d.ts +11 -0
  203. package/dist/lib/types/components/app-host/services/session.store.d.ts +31 -0
  204. package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +15 -0
  205. package/dist/lib/types/components/super-byof/super-byof-types.d.ts +26 -0
  206. package/dist/lib/types/components/super-byof/super-byof.d.ts +19 -0
  207. package/dist/lib/types/components/super-byof/super-byof.form.d.ts +6 -0
  208. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +12 -0
  209. package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +15 -0
  210. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +98 -0
  211. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +27 -0
  212. package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +2 -0
  213. package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +6 -0
  214. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +6 -0
  215. package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
  216. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +171 -0
  217. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +16 -0
  218. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +248 -0
  219. package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +7 -0
  220. package/dist/lib/types/components/super-selection-app/choice/choice-router.d.ts +6 -0
  221. package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
  222. package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +5 -0
  223. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +10 -0
  224. package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +43 -0
  225. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +9 -0
  226. package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +27 -0
  227. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +13 -0
  228. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +18 -0
  229. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +26 -0
  230. package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +14 -0
  231. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.d.ts +15 -0
  232. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.d.ts +20 -0
  233. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.d.ts +1 -0
  234. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +112 -0
  235. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +28 -0
  236. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
  237. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +8 -0
  238. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +23 -0
  239. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +6 -0
  240. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +9 -0
  241. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +4 -0
  242. package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +3 -0
  243. package/dist/lib/types/components/super-selection-app/misc/button.d.ts +14 -0
  244. package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +52 -0
  245. package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
  246. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +9 -0
  247. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +5 -0
  248. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +5 -0
  249. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +18 -0
  250. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +28 -0
  251. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +30 -0
  252. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +52 -0
  253. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +95 -0
  254. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +4 -0
  255. package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +14 -0
  256. package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +8 -0
  257. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +25 -0
  258. package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +75 -0
  259. package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +6 -0
  260. package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +17 -0
  261. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +19 -0
  262. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +43 -0
  263. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +37 -0
  264. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +16 -0
  265. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +42 -0
  266. package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +27 -0
  267. package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +34 -0
  268. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +20 -0
  269. package/dist/lib/types/components/super-smsf/super-smsf.form.d.ts +15 -0
  270. package/dist/lib/types/components.d.ts +522 -0
  271. package/dist/lib/types/global/init-host.d.ts +1 -0
  272. package/dist/lib/types/global/main.d.ts +1 -0
  273. package/dist/lib/types/global/main.dev.d.ts +1 -0
  274. package/dist/lib/types/global/stencil-router-workaround.d.ts +1 -0
  275. package/dist/lib/types/index.d.ts +2 -0
  276. package/dist/lib/types/stencil-public-runtime.d.ts +1555 -0
  277. package/dist/lib/types/utils/config.d.ts +2 -0
  278. package/dist/lib/types/utils/gtm.d.ts +7 -0
  279. package/dist/lib/types/utils/iframe.d.ts +13 -0
  280. package/dist/lib/types/utils/index.d.ts +4 -0
  281. package/dist/lib/types/utils/lazy.d.ts +12 -0
  282. package/dist/lib/types/utils/storage.d.ts +4 -0
  283. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __spreadArrays=this&&this.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var o=arguments[e],s=0,u=o.length;s<u;s++,i++)n[i]=o[s];return n};System.register([],(function(t){"use strict";return{execute:function(){t({c:i,e:se,f:xt,h:Mt,i:Tt,j:At,k:Ve,m:at});
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */function e(t,e){var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++){if(e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i]))r[n[i]]=t[n[i]]}return r}function r(t,e,r,n){var i=arguments.length,o=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)if(s=t[u])o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o;return i>3&&o&&Object.defineProperty(e,r,o),o}function n(t,e){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(t,e)}function i(t){return typeof t==="function"}var o=false;var s={Promise:undefined,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else if(o){console.log("RxJS: Back to a better error behavior. Thank you. <3")}o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function u(t){setTimeout((function(){throw t}),0)}var a={closed:true,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling){throw t}else{u(t)}},complete:function(){}};var c=t("b",function(){return Array.isArray||function(t){return t&&typeof t.length==="number"}}());function f(t){return t!==null&&typeof t==="object"}var h=function(){function t(t){Error.call(this);this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=t;return this}t.prototype=Object.create(Error.prototype);return t}();var l=h;var p=function(){function t(t){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(t){this._ctorUnsubscribe=true;this._unsubscribe=t}}t.prototype.unsubscribe=function(){var e;if(this.closed){return}var r=this,n=r._parentOrParents,o=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(n instanceof t){n.remove(this)}else if(n!==null){for(var a=0;a<n.length;++a){var h=n[a];h.remove(this)}}if(i(s)){if(o){this._unsubscribe=undefined}try{s.call(this)}catch(t){e=t instanceof l?d(t.errors):[t]}}if(c(u)){var a=-1;var p=u.length;while(++a<p){var v=u[a];if(f(v)){try{v.unsubscribe()}catch(t){e=e||[];if(t instanceof l){e=e.concat(d(t.errors))}else{e.push(t)}}}}}if(e){throw new l(e)}};t.prototype.add=function(e){var r=e;if(!e){return t.EMPTY}switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||typeof r.unsubscribe!=="function"){return r}else if(this.closed){r.unsubscribe();return r}else if(!(r instanceof t)){var n=r;r=new t;r._subscriptions=[n]}break;default:{throw new Error("unrecognized teardown "+e+" added to Subscription.")}}var i=r._parentOrParents;if(i===null){r._parentOrParents=this}else if(i instanceof t){if(i===this){return r}r._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return r}var o=this._subscriptions;if(o===null){this._subscriptions=[r]}else{o.push(r)}return r};t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);if(r!==-1){e.splice(r,1)}}};return t}();p.EMPTY=function(t){t.closed=true;return t}(new p);function d(t){return t.reduce((function(t,e){return t.concat(e instanceof l?e.errors:e)}),[])}var v=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var y=function(t){__extends(e,t);function e(r,n,i){var o=t.call(this)||this;o.syncErrorValue=null;o.syncErrorThrown=false;o.syncErrorThrowable=false;o.isStopped=false;switch(arguments.length){case 0:o.destination=a;break;case 1:if(!r){o.destination=a;break}if(typeof r==="object"){if(r instanceof e){o.syncErrorThrowable=r.syncErrorThrowable;o.destination=r;r.add(o)}else{o.syncErrorThrowable=true;o.destination=new b(o,r)}break}default:o.syncErrorThrowable=true;o.destination=new b(o,r,n,i);break}return o}e.prototype[v]=function(){return this};e.create=function(t,r,n){var i=new e(t,r,n);i.syncErrorThrowable=false;return i};e.prototype.next=function(t){if(!this.isStopped){this._next(t)}};e.prototype.error=function(t){if(!this.isStopped){this.isStopped=true;this._error(t)}};e.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};e.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;t.prototype.unsubscribe.call(this)};e.prototype._next=function(t){this.destination.next(t)};e.prototype._error=function(t){this.destination.error(t);this.unsubscribe()};e.prototype._complete=function(){this.destination.complete();this.unsubscribe()};e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=t;return this};return e}(p);t("g",y);var b=function(t){__extends(e,t);function e(e,r,n,o){var s=t.call(this)||this;s._parentSubscriber=e;var u;var c=s;if(i(r)){u=r}else if(r){u=r.next;n=r.error;o=r.complete;if(r!==a){c=Object.create(r);if(i(c.unsubscribe)){s.add(c.unsubscribe.bind(c))}c.unsubscribe=s.unsubscribe.bind(s)}}s._context=c;s._next=u;s._error=n;s._complete=o;return s}e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;if(!s.useDeprecatedSynchronousErrorHandling||!e.syncErrorThrowable){this.__tryOrUnsub(this._next,t)}else if(this.__tryOrSetError(e,this._next,t)){this.unsubscribe()}}};e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;var r=s.useDeprecatedSynchronousErrorHandling;if(this._error){if(!r||!e.syncErrorThrowable){this.__tryOrUnsub(this._error,t);this.unsubscribe()}else{this.__tryOrSetError(e,this._error,t);this.unsubscribe()}}else if(!e.syncErrorThrowable){this.unsubscribe();if(r){throw t}u(t)}else{if(r){e.syncErrorValue=t;e.syncErrorThrown=true}else{u(t)}this.unsubscribe()}}};e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};if(!s.useDeprecatedSynchronousErrorHandling||!e.syncErrorThrowable){this.__tryOrUnsub(r);this.unsubscribe()}else{this.__tryOrSetError(e,r);this.unsubscribe()}}else{this.unsubscribe()}}};e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){this.unsubscribe();if(s.useDeprecatedSynchronousErrorHandling){throw t}else{u(t)}}};e.prototype.__tryOrSetError=function(t,e,r){if(!s.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{e.call(this._context,r)}catch(e){if(s.useDeprecatedSynchronousErrorHandling){t.syncErrorValue=e;t.syncErrorThrown=true;return true}else{u(e);return true}}return false};e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null;this._parentSubscriber=null;t.unsubscribe()};return e}(y);function g(t){while(t){var e=t.closed,r=t.destination,n=t.isStopped;if(e||n){return false}else if(r&&r instanceof y){t=r}else{t=null}}return true}function _(t,e,r){if(t){if(t instanceof y){return t}if(t[v]){return t[v]()}}if(!t&&!e&&!r){return new y(a)}return new y(t,e,r)}var w=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function m(t){return t}function E(t){if(t.length===0){return m}if(t.length===1){return t[0]}return function e(r){return t.reduce((function(t,e){return e(t)}),r)}}var S=function(){function t(t){this._isScalar=false;if(t){this._subscribe=t}}t.prototype.lift=function(e){var r=new t;r.source=this;r.operator=e;return r};t.prototype.subscribe=function(t,e,r){var n=this.operator;var i=_(t,e,r);if(n){i.add(n.call(i,this.source))}else{i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(s.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){if(s.useDeprecatedSynchronousErrorHandling){t.syncErrorThrown=true;t.syncErrorValue=e}if(g(t)){t.error(e)}else{console.warn(e)}}};t.prototype.forEach=function(t,e){var r=this;e=O(e);return new e((function(e,n){var i;i=r.subscribe((function(e){try{t(e)}catch(t){n(t);if(i){i.unsubscribe()}}}),n,e)}))};t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)};t.prototype[w]=function(){return this};t.prototype.pipe=function(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}if(t.length===0){return this}return E(t)(this)};t.prototype.toPromise=function(t){var e=this;t=O(t);return new t((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))};return t}();t("O",S);S.create=function(t){return new S(t)};function O(t){if(!t){t=Promise}if(!t){throw new Error("no Promise impl found")}return t}var x=function(){function t(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}t.prototype=Object.create(Error.prototype);return t}();var P=x;var j=function(t){__extends(e,t);function e(e,r){var n=t.call(this)||this;n.subject=e;n.subscriber=r;n.closed=false;return n}e.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var t=this.subject;var e=t.observers;this.subject=null;if(!e||e.length===0||t.isStopped||t.closed){return}var r=e.indexOf(this.subscriber);if(r!==-1){e.splice(r,1)}};return e}(p);var A=function(t){__extends(e,t);function e(e){var r=t.call(this,e)||this;r.destination=e;return r}return e}(y);var I=function(t){__extends(e,t);function e(){var e=t.call(this)||this;e.observers=[];e.closed=false;e.isStopped=false;e.hasError=false;e.thrownError=null;return e}e.prototype[v]=function(){return new A(this)};e.prototype.lift=function(t){var e=new C(this,this);e.operator=t;return e};e.prototype.next=function(t){if(this.closed){throw new P}if(!this.isStopped){var e=this.observers;var r=e.length;var n=e.slice();for(var i=0;i<r;i++){n[i].next(t)}}};e.prototype.error=function(t){if(this.closed){throw new P}this.hasError=true;this.thrownError=t;this.isStopped=true;var e=this.observers;var r=e.length;var n=e.slice();for(var i=0;i<r;i++){n[i].error(t)}this.observers.length=0};e.prototype.complete=function(){if(this.closed){throw new P}this.isStopped=true;var t=this.observers;var e=t.length;var r=t.slice();for(var n=0;n<e;n++){r[n].complete()}this.observers.length=0};e.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};e.prototype._trySubscribe=function(e){if(this.closed){throw new P}else{return t.prototype._trySubscribe.call(this,e)}};e.prototype._subscribe=function(t){if(this.closed){throw new P}else if(this.hasError){t.error(this.thrownError);return p.EMPTY}else if(this.isStopped){t.complete();return p.EMPTY}else{this.observers.push(t);return new j(this,t)}};e.prototype.asObservable=function(){var t=new S;t.source=this;return t};return e}(S);I.create=function(t,e){return new C(t,e)};var C=function(t){__extends(e,t);function e(e,r){var n=t.call(this)||this;n.destination=e;n.source=r;return n}e.prototype.next=function(t){var e=this.destination;if(e&&e.next){e.next(t)}};e.prototype.error=function(t){var e=this.destination;if(e&&e.error){this.destination.error(t)}};e.prototype.complete=function(){var t=this.destination;if(t&&t.complete){this.destination.complete()}};e.prototype._subscribe=function(t){var e=this.source;if(e){return this.source.subscribe(t)}else{return p.EMPTY}};return e}(I);var N=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r._value=e;return r}Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);if(r&&!r.closed){e.next(this._value)}return r};e.prototype.getValue=function(){if(this.hasError){throw this.thrownError}else if(this.closed){throw new P}else{return this._value}};e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)};return e}(I);var k=function(t){__extends(e,t);function e(e,r){return t.call(this)||this}e.prototype.schedule=function(t,e){if(e===void 0){e=0}return this};return e}(p);var U=function(t){__extends(e,t);function e(e,r){var n=t.call(this,e,r)||this;n.scheduler=e;n.work=r;n.pending=false;return n}e.prototype.schedule=function(t,e){if(e===void 0){e=0}if(this.closed){return this}this.state=t;var r=this.id;var n=this.scheduler;if(r!=null){this.id=this.recycleAsyncId(n,r,e)}this.pending=true;this.delay=e;this.id=this.id||this.requestAsyncId(n,this.id,e);return this};e.prototype.requestAsyncId=function(t,e,r){if(r===void 0){r=0}return setInterval(t.flush.bind(t,this),r)};e.prototype.recycleAsyncId=function(t,e,r){if(r===void 0){r=0}if(r!==null&&this.delay===r&&this.pending===false){return e}clearInterval(e);return undefined};e.prototype.execute=function(t,e){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var r=this._execute(t,e);if(r){return r}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};e.prototype._execute=function(t,e){var r=false;var n=undefined;try{this.work(t)}catch(t){r=true;n=!!t&&t||new Error(t)}if(r){this.unsubscribe();return n}};e.prototype._unsubscribe=function(){var t=this.id;var e=this.scheduler;var r=e.actions;var n=r.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(n!==-1){r.splice(n,1)}if(t!=null){this.id=this.recycleAsyncId(e,t,null)}this.delay=null};return e}(k);var F=function(t){__extends(e,t);function e(e,r){var n=t.call(this,e,r)||this;n.scheduler=e;n.work=r;return n}e.prototype.schedule=function(e,r){if(r===void 0){r=0}if(r>0){return t.prototype.schedule.call(this,e,r)}this.delay=r;this.state=e;this.scheduler.flush(this);return this};e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)};e.prototype.requestAsyncId=function(e,r,n){if(n===void 0){n=0}if(n!==null&&n>0||n===null&&this.delay>0){return t.prototype.requestAsyncId.call(this,e,r,n)}return e.flush(this)};return e}(U);var R=function(){function t(e,r){if(r===void 0){r=t.now}this.SchedulerAction=e;this.now=r}t.prototype.schedule=function(t,e,r){if(e===void 0){e=0}return new this.SchedulerAction(this,t).schedule(r,e)};return t}();R.now=function(){return Date.now()};var M=function(t){__extends(e,t);function e(r,n){if(n===void 0){n=R.now}var i=t.call(this,r,(function(){if(e.delegate&&e.delegate!==i){return e.delegate.now()}else{return n()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}e.prototype.schedule=function(r,n,i){if(n===void 0){n=0}if(e.delegate&&e.delegate!==this){return e.delegate.schedule(r,n,i)}else{return t.prototype.schedule.call(this,r,n,i)}};e.prototype.flush=function(t){var e=this.actions;if(this.active){e.push(t);return}var r;this.active=true;do{if(r=t.execute(t.state,t.delay)){break}}while(t=e.shift());this.active=false;if(r){while(t=e.shift()){t.unsubscribe()}throw r}};return e}(R);var K=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(M);var D=new K(F);var V=D;var H=new S((function(t){return t.complete()}));function L(t){return t?q(t):H}function q(t){return new S((function(e){return t.schedule((function(){return e.complete()}))}))}function Y(t){return t&&typeof t.schedule==="function"}var W=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++){e.next(t[r])}e.complete()}};function $(t,e){return new S((function(r){var n=new p;var i=0;n.add(e.schedule((function(){if(i===t.length){r.complete();return}r.next(t[i++]);if(!r.closed){n.add(this.schedule())}})));return n}))}function z(t,e){if(!e){return new S(W(t))}else{return $(t,e)}}function Q(){var t=[];for(var e=0;e<arguments.length;e++){t[e]=arguments[e]}var r=t[t.length-1];if(Y(r)){t.pop();return $(t,r)}else{return z(t)}}function B(t,e){if(!e){return new S((function(e){return e.error(t)}))}else{return new S((function(r){return e.schedule(G,0,{error:t,subscriber:r})}))}}function G(t){var e=t.error,r=t.subscriber;r.error(e)}var J;(function(t){t["NEXT"]="N";t["ERROR"]="E";t["COMPLETE"]="C"})(J||(J={}));var X=function(){function t(t,e,r){this.kind=t;this.value=e;this.error=r;this.hasValue=t==="N"}t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}};t.prototype.do=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}};t.prototype.accept=function(t,e,r){if(t&&typeof t.next==="function"){return this.observe(t)}else{return this.do(t,e,r)}};t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return Q(this.value);case"E":return B(this.error);case"C":return L()}throw new Error("unexpected notification kind value")};t.createNext=function(e){if(typeof e!=="undefined"){return new t("N",e)}return t.undefinedValueNotification};t.createError=function(e){return new t("E",undefined,e)};t.createComplete=function(){return t.completeNotification};return t}();X.completeNotification=new X("C");X.undefinedValueNotification=new X("N",undefined);var Z=function(t){__extends(e,t);function e(e,r,n){if(n===void 0){n=0}var i=t.call(this,e)||this;i.scheduler=r;i.delay=n;return i}e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r);this.unsubscribe()};e.prototype.scheduleMessage=function(t){var r=this.destination;r.add(this.scheduler.schedule(e.dispatch,this.delay,new tt(t,this.destination)))};e.prototype._next=function(t){this.scheduleMessage(X.createNext(t))};e.prototype._error=function(t){this.scheduleMessage(X.createError(t));this.unsubscribe()};e.prototype._complete=function(){this.scheduleMessage(X.createComplete());this.unsubscribe()};return e}(y);var tt=function(){function t(t,e){this.notification=t;this.destination=e}return t}();var et=function(t){__extends(e,t);function e(e,r,n){if(e===void 0){e=Number.POSITIVE_INFINITY}if(r===void 0){r=Number.POSITIVE_INFINITY}var i=t.call(this)||this;i.scheduler=n;i._events=[];i._infiniteTimeWindow=false;i._bufferSize=e<1?1:e;i._windowTime=r<1?1:r;if(r===Number.POSITIVE_INFINITY){i._infiniteTimeWindow=true;i.next=i.nextInfiniteTimeWindow}else{i.next=i.nextTimeWindow}return i}e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e);if(r.length>this._bufferSize){r.shift()}}t.prototype.next.call(this,e)};e.prototype.nextTimeWindow=function(e){if(!this.isStopped){this._events.push(new rt(this._getNow(),e));this._trimBufferThenGetEvents()}t.prototype.next.call(this,e)};e.prototype._subscribe=function(t){var e=this._infiniteTimeWindow;var r=e?this._events:this._trimBufferThenGetEvents();var n=this.scheduler;var i=r.length;var o;if(this.closed){throw new P}else if(this.isStopped||this.hasError){o=p.EMPTY}else{this.observers.push(t);o=new j(this,t)}if(n){t.add(t=new Z(t,n))}if(e){for(var s=0;s<i&&!t.closed;s++){t.next(r[s])}}else{for(var s=0;s<i&&!t.closed;s++){t.next(r[s].value)}}if(this.hasError){t.error(this.thrownError)}else if(this.isStopped){t.complete()}return o};e.prototype._getNow=function(){return(this.scheduler||V).now()};e.prototype._trimBufferThenGetEvents=function(){var t=this._getNow();var e=this._bufferSize;var r=this._windowTime;var n=this._events;var i=n.length;var o=0;while(o<i){if(t-n[o].time<r){break}o++}if(i>e){o=Math.max(o,i-e)}if(o>0){n.splice(0,o)}return n};return e}(I);var rt=function(){function t(t,e){this.time=t;this.value=e}return t}();var nt=new M(U);var it=t("d",nt);function ot(t){return!!t&&(t instanceof S||typeof t.lift==="function"&&typeof t.subscribe==="function")}var st=function(){function t(){Error.call(this);this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}t.prototype=Object.create(Error.prototype);return t}();var ut=st;function at(t,e){return function r(n){if(typeof t!=="function"){throw new TypeError("argument is not a function. Are you looking for `mapTo()`?")}return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.project=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new ft(t,this.project,this.thisArg))};return t}();var ft=function(t){__extends(e,t);function e(e,r,n){var i=t.call(this,e)||this;i.project=r;i.count=0;i.thisArg=n||i;return i}e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)};return e}(y);var ht=function(t){return function(e){t.then((function(t){if(!e.closed){e.next(t);e.complete()}}),(function(t){return e.error(t)})).then(null,u);return e}};function lt(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}var pt=lt();var dt=function(t){return function(e){var r=t[pt]();do{var n=void 0;try{n=r.next()}catch(t){e.error(t);return e}if(n.done){e.complete();break}e.next(n.value);if(e.closed){break}}while(true);if(typeof r.return==="function"){e.add((function(){if(r.return){r.return()}}))}return e}};var vt=function(t){return function(e){var r=t[w]();if(typeof r.subscribe!=="function"){throw new TypeError("Provided object does not correctly implement Symbol.observable")}else{return r.subscribe(e)}}};var yt=function(t){return t&&typeof t.length==="number"&&typeof t!=="function"};function bt(t){return!!t&&typeof t.subscribe!=="function"&&typeof t.then==="function"}var gt=function(t){if(!!t&&typeof t[w]==="function"){return vt(t)}else if(yt(t)){return W(t)}else if(bt(t)){return ht(t)}else if(!!t&&typeof t[pt]==="function"){return dt(t)}else{var e=f(t)?"an invalid object":"'"+t+"'";var r="You provided "+e+" where a stream was expected."+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(r)}};function _t(t,e){return new S((function(r){var n=new p;n.add(e.schedule((function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule((function(){return r.next(t)})))},error:function(t){n.add(e.schedule((function(){return r.error(t)})))},complete:function(){n.add(e.schedule((function(){return r.complete()})))}}))})));return n}))}function wt(t,e){return new S((function(r){var n=new p;n.add(e.schedule((function(){return t.then((function(t){n.add(e.schedule((function(){r.next(t);n.add(e.schedule((function(){return r.complete()})))})))}),(function(t){n.add(e.schedule((function(){return r.error(t)})))}))})));return n}))}function mt(t,e){if(!t){throw new Error("Iterable cannot be null")}return new S((function(r){var n=new p;var i;n.add((function(){if(i&&typeof i.return==="function"){i.return()}}));n.add(e.schedule((function(){i=t[pt]();n.add(e.schedule((function(){if(r.closed){return}var t;var e;try{var n=i.next();t=n.value;e=n.done}catch(t){r.error(t);return}if(e){r.complete()}else{r.next(t);this.schedule()}})))})));return n}))}function Et(t){return t&&typeof t[w]==="function"}function St(t){return t&&typeof t[pt]==="function"}function Ot(t,e){if(t!=null){if(Et(t)){return _t(t,e)}else if(bt(t)){return wt(t,e)}else if(yt(t)){return $(t,e)}else if(St(t)||typeof t==="string"){return mt(t,e)}}throw new TypeError((t!==null&&typeof t||t)+" is not observable")}function xt(t,e){if(!e){if(t instanceof S){return t}return new S(gt(t))}else{return Ot(t,e)}}var Pt=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.parent=e;return r}e.prototype._next=function(t){this.parent.notifyNext(t)};e.prototype._error=function(t){this.parent.notifyError(t);this.unsubscribe()};e.prototype._complete=function(){this.parent.notifyComplete();this.unsubscribe()};return e}(y);t("a",Pt);var jt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.notifyNext=function(t){this.destination.next(t)};e.prototype.notifyError=function(t){this.destination.error(t)};e.prototype.notifyComplete=function(){this.destination.complete()};return e}(y);t("S",jt);function Tt(t,e){if(e.closed){return undefined}if(t instanceof S){return t.subscribe(e)}return gt(t)(e)}function At(t,e){return function r(n){return n.lift(new It(t,e))}}var It=function(){function t(t,e){this.predicate=t;this.thisArg=e}t.prototype.call=function(t,e){return e.subscribe(new Ct(t,this.predicate,this.thisArg))};return t}();var Ct=function(t){__extends(e,t);function e(e,r,n){var i=t.call(this,e)||this;i.predicate=r;i.thisArg=n;i.count=0;return i}e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}if(e){this.destination.next(t)}};return e}(y);function Nt(t){return t instanceof Date&&!isNaN(+t)}function kt(t,e){if(e===void 0){e=it}var r=Nt(t);var n=r?+t-e.now():Math.abs(t);return function(t){return t.lift(new Ut(n,e))}}var Ut=function(){function t(t,e){this.delay=t;this.scheduler=e}t.prototype.call=function(t,e){return e.subscribe(new Ft(t,this.delay,this.scheduler))};return t}();var Ft=function(t){__extends(e,t);function e(e,r,n){var i=t.call(this,e)||this;i.delay=r;i.scheduler=n;i.queue=[];i.active=false;i.errored=false;return i}e.dispatch=function(t){var e=t.source;var r=e.queue;var n=t.scheduler;var i=t.destination;while(r.length>0&&r[0].time-n.now()<=0){r.shift().notification.observe(i)}if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else{this.unsubscribe();e.active=false}};e.prototype._schedule=function(t){this.active=true;var r=this.destination;r.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))};e.prototype.scheduleNotification=function(t){if(this.errored===true){return}var e=this.scheduler;var r=new Rt(e.now()+this.delay,t);this.queue.push(r);if(this.active===false){this._schedule(e)}};e.prototype._next=function(t){this.scheduleNotification(X.createNext(t))};e.prototype._error=function(t){this.errored=true;this.queue=[];this.destination.error(t);this.unsubscribe()};e.prototype._complete=function(){this.scheduleNotification(X.createComplete());this.unsubscribe()};return e}(y);var Rt=function(){function t(t,e){this.time=t;this.notification=e}return t}();function Mt(t,e){return function(r){return r.lift(new Kt(t,e))}}var Kt=function(){function t(t,e){this.compare=t;this.keySelector=e}t.prototype.call=function(t,e){return e.subscribe(new Dt(t,this.compare,this.keySelector))};return t}();var Dt=function(t){__extends(e,t);function e(e,r,n){var i=t.call(this,e)||this;i.keySelector=n;i.hasKey=false;if(typeof r==="function"){i.compare=r}return i}e.prototype.compare=function(t,e){return t===e};e.prototype._next=function(t){var e;try{var r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=false;if(this.hasKey){try{var i=this.compare;n=i(this.key,e)}catch(t){return this.destination.error(t)}}else{this.hasKey=true}if(!n){this.key=e;this.destination.next(t)}};return e}(y);function Vt(t){return function(e){if(t===0){return L()}else{return e.lift(new Ht(t))}}}var Ht=function(){function t(t){this.total=t;if(this.total<0){throw new ut}}t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.total))};return t}();var Lt=function(t){__extends(e,t);function e(e,r){var n=t.call(this,e)||this;n.total=r;n.count=0;return n}e.prototype._next=function(t){var e=this.total;var r=++this.count;if(r<=e){this.destination.next(t);if(r===e){this.destination.complete();this.unsubscribe()}}};return e}(y);function qt(t,e){if(typeof e==="function"){return function(r){return r.pipe(qt((function(r,n){return xt(t(r,n)).pipe(at((function(t,i){return e(r,t,n,i)})))})))}}return function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.project=t}t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.project))};return t}();var Wt=function(t){__extends(e,t);function e(e,r){var n=t.call(this,e)||this;n.project=r;n.index=0;return n}e.prototype._next=function(t){var e;var r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this._innerSub(e)};e.prototype._innerSub=function(t){var e=this.innerSubscription;if(e){e.unsubscribe()}var r=new Pt(this);var n=this.destination;n.add(r);this.innerSubscription=Tt(t,r);if(this.innerSubscription!==r){n.add(this.innerSubscription)}};e.prototype._complete=function(){var e=this.innerSubscription;if(!e||e.closed){t.prototype._complete.call(this)}this.unsubscribe()};e.prototype._unsubscribe=function(){this.innerSubscription=undefined};e.prototype.notifyComplete=function(){this.innerSubscription=undefined;if(this.isStopped){t.prototype._complete.call(this)}};e.prototype.notifyNext=function(t){this.destination.next(t)};return e}(jt);var $t={type:null,entityIds:null,skip:false};var zt=false;function Qt(){zt=false}function Bt(t,e){Gt(t,e);zt=true}function Gt(t,e){if(zt===false){$t.type=t;$t.entityIds=e}}function Jt(t,e){return function(r,n,i){var o=i.value;i.value=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}Bt(t,e);return o.apply(this,r)};return i}}function Xt(t,e){return t.hasOwnProperty(e)}function Zt(t){var e=t.state,r=t.entities,n=t.idKey,i=t.options,o=i===void 0?{}:i,s=t.preAddEntity;var u={};var a=[];var c=false;for(var f=0,h=r;f<h.length;f++){var l=h[f];if(Xt(e.entities,l[n])===false){var p=s(l);var d=p[n];u[d]=p;if(o.prepend)a.unshift(d);else a.push(d);c=true}}return c?{newState:Object.assign({},e,{entities:Object.assign({},e.entities,u),ids:o.prepend?__spreadArrays(a,e.ids):__spreadArrays(e.ids,a)}),newIds:a}:null}function te(t){return t===null||t===undefined}function ee(t){if(te(t)){return[]}return Array.isArray(t)?t:[t]}var re="id";var ne;(function(t){t["Set"]="Set";t["Add"]="Add";t["Update"]="Update";t["Remove"]="Remove"})(ne||(ne={}));var ie=typeof window!=="undefined";var oe=true;function se(){oe=false;if(ie){delete window.$$stores;delete window.$$queries}}function ue(){return oe}function ae(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function ce(t){return Array.isArray(t)}function fe(t,e,r){var n;if(ce(t)){n=t}else{if(ae(t)){if(te(r))return;t=Object.assign({wrap:true},t);var i=e.indexOf(r);if(t.prev){var o=i===0;if(o&&!t.wrap)return;n=o?e[e.length-1]:e[i-1]}else if(t.next){var s=e.length===i+1;if(s&&!t.wrap)return;n=s?e[0]:e[i+1]}}else{if(t===r)return;n=t}}return n}var he=function(){return{entities:{},ids:[],loading:true,error:null}};function le(t){return te(t)===false}function pe(t){if(ce(t)){return t.length===0}return false}function de(t){return typeof t==="function"}function ve(t){return t===undefined}function ye(t){return t.hasOwnProperty("active")}function be(t){return ce(t)}function ge(t){var e=t.active,r=t.ids,n=t.entities;if(be(e)){return _e(e,r)}if(Xt(n,e)===false){return null}return e}function _e(t,e){var r=t.filter((function(t){return e.indexOf(t)>-1}));if(r.length===t.length){return t}return r}function we(t){var e=t.state,r=t.ids;if(te(r))return me(e);var n=e.entities;var i={};for(var o=0,s=e.ids;o<s.length;o++){var u=s[o];if(r.includes(u)===false){i[u]=n[u]}}var a=Object.assign({},e,{entities:i,ids:e.ids.filter((function(t){return r.includes(t)===false}))});if(ye(e)){a.active=ge(a)}return a}function me(t){return Object.assign({},t,{entities:{},ids:[],active:be(t.active)?[]:null})}function Ee(t,e,r){var n={entities:{},ids:[]};for(var i=0,o=t;i<o.length;i++){var s=o[i];var u=r(s);n.entities[u[e]]=u;n.ids.push(u[e])}return n}function Se(t){return t.entities&&t.ids}function Oe(t,e){var r={};for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];r[o]=e(t[o])}return r}function xe(t){var e=t.state,r=t.entities,n=t.idKey,i=t.preAddEntity,o=t.isNativePreAdd;var s;var u;if(ce(r)){var a=Ee(r,n,i);s=a.entities;u=a.ids}else if(Se(r)){s=o?r.entities:Oe(r.entities,i);u=r.ids}else{s=o?r:Oe(r,i);u=Object.keys(s).map((function(t){return isNaN(t)?t:Number(t)}))}var c=Object.assign({},e,{entities:s,ids:u,loading:false});if(ye(e)){c.active=ge(c)}return c}var Pe={resettable:false,ttl:null,producerFn:undefined};function je(){return Pe}function Te(){return Pe.producerFn}function Ae(t){Object.freeze(t);var e=typeof t==="function";var r=Object.prototype.hasOwnProperty;Object.getOwnPropertyNames(t).forEach((function(n){if(r.call(t,n)&&(e?n!=="caller"&&n!=="callee"&&n!=="arguments":true)&&t[n]!==null&&(typeof t[n]==="object"||typeof t[n]==="function")&&!Object.isFrozen(t[n])){Ae(t[n])}}));return t}var Ie=new I;var Ce=new et(50,5e3);var Ne=new I;function ke(t){Ie.next(t)}function Ue(t){Ce.next(t)}function Fe(t,e){Ne.next({storeName:t,action:e})}function Re(t,e){if(!t){console.error("@StoreConfig({ name }) is missing in "+e)}}function Me(t){return t!=null&&""+t!=="false"}function Ke(t){return Me(t)&&t.constructor.name==="Object"}var De="akitaConfig";function Ve(t){return function(e){e[De]={idKey:"id"};for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];if(i==="name"){e[De]["storeName"]=t[i]}else{e[De][i]=t[i]}}}}var He={};var Le={};if(ie){window.$$stores=He;window.$$queries=Le}var qe=new I;var Ye=new N(false);var We={activeTransactions:0,batchTransaction:null};function $e(){if(!Qe()){We.batchTransaction=new I}We.activeTransactions++;Ye.next(true)}function ze(){if(--We.activeTransactions===0){We.batchTransaction.next(true);We.batchTransaction.complete();Ye.next(false);qe.next(true)}}function Qe(){return We.activeTransactions>0}function Be(){return We.batchTransaction?We.batchTransaction.asObservable():Q(true)}function Ge(t,e){if(e===void 0){e=undefined}$e();try{return t.apply(e)}finally{Bt("@Transaction");ze()}}function Je(){return function(t,e,r){var n=r.value;r.value=function(){var t=this;var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}return Ge((function(){return n.apply(t,e)}),this)};return r}}var Xe=function(){function t(t,e){if(e===void 0){e={}}this.options=e;this.inTransaction=false;this.cache={active:new N(false),ttl:null};this.onInit(t)}t.prototype.setLoading=function(t){if(t===void 0){t=false}if(t!==this._value().loading){ue()&&Gt("Set Loading");this._setState((function(e){return Object.assign({},e,{loading:t})}))}};t.prototype.setHasCache=function(t,e){var r=this;if(e===void 0){e={restartTTL:false}}if(t!==this.cache.active.value){this.cache.active.next(t)}if(e.restartTTL){var n=this.getCacheTTL();if(n){if(this.cache.ttl!==null){clearTimeout(this.cache.ttl)}this.cache.ttl=setTimeout((function(){return r.setHasCache(false)}),n)}}};t.prototype.getValue=function(){return this.storeValue};t.prototype.setError=function(t){if(t!==this._value().error){ue()&&Gt("Set Error");this._setState((function(e){return Object.assign({},e,{error:t})}))}};t.prototype._select=function(t){return this.store.asObservable().pipe(at((function(e){return t(e.state)})),Mt())};t.prototype._value=function(){return this.storeValue};t.prototype._cache=function(){return this.cache.active};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[De]||{}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"storeName",{get:function(){return this.config.storeName||this.options.storeName||this.options.name},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"deepFreeze",{get:function(){return this.config.deepFreezeFn||this.options.deepFreezeFn||Ae},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cacheConfig",{get:function(){return this.config.cache||this.options.cache},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"_producerFn",{get:function(){return this.config.producerFn||this.options.producerFn||Te()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"resettable",{get:function(){return le(this.config.resettable)?this.config.resettable:this.options.resettable},enumerable:false,configurable:true});t.prototype._setState=function(t,e){var r=this;if(e===void 0){e=true}if(de(t)){var n=t(this._value());this.storeValue=oe?this.deepFreeze(n):n}else{this.storeValue=t}if(!this.store){this.store=new N({state:this.storeValue});if(ue()){this.store.subscribe((function(t){var e=t.action;if(e){Fe(r.storeName,e)}}))}return}if(Qe()){this.handleTransaction();return}this.dispatch(this.storeValue,e)};t.prototype.reset=function(){var t=this;if(this.isResettable()){ue()&&Gt("Reset");this._setState((function(){return Object.assign({},t._initialState)}));this.setHasCache(false)}else{ue()&&console.warn("You need to enable the reset functionality")}};t.prototype.update=function(t){ue()&&Gt("Update");var e;var r=this._value();if(de(t)){e=de(this._producerFn)?this._producerFn(r,t):t(r)}else{e=t}var n=this.akitaPreUpdate(r,Object.assign({},r,e));var i=Ke(r)?n:new r.constructor(n);this._setState(i)};t.prototype.updateStoreConfig=function(t){this.options=Object.assign({},this.options,t)};t.prototype.akitaPreUpdate=function(t,e){return e};t.prototype.ngOnDestroy=function(){this.destroy()};t.prototype.destroy=function(){var t=ie?window.hmrEnabled:false;if(!t&&this===He[this.storeName]){delete He[this.storeName];ke(this.storeName);this.setHasCache(false);this.cache.active.complete();this.store.complete()}};t.prototype.onInit=function(t){He[this.storeName]=this;this._setState((function(){return t}));Ue(this.storeName);if(this.isResettable()){this._initialState=t}ue()&&Re(this.storeName,this.constructor.name)};t.prototype.dispatch=function(t,e){if(e===void 0){e=true}var r=undefined;if(e){r=$t;Qt()}this.store.next({state:t,action:r})};t.prototype.watchTransaction=function(){var t=this;Be().subscribe((function(){t.inTransaction=false;t.dispatch(t._value())}))};t.prototype.isResettable=function(){if(this.resettable===false){return false}return this.resettable||je().resettable};t.prototype.handleTransaction=function(){if(!this.inTransaction){this.watchTransaction();this.inTransaction=true}};t.prototype.getCacheTTL=function(){return this.cacheConfig&&this.cacheConfig.ttl||je().ttl};return t}();t("l",Xe);function Ze(t){var r=t.state,n=t.ids,i=t.idKey,o=t.newStateOrFn,s=t.preUpdateEntity,u=t.producerFn,a=t.onEntityIdChanges;var c={};var f=false;var h;for(var l=0,p=n;l<p.length;l++){var d=p[l];if(Xt(r.entities,d)===false){continue}var v=r.entities[d];var y=void 0;if(de(o)){y=de(u)?u(v,o):o(v)}else{y=o}var b=y.hasOwnProperty(i)&&y[i]!==v[i];var g=void 0;h=d;if(b){f=true;h=y[i]}var _=Object.assign({},v,y);if(Ke(v)){g=_}else{if(Ke(y)){g=new v.constructor(_)}else{g=new y.constructor(_)}}c[h]=s(v,g)}var w=r.ids;var m=r.entities;if(f){var E=n[0];var S=r.entities,O=E,x=e(S,[typeof O==="symbol"?O:O+""]);m=x;w=r.ids.map((function(t){return t===E?h:t}));a(E,h)}return Object.assign({},r,{entities:Object.assign({},m,c),ids:w})}var tr;var er=function(t){__extends(e,t);function e(e,r){if(e===void 0){e={}}if(r===void 0){r={}}var n=t.call(this,Object.assign({},he(),e),r)||this;n.options=r;n.entityActions=new I;n.entityIdChanges=new I;return n}Object.defineProperty(e.prototype,"selectEntityAction$",{get:function(){return this.entityActions.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectEntityIdChanges$",{get:function(){return this.entityIdChanges.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"idKey",{get:function(){return this.config.idKey||this.options.idKey||re},enumerable:false,configurable:true});e.prototype.set=function(t,r){var n=this;if(r===void 0){r={}}if(te(t))return;ue()&&Gt("Set Entity");var i=this.akitaPreAddEntity===e.prototype.akitaPreAddEntity;this.setHasCache(true,{restartTTL:true});this._setState((function(e){var o=xe({state:e,entities:t,idKey:n.idKey,preAddEntity:n.akitaPreAddEntity,isNativePreAdd:i});if(ve(r.activeId)===false){o.active=r.activeId}return o}));if(this.hasInitialUIState()){this.handleUICreation()}this.entityActions.next({type:ne.Set,ids:this.ids})};e.prototype.add=function(t,e){if(e===void 0){e={loading:false}}var r=ee(t);if(pe(r))return;var n=Zt({state:this._value(),preAddEntity:this.akitaPreAddEntity,entities:r,idKey:this.idKey,options:e});if(n){ue()&&Gt("Add Entity");n.newState.loading=e.loading;this._setState((function(){return n.newState}));if(this.hasInitialUIState()){this.handleUICreation(true)}this.entityActions.next({type:ne.Add,ids:n.newIds})}};e.prototype.update=function(e,r){var n=this;if(ve(r)){t.prototype.update.call(this,e);return}var i=[];if(de(e)){i=this.ids.filter((function(t){return e(n.entities[t])}))}else{i=te(e)?this.ids:ee(e)}if(pe(i))return;ue()&&Gt("Update Entity",i);var o;this._setState((function(t){return Ze({idKey:n.idKey,ids:i,preUpdateEntity:n.akitaPreUpdateEntity,state:t,newStateOrFn:r,producerFn:n._producerFn,onEntityIdChanges:function(t,e){o={oldId:t,newId:e};n.entityIdChanges.next(Object.assign({},o,{pending:true}))}})}));if(o){this.entityIdChanges.next(Object.assign({},o,{pending:false}))}this.entityActions.next({type:ne.Update,ids:i})};e.prototype.upsert=function(t,e,r,n){var i=this;if(n===void 0){n={}}var o=ee(t);var s=function(t){return function(e){return Xt(i.entities,e)===t}};var u=de(r)?n.baseClass:r?r.baseClass:undefined;var a=de(u);var c=o.filter(s(true));var f=o.filter(s(false)).map((function(t){var n;var o=typeof e==="function"?e({}):e;var s=de(r)?r(t,o):o;var c=Object.assign({},s,(n={},n[i.idKey]=t,n));if(a){return new u(c)}return c}));this.update(c,e);this.add(f);ue()&&Bt("Upsert Entity")};e.prototype.upsertMany=function(t,e){if(e===void 0){e={}}var r=[];var n=[];var i={};for(var o=0,s=t;o<s.length;o++){var u=s[o];var a=this.akitaPreCheckEntity(u);var c=a[this.idKey];if(Xt(this.entities,c)){var f=this._value().entities[c];var h=Object.assign({},this._value().entities[c],a);var l=e.baseClass?new e.baseClass(h):h;var p=this.akitaPreUpdateEntity(f,l);var d=p[this.idKey];i[d]=p;n.push(d)}else{var v=e.baseClass?new e.baseClass(a):a;var p=this.akitaPreAddEntity(v);var d=p[this.idKey];r.push(d);i[d]=p}}ue()&&Bt("Upsert Many");this._setState((function(t){return Object.assign({},t,{ids:r.length?__spreadArrays(t.ids,r):t.ids,entities:Object.assign({},t.entities,i),loading:!!e.loading})}));n.length&&this.entityActions.next({type:ne.Update,ids:n});r.length&&this.entityActions.next({type:ne.Add,ids:r});if(r.length&&this.hasUIStore()){this.handleUICreation(true)}};e.prototype.replace=function(t,e){var r=ee(t);if(pe(r))return;var n={};for(var i=0,o=r;i<o.length;i++){var s=o[i];e[this.idKey]=s;n[s]=e}ue()&&Gt("Replace Entity",t);this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities,n)})}))};e.prototype.move=function(t,e){var r=this.ids.slice();r.splice(e<0?r.length+e:e,0,r.splice(t,1)[0]);ue()&&Gt("Move Entity");this._setState((function(t){return Object.assign({},t,{entities:Object.assign({},t.entities),ids:r})}))};e.prototype.remove=function(t){var e=this;if(pe(this.ids))return;var r=le(t);var n=[];if(de(t)){n=this.ids.filter((function(r){return t(e.entities[r])}))}else{n=r?ee(t):this.ids}if(pe(n))return;ue()&&Gt("Remove Entity",n);this._setState((function(t){return we({state:t,ids:n})}));if(!r){this.setHasCache(false)}this.handleUIRemove(n);this.entityActions.next({type:ne.Remove,ids:n})};e.prototype.updateActive=function(t){var e=ee(this.active);ue()&&Gt("Update Active",e);this.update(e,t)};e.prototype.setActive=function(t){var e=fe(t,this.ids,this.active);if(e===undefined){return}ue()&&Gt("Set Active",e);this._setActive(e)};e.prototype.addActive=function(t){var e=this;var r=ee(t);if(pe(r))return;var n=r.every((function(t){return e.active.indexOf(t)>-1}));if(n)return;ue()&&Gt("Add Active",t);this._setState((function(t){var e=Array.from(new Set(__spreadArrays(t.active,r)));return Object.assign({},t,{active:e})}))};e.prototype.removeActive=function(t){var e=this;var r=ee(t);if(pe(r))return;var n=r.some((function(t){return e.active.indexOf(t)>-1}));if(!n)return;ue()&&Gt("Remove Active",t);this._setState((function(t){return Object.assign({},t,{active:Array.isArray(t.active)?t.active.filter((function(t){return r.indexOf(t)===-1})):null})}))};e.prototype.toggleActive=function(t){var e=this;var r=ee(t);var n=function(t){return function(r){return e.active.includes(r)===t}};var i=r.filter(n(true));var o=r.filter(n(false));this.removeActive(i);this.addActive(o);ue()&&Bt("Toggle Active")};e.prototype.createUIStore=function(t,e){if(t===void 0){t={}}if(e===void 0){e={}}var r={name:"UI/"+this.storeName,idKey:this.idKey};this.ui=new rr(t,Object.assign({},r,e));return this.ui};e.prototype.destroy=function(){t.prototype.destroy.call(this);if(this.ui instanceof e){this.ui.destroy()}this.entityActions.complete()};e.prototype.akitaPreUpdateEntity=function(t,e){return e};e.prototype.akitaPreAddEntity=function(t){return t};e.prototype.akitaPreCheckEntity=function(t){return t};Object.defineProperty(e.prototype,"ids",{get:function(){return this._value().ids},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"entities",{get:function(){return this._value().entities},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"active",{get:function(){return this._value().active},enumerable:false,configurable:true});e.prototype._setActive=function(t){this._setState((function(e){return Object.assign({},e,{active:t})}))};e.prototype.handleUICreation=function(t){var e=this;if(t===void 0){t=false}var r=this.ids;var n=de(this.ui._akitaCreateEntityFn);var i;var o=function(t){var r;var i=e.entities[t];var o=n?e.ui._akitaCreateEntityFn(i):e.ui._akitaCreateEntityFn;return Object.assign((r={},r[e.idKey]=i[e.idKey],r),o)};if(t){i=this.ids.filter((function(t){return ve(e.ui.entities[t])})).map(o)}else{i=r.map(o)}t?this.ui.add(i):this.ui.set(i)};e.prototype.hasInitialUIState=function(){return this.hasUIStore()&&ve(this.ui._akitaCreateEntityFn)===false};e.prototype.handleUIRemove=function(t){if(this.hasUIStore()){this.ui.remove(t)}};e.prototype.hasUIStore=function(){return this.ui instanceof rr};return e}(Xe);r([Je(),n("design:type",Function),n("design:paramtypes",[Object,Object,Object,Object]),n("design:returntype",void 0)],er.prototype,"upsert",null);r([Je(),n("design:type",Function),n("design:paramtypes",[typeof(tr=typeof T!=="undefined"&&T)==="function"?tr:Object]),n("design:returntype",void 0)],er.prototype,"toggleActive",null);var rr=function(t){__extends(e,t);function e(e,r){if(e===void 0){e={}}if(r===void 0){r={}}return t.call(this,e,r)||this}e.prototype.setInitialEntityState=function(t){this._akitaCreateEntityFn=t};return e}(er);var nr;(function(t){t["ASC"]="asc";t["DESC"]="desc"})(nr||(nr={}));function ir(t){return typeof t==="string"}var or="akitaQueryConfig";function sr(t){return function(e,r){var n=de(t[0]);return t.some((function(t){if(n){return t(e)!==t(r)}return e[t]!==r[t]}))===false}}var ur=function(){function t(t){this.store=t;this.__store__=t;if(ue()){Le[t.storeName]=this}}t.prototype.select=function(t){var e;if(de(t)){e=t}else if(ir(t)){e=function(e){return e[t]}}else if(Array.isArray(t)){return this.store._select((function(t){return t})).pipe(Mt(sr(t)),at((function(e){if(de(t[0])){return t.map((function(t){return t(e)}))}return t.reduce((function(t,r){t[r]=e[r];return t}),{})})))}else{e=function(t){return t}}return this.store._select(e)};t.prototype.selectLoading=function(){return this.select((function(t){return t.loading}))};t.prototype.selectError=function(){return this.select((function(t){return t.error}))};t.prototype.getValue=function(){return this.store._value()};t.prototype.selectHasCache=function(){return this.store._cache().asObservable()};t.prototype.getHasCache=function(){return this.store._cache().value};Object.defineProperty(t.prototype,"config",{get:function(){return this.constructor[or]},enumerable:false,configurable:true});return t}();t("Q",ur);var ar=function(t){return t.pipe(At((function(t){return t!==null&&typeof t!=="undefined"})))};function cr(t,e){if(e.split(".").length===1){return t}var r=e.split(".").slice(1).join(".");return r.split(".").reduce((function(t,e){return t&&t[e]}),t)}function fr(t,e,r){var n=e.split(".");if(n.length===1){return Object.assign({},t,r)}t=Object.assign({},t);var i=n.length-2;var o=e.split(".").slice(1);o.reduce((function(t,e,n){if(n!==i){t[e]=Object.assign({},t[e]);return t&&t[e]}t[e]=Array.isArray(t[e])||!ae(t[e])?r:Object.assign({},t[e],r);return t&&t[e]}),t);return t}var hr=new et(1);var lr=function(){function t(t,e){this.query=t;if(e&&e.resetFn){if(je().resettable){this.onReset(e.resetFn)}}}t.prototype.getQuery=function(){return this.query};t.prototype.getStore=function(){return this.getQuery().__store__};t.prototype.isEntityBased=function(t){return Me(t)};t.prototype.selectSource=function(t,e){var r=this;if(this.isEntityBased(t)){return this.getQuery().selectEntity(t).pipe(ar)}if(e){return this.getQuery().select((function(t){return cr(t,r.withStoreName(e))}))}return this.getQuery().select()};t.prototype.getSource=function(t,e){if(this.isEntityBased(t)){return this.getQuery().getEntity(t)}var r=this.getQuery().getValue();if(e){return cr(r,this.withStoreName(e))}return r};t.prototype.withStoreName=function(t){return this.storeName+"."+t};Object.defineProperty(t.prototype,"storeName",{get:function(){return this.getStore().storeName},enumerable:false,configurable:true});t.prototype.updateStore=function(t,e,r){var n=this;if(this.isEntityBased(e)){this.getStore().update(e,t)}else{if(r){this.getStore()._setState((function(e){return fr(e,n.withStoreName(r),t)}));return}this.getStore()._setState((function(e){return Object.assign({},e,t)}))}};t.prototype.onReset=function(t){var e=this;var r=this.getStore().reset;this.getStore().reset=function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}setTimeout((function(){r.apply(e.getStore(),n);t()}))}};return t}();var pr={pagesControls:false,range:false,startWith:1,cacheTimeout:undefined,clearStoreWithCache:true};var dr=function(t){__extends(e,t);function e(e,r){if(r===void 0){r={}}var n=t.call(this,e,{resetFn:function(){n.initial=false;n.destroy({clearCache:true,currentPage:1})}})||this;n.query=e;n.config=r;n.metadata=new Map;n.pages=new Map;n.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]};n.initial=true;n.isLoading$=n.query.selectLoading().pipe(kt(0));n.config=Object.assign(pr,r);var i=n.config,o=i.startWith,s=i.cacheTimeout;n.page=new N(o);if(ot(s)){n.clearCacheSubscription=s.subscribe((function(){return n.clearCache()}))}return n}Object.defineProperty(e.prototype,"pageChanges",{get:function(){return this.page.asObservable()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"currentPage",{get:function(){return this.pagination.currentPage},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.currentPage===1},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isLast",{get:function(){return this.currentPage===this.pagination.lastPage},enumerable:false,configurable:true});e.prototype.withControls=function(){this.config.pagesControls=true;return this};e.prototype.withRange=function(){this.config.range=true;return this};e.prototype.setLoading=function(t){if(t===void 0){t=true}this.getStore().setLoading(t)};e.prototype.update=function(t){this.pagination=t;this.addPage(t.data)};e.prototype.addPage=function(t){var e=this;this.pages.set(this.currentPage,{ids:t.map((function(t){return t[e.getStore().idKey]}))});this.getStore().upsertMany(t)};e.prototype.clearCache=function(t){if(t===void 0){t={}}if(!this.initial){Bt("@Pagination - Clear Cache");if(t.clearStore!==false&&(this.config.clearStoreWithCache||t.clearStore)){this.getStore().remove()}this.pages=new Map;this.metadata=new Map}this.initial=false};e.prototype.clearPage=function(t){this.pages.delete(t)};e.prototype.destroy=function(t){var e=t===void 0?{}:t,r=e.clearCache,n=e.currentPage;if(this.clearCacheSubscription){this.clearCacheSubscription.unsubscribe()}if(r){this.clearCache()}if(!ve(n)){this.setPage(n)}this.initial=true};e.prototype.isPageActive=function(t){return this.currentPage===t};e.prototype.setPage=function(t){if(t!==this.currentPage||!this.hasPage(t)){this.page.next(this.pagination.currentPage=t)}};e.prototype.nextPage=function(){if(this.currentPage!==this.pagination.lastPage){this.setPage(this.pagination.currentPage+1)}};e.prototype.prevPage=function(){if(this.pagination.currentPage>1){this.setPage(this.pagination.currentPage-1)}};e.prototype.setLastPage=function(){this.setPage(this.pagination.lastPage)};e.prototype.setFirstPage=function(){this.setPage(1)};e.prototype.hasPage=function(t){return this.pages.has(t)};e.prototype.getPage=function(t){var e=this;var r=this.pagination.currentPage;if(this.hasPage(r)){return this.selectPage(r)}else{this.setLoading(true);return xt(t()).pipe(qt((function(t){r=t.currentPage;Ge((function(){e.setLoading(false);e.update(t)}));return e.selectPage(r)})))}};e.prototype.getQuery=function(){return this.query};e.prototype.refreshCurrentPage=function(){if(te(this.currentPage)===false){this.clearPage(this.currentPage);this.setPage(this.currentPage)}};e.prototype.getFrom=function(){if(this.isFirst){return 1}return(this.currentPage-1)*this.pagination.perPage+1};e.prototype.getTo=function(){if(this.isLast){return this.pagination.total}return this.currentPage*this.pagination.perPage};e.prototype.selectPage=function(t){var e=this;return this.query.selectAll({asObject:true}).pipe(Vt(1),at((function(r){var n=Object.assign({},e.pagination,{data:e.pages.get(t).ids.map((function(t){return r[t]}))});var i=e.config,o=i.range,s=i.pagesControls;if(isNaN(e.pagination.total)){if(n.lastPage===1){n.total=n.data?n.data.length:0}else{n.total=n.perPage*n.lastPage}e.pagination.total=n.total}if(o){n.from=e.getFrom();n.to=e.getTo()}if(s){n.pageControls=vr(e.pagination.total,e.pagination.perPage)}return n})))};return e}(lr);r([Jt("@Pagination - New Page"),n("design:type",Function),n("design:paramtypes",[Object]),n("design:returntype",void 0)],dr.prototype,"update",null);function vr(t,e){var r=Math.ceil(t/e);var n=[];for(var i=0;i<r;i++){n.push(i+1)}return n}var yr;(function(t){t["Update"]="UPDATE"})(yr||(yr={}));var br;(function(t){t["Update"]="UPDATE";t["AddEntities"]="ADD_ENTITIES";t["SetEntities"]="SET_ENTITIES";t["UpdateEntities"]="UPDATE_ENTITIES";t["RemoveEntities"]="REMOVE_ENTITIES";t["UpsertEntities"]="UPSERT_ENTITIES";t["UpsertManyEntities"]="UPSERT_MANY_ENTITIES"})(br||(br={}))}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(a,u)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-14885f78.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.e}],execute:function(){function n(){if(window.location==window.parent.location){return}delete window.sessionStorage;window.sessionStorage={}}function r(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){n();e();return[2]}))}))}var o=t("g",r)}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(t){"use strict";var e,i,n;return{setters:[function(t){e=t.r;i=t.a},function(t){n=t.A}],execute:function(){var r=t("stencil_route_title",function(){function t(t){e(this,t);this.titleSuffix="";this.pageTitle=""}t.prototype.updateDocumentTitle=function(){var t=this.el;if(t.ownerDocument){t.ownerDocument.title=""+this.pageTitle+(this.titleSuffix||"")}};t.prototype.componentWillLoad=function(){this.updateDocumentTitle()};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{pageTitle:["updateDocumentTitle"]}},enumerable:false,configurable:true});return t}());n.injectProps(r,["titleSuffix"])}}}));
@@ -0,0 +1 @@
1
+ import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.SmsfEngagementStep="/super-choice/smsf-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const g=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function y(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=y((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,g,y){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return g(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return y(g(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=y((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0,t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},g=function(n,e){return S.pipe(n,t.partitionMap(e))},y=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function C(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=C,t.getApplyMonoid=function(n){return{concat:C(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g,wither:y,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g,wither:y,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function C(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function E(n){this.message=n}(E.prototype=new Error).name="InvalidTokenError";var D=function(){return(D=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},T=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},P=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=D({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?T(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?P(n[u],t[u],e):t[u]);return r},O=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},R={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,O([void 0],s))):a}},I=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=R.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){I(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,R.polyfill("PerformanceObserver",{doThrow:!1}))&&(I(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},N=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),R.defaults=t?P(R.defaults,n):n,this},n.prototype.errorType=function(n){return R.errorType=n,this},n.prototype.polyfills=function(n){return R.polyfills=j(j({},R.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?P(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:B(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:P(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=P(R.defaults,u),s=R.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(R.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[R.errorType||"text"]().then((function(t){var e=new Error(t);throw e[R.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(x(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return V(n,t)})).join("&"):V(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),B=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=R.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function x(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=R.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&x(i,t,e,k(r,[u]))})),e}function V(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=N.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=N.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,smsfCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new E("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(n.split(".")[e]))}catch(n){throw new E("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.smsfCustomStepEnabled=n.smsfCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isSmsfCustomStepEnabled(){return this.state.smsfCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};var K;!function(n){n.MyOwnFund="Existing super fund",n.DefaultFund="Default super fund",n.SelfManagedFund="Self-managed super fund",n.FeaturedFunds="Featured super funds"}(K||(K={}));const Z={myOwnFundForm:{fundUsi:o,fundName:o,memberNumber:o,memberFirstName:o,memberFamilyName:o},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}},{state:nn}=m(Z);class tn{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class en{constructor(){this.eventTrackingApi=tn.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async TrackSuperSmsfEngagementStepActivationSucceeded(){return this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})}async TrackSuperSmsfEngagementStepContinued(n){return this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:n}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const rn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{K as C,en as E,F as O,w as S,Y as a,G as b,f as c,W as d,rn as e,i as f,$ as g,_ as h,u as i,J as j,z as k,nn as l,v as m,o as n,L as o,X as p,l as q,g as r,s,a as t,q as u,c as v}
@@ -0,0 +1,15 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+ function t(t,s,e,i){var n,r=arguments.length,h=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(h=(r<3?n(h):r>3?n(s,e,h):n(s,e))||h);return r>3&&h&&Object.defineProperty(s,e,h),h}function s(t,s){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,s)}function e(t){return"function"==typeof t}let i=!1;const n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function r(t){setTimeout((()=>{throw t}),0)}const h={closed:!0,next(t){},error(t){if(n.useDeprecatedSynchronousErrorHandling)throw t;r(t)},complete(){}},o=Array.isArray||(t=>t&&"number"==typeof t.length);function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map(((t,s)=>`${s+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:s,_ctorUnsubscribe:i,_unsubscribe:n,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof a)s.remove(this);else if(null!==s)for(let t=0;t<s.length;++t)s[t].remove(this);if(e(n)){i&&(this._unsubscribe=void 0);try{n.call(this)}catch(s){t=s instanceof u?l(s.errors):[s]}}if(o(r)){let s=-1,e=r.length;for(;++s<e;){const e=r[s];if(c(e))try{e.unsubscribe()}catch(s){t=t||[],s instanceof u?t=t.concat(l(s.errors)):t.push(s)}}}if(t)throw new u(t)}add(t){let s=t;if(!t)return a.EMPTY;switch(typeof t){case"function":s=new a(t);case"object":if(s===this||s.closed||"function"!=typeof s.unsubscribe)return s;if(this.closed)return s.unsubscribe(),s;if(!(s instanceof a)){const t=s;s=new a,s._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:e}=s;if(null===e)s._parentOrParents=this;else if(e instanceof a){if(e===this)return s;s._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return s;e.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[s]:i.push(s),s}remove(t){const s=this._subscriptions;if(s){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}function l(t){return t.reduce(((t,s)=>t.concat(s instanceof u?s.errors:s)),[])}a.EMPTY=function(t){return t.closed=!0,t}(new a);const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class d extends a{constructor(t,s,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=h;break;case 1:if(!t){this.destination=h;break}if("object"==typeof t){t instanceof d?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new p(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new p(this,t,s,e)}}[f](){return this}static create(t,s,e){const i=new d(t,s,e);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class p extends d{constructor(t,s,i,n){let r;super(),this._parentSubscriber=t;let o=this;e(s)?r=s:s&&(r=s.next,i=s.error,n=s.complete,s!==h&&(o=Object.create(s),e(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=n}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:s}=this;n.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable?this.__tryOrSetError(s,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:s}=this,{useDeprecatedSynchronousErrorHandling:e}=n;if(this._error)e&&s.syncErrorThrowable?(this.__tryOrSetError(s,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(s.syncErrorThrowable)e?(s.syncErrorValue=t,s.syncErrorThrown=!0):r(t),this.unsubscribe();else{if(this.unsubscribe(),e)throw t;r(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const s=()=>this._complete.call(this._context);n.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,s),this.unsubscribe()):(this.__tryOrUnsub(s),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,s){try{t.call(this._context,s)}catch(t){if(this.unsubscribe(),n.useDeprecatedSynchronousErrorHandling)throw t;r(t)}}__tryOrSetError(t,s,e){if(!n.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{s.call(this._context,e)}catch(s){return n.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(r(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const b="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(t){return t}class w{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const s=new w;return s.source=this,s.operator=t,s}subscribe(t,s,e){const{operator:i}=this,r=function(t,s,e){if(t){if(t instanceof d)return t;if(t[f])return t[f]()}return t||s||e?new d(t,s,e):new d(h)}(t,s,e);if(r.add(i?i.call(r,this.source):this.source||n.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),n.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(s){n.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=s),function(t){for(;t;){const{closed:s,destination:e,isStopped:i}=t;if(s||i)return!1;t=e&&e instanceof d?e:null}return!0}(t)?t.error(s):console.warn(s)}}forEach(t,s){return new(s=g(s))(((s,e)=>{let i;i=this.subscribe((s=>{try{t(s)}catch(t){e(t),i&&i.unsubscribe()}}),e,s)}))}_subscribe(t){const{source:s}=this;return s&&s.subscribe(t)}[b](){return this}pipe(...t){return 0===t.length?this:(0===(s=t).length?y:1===s.length?s[0]:function(t){return s.reduce(((t,s)=>s(t)),t)})(this);var s}toPromise(t){return new(t=g(t))(((t,s)=>{let e;this.subscribe((t=>e=t),(t=>s(t)),(()=>t(e)))}))}}function g(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}w.create=t=>new w(t);const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class E extends a{constructor(t,s){super(),this.subject=t,this.subscriber=s,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,s=t.observers;if(this.subject=null,!s||0===s.length||t.isStopped||t.closed)return;const e=s.indexOf(this.subscriber);-1!==e&&s.splice(e,1)}}class O extends d{constructor(t){super(t),this.destination=t}}class m extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new O(this)}lift(t){const s=new j(this,this);return s.operator=t,s}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:s}=this,e=s.length,i=s.slice();for(let s=0;s<e;s++)i[s].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:s}=this,e=s.length,i=s.slice();for(let s=0;s<e;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,s=t.length,e=t.slice();for(let t=0;t<s;t++)e[t].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),a.EMPTY):this.isStopped?(t.complete(),a.EMPTY):(this.observers.push(t),new E(this,t))}asObservable(){const t=new w;return t.source=this,t}}m.create=(t,s)=>new j(t,s);class j extends m{constructor(t,s){super(),this.destination=t,this.source=s}next(t){const{destination:s}=this;s&&s.next&&s.next(t)}error(t){const{destination:s}=this;s&&s.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:s}=this;return s?this.source.subscribe(t):a.EMPTY}}class _ extends m{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const s=super._subscribe(t);return s&&!s.closed&&t.next(this._value),s}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}class S extends a{constructor(t,s){super()}schedule(t,s=0){return this}}class x extends S{constructor(t,s){super(t,s),this.scheduler=t,this.work=s,this.pending=!1}schedule(t,s=0){if(this.closed)return this;this.state=t;const e=this.id,i=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(i,e,s)),this.pending=!0,this.delay=s,this.id=this.id||this.requestAsyncId(i,this.id,s),this}requestAsyncId(t,s,e=0){return setInterval(t.flush.bind(t,this),e)}recycleAsyncId(t,s,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return s;clearInterval(s)}execute(t,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(t,s);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,s){let e=!1,i=void 0;try{this.work(t)}catch(t){e=!0,i=!!t&&t||new Error(t)}if(e)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,s=this.scheduler,e=s.actions,i=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&e.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(s,t,null)),this.delay=null}}class A{constructor(t,s=A.now){this.SchedulerAction=t,this.now=s}schedule(t,s=0,e){return new this.SchedulerAction(this,t).schedule(e,s)}}A.now=()=>Date.now();class P extends A{constructor(t,s=A.now){super(t,(()=>P.delegate&&P.delegate!==this?P.delegate.now():s())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,s=0,e){return P.delegate&&P.delegate!==this?P.delegate.schedule(t,s,e):super.schedule(t,s,e)}flush(t){const{actions:s}=this;if(this.active)return void s.push(t);let e;this.active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=s.shift());if(this.active=!1,e){for(;t=s.shift();)t.unsubscribe();throw e}}}const I=new class extends P{}(class extends x{constructor(t,s){super(t,s),this.scheduler=t,this.work=s}schedule(t,s=0){return s>0?super.schedule(t,s):(this.delay=s,this.state=t,this.scheduler.flush(this),this)}execute(t,s){return s>0||this.closed?super.execute(t,s):this._execute(t,s)}requestAsyncId(t,s,e=0){return null!==e&&e>0||null===e&&this.delay>0?super.requestAsyncId(t,s,e):t.flush(this)}}),N=new w((t=>t.complete()));function C(t){return t?function(t){return new w((s=>t.schedule((()=>s.complete()))))}(t):N}const U=t=>s=>{for(let e=0,i=t.length;e<i&&!s.closed;e++)s.next(t[e]);s.complete()};function R(t,s){return new w((e=>{const i=new a;let n=0;return i.add(s.schedule((function(){n!==t.length?(e.next(t[n++]),e.closed||i.add(this.schedule())):e.complete()}))),i}))}function k(...t){let s=t[t.length-1];return(e=s)&&"function"==typeof e.schedule?(t.pop(),R(t,s)):new w(U(t));var e}var M;!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(M||(M={}));class F{constructor(t,s,e){this.kind=t,this.value=s,this.error=e,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,s,e){switch(this.kind){case"N":return t&&t(this.value);case"E":return s&&s(this.error);case"C":return e&&e()}}accept(t,s,e){return t&&"function"==typeof t.next?this.observe(t):this.do(t,s,e)}toObservable(){switch(this.kind){case"N":return k(this.value);case"E":return t=this.error,new w((s=>s.error(t)));case"C":return C()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new F("N",t):F.undefinedValueNotification}static createError(t){return new F("E",void 0,t)}static createComplete(){return F.completeNotification}}F.completeNotification=new F("C"),F.undefinedValueNotification=new F("N",void 0);class D extends d{constructor(t,s,e=0){super(t),this.scheduler=s,this.delay=e}static dispatch(t){const{notification:s,destination:e}=t;s.observe(e),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new $(t,this.destination)))}_next(t){this.scheduleMessage(F.createNext(t))}_error(t){this.scheduleMessage(F.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(F.createComplete()),this.unsubscribe()}}class ${constructor(t,s){this.notification=t,this.destination=s}}class K extends m{constructor(t=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,e){super(),this.scheduler=e,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=s<1?1:s,s===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const s=this._events;s.push(t),s.length>this._bufferSize&&s.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new L(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const s=this._infiniteTimeWindow,e=s?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,n=e.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=a.EMPTY:(this.observers.push(t),r=new E(this,t)),i&&t.add(t=new D(t,i)),s)for(let s=0;s<n&&!t.closed;s++)t.next(e[s]);else for(let s=0;s<n&&!t.closed;s++)t.next(e[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||I).now()}_trimBufferThenGetEvents(){const t=this._getNow(),s=this._bufferSize,e=this._windowTime,i=this._events,n=i.length;let r=0;for(;r<n&&!(t-i[r].time<e);)r++;return n>s&&(r=Math.max(r,n-s)),r>0&&i.splice(0,r),i}}class L{constructor(t,s){this.time=t,this.value=s}}const H=new P(x),W=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function V(t,s){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new Y(t,s))}}class Y{constructor(t,s){this.project=t,this.thisArg=s}call(t,s){return s.subscribe(new B(t,this.project,this.thisArg))}}class B extends d{constructor(t,s,e){super(t),this.project=s,this.count=0,this.thisArg=e||this}_next(t){let s;try{s=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(s)}}const Q="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",q=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const J=t=>{if(t&&"function"==typeof t[b])return i=t,t=>{const s=i[b]();if("function"!=typeof s.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return s.subscribe(t)};if(q(t))return U(t);if(z(t))return e=t,t=>(e.then((s=>{t.closed||(t.next(s),t.complete())}),(s=>t.error(s))).then(null,r),t);if(t&&"function"==typeof t[Q])return s=t,t=>{const e=s[Q]();for(;;){let s;try{s=e.next()}catch(s){return t.error(s),t}if(s.done){t.complete();break}if(t.next(s.value),t.closed)break}return"function"==typeof e.return&&t.add((()=>{e.return&&e.return()})),t};{const s=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${s} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var s,e,i};function G(t,s){return s?function(t,s){if(null!=t){if(function(t){return t&&"function"==typeof t[b]}(t))return function(t,s){return new w((e=>{const i=new a;return i.add(s.schedule((()=>{const n=t[b]();i.add(n.subscribe({next(t){i.add(s.schedule((()=>e.next(t))))},error(t){i.add(s.schedule((()=>e.error(t))))},complete(){i.add(s.schedule((()=>e.complete())))}}))}))),i}))}(t,s);if(z(t))return function(t,s){return new w((e=>{const i=new a;return i.add(s.schedule((()=>t.then((t=>{i.add(s.schedule((()=>{e.next(t),i.add(s.schedule((()=>e.complete())))})))}),(t=>{i.add(s.schedule((()=>e.error(t))))}))))),i}))}(t,s);if(q(t))return R(t,s);if(function(t){return t&&"function"==typeof t[Q]}(t)||"string"==typeof t)return function(t,s){if(!t)throw new Error("Iterable cannot be null");return new w((e=>{const i=new a;let n;return i.add((()=>{n&&"function"==typeof n.return&&n.return()})),i.add(s.schedule((()=>{n=t[Q](),i.add(s.schedule((function(){if(e.closed)return;let t,s;try{const e=n.next();t=e.value,s=e.done}catch(t){return void e.error(t)}s?e.complete():(e.next(t),this.schedule())})))}))),i}))}(t,s)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,s):t instanceof w?t:new w(J(t))}class X extends d{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Z extends d{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function tt(t,s){if(!s.closed)return t instanceof w?t.subscribe(s):J(t)(s)}function st(t,s){return function(e){return e.lift(new et(t,s))}}class et{constructor(t,s){this.predicate=t,this.thisArg=s}call(t,s){return s.subscribe(new it(t,this.predicate,this.thisArg))}}class it extends d{constructor(t,s,e){super(t),this.predicate=s,this.thisArg=e,this.count=0}_next(t){let s;try{s=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}s&&this.destination.next(t)}}class nt{constructor(t,s){this.delay=t,this.scheduler=s}call(t,s){return s.subscribe(new rt(t,this.delay,this.scheduler))}}class rt extends d{constructor(t,s,e){super(t),this.delay=s,this.scheduler=e,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const s=t.source,e=s.queue,i=t.scheduler,n=t.destination;for(;e.length>0&&e[0].time-i.now()<=0;)e.shift().notification.observe(n);if(e.length>0){const s=Math.max(0,e[0].time-i.now());this.schedule(t,s)}else this.unsubscribe(),s.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(rt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const s=this.scheduler,e=new ht(s.now()+this.delay,t);this.queue.push(e),!1===this.active&&this._schedule(s)}_next(t){this.scheduleNotification(F.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(F.createComplete()),this.unsubscribe()}}class ht{constructor(t,s){this.time=t,this.notification=s}}function ot(t,s){return e=>e.lift(new ct(t,s))}class ct{constructor(t,s){this.compare=t,this.keySelector=s}call(t,s){return s.subscribe(new ut(t,this.compare,this.keySelector))}}class ut extends d{constructor(t,s,e){super(t),this.keySelector=e,this.hasKey=!1,"function"==typeof s&&(this.compare=s)}compare(t,s){return t===s}_next(t){let s;try{const{keySelector:e}=this;s=e?e(t):t}catch(t){return this.destination.error(t)}let e=!1;if(this.hasKey)try{const{compare:t}=this;e=t(this.key,s)}catch(t){return this.destination.error(t)}else this.hasKey=!0;e||(this.key=s,this.destination.next(t))}}class at{constructor(t){if(this.total=t,this.total<0)throw new W}call(t,s){return s.subscribe(new lt(t,this.total))}}class lt extends d{constructor(t,s){super(t),this.total=s,this.count=0}_next(t){const s=this.total,e=++this.count;e<=s&&(this.destination.next(t),e===s&&(this.destination.complete(),this.unsubscribe()))}}function ft(t,s){return"function"==typeof s?e=>e.pipe(ft(((e,i)=>G(t(e,i)).pipe(V(((t,n)=>s(e,t,i,n))))))):s=>s.lift(new dt(t))}class dt{constructor(t){this.project=t}call(t,s){return s.subscribe(new pt(t,this.project))}}class pt extends Z{constructor(t,s){super(t),this.project=s,this.index=0}_next(t){let s;const e=this.index++;try{s=this.project(t,e)}catch(t){return void this.destination.error(t)}this._innerSub(s)}_innerSub(t){const s=this.innerSubscription;s&&s.unsubscribe();const e=new X(this),i=this.destination;i.add(e),this.innerSubscription=tt(t,e),this.innerSubscription!==e&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const bt={type:null,entityIds:null,skip:!1};let yt=!1;function wt(t,s){gt(t,s),yt=!0}function gt(t,s){!1===yt&&(bt.type=t,bt.entityIds=s)}function vt(t,s){return t.hasOwnProperty(s)}function Et(t){return null==t}function Ot(t){return Et(t)?[]:Array.isArray(t)?t:[t]}var mt;!function(t){t.Set="Set",t.Add="Add",t.Update="Update",t.Remove="Remove"}(mt||(mt={}));const jt="undefined"!=typeof window;let _t=!0;function St(){_t=!1,jt&&(delete window.$$stores,delete window.$$queries)}function xt(){return _t}function Tt(t){const s=typeof t;return null!=t&&("object"==s||"function"==s)}function At(t){return Array.isArray(t)}function Pt(t){return!1===Et(t)}function It(t){return!!At(t)&&0===t.length}function Nt(t){return"function"==typeof t}function Ct(t){return void 0===t}function Ut(t){return t.hasOwnProperty("active")}function Rt(t){return At(t)}function kt({active:t,ids:s,entities:e}){return Rt(t)?function(t,s){const e=t.filter((t=>s.indexOf(t)>-1));return e.length===t.length?t:e}(t,s):!1===vt(e,t)?null:t}function Mt(t,s){let e={};for(const i of Object.keys(t))e[i]=s(t[i]);return e}let Ft={resettable:!1,ttl:null,producerFn:void 0};function Dt(){return Ft}function $t(t){Object.freeze(t);const s="function"==typeof t,e=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach((function(i){!e.call(t,i)||s&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||$t(t[i])})),t}const Kt=new m,Lt=new K(50,5e3),Ht=new m;function Wt(t){return null!=t&&""+t!="false"}function Vt(t){return Wt(t)&&"Object"===t.constructor.name}function Yt(t){return function(s){s.akitaConfig={idKey:"id"};for(let e=0,i=Object.keys(t);e<i.length;e++){const n=i[e];"name"===n?s.akitaConfig.storeName=t[n]:s.akitaConfig[n]=t[n]}}}const Bt={},Qt={};jt&&(window.$$stores=Bt,window.$$queries=Qt);const qt=new m,zt=new _(!1),Jt={activeTransactions:0,batchTransaction:null};function Gt(){return Jt.activeTransactions>0}function Xt(t,s){Gt()||(Jt.batchTransaction=new m),Jt.activeTransactions++,zt.next(!0);try{return t.apply(s)}finally{wt("@Transaction"),0==--Jt.activeTransactions&&(Jt.batchTransaction.next(!0),Jt.batchTransaction.complete(),zt.next(!1),qt.next(!0))}}function Zt(){return function(t,s,e){const i=e.value;return e.value=function(...t){return Xt((()=>i.apply(this,t)),this)},e}}class ts{constructor(t,s={}){this.options=s,this.inTransaction=!1,this.cache={active:new _(!1),ttl:null},this.onInit(t)}setLoading(t=!1){t!==this._value().loading&&(xt()&&gt("Set Loading"),this._setState((s=>Object.assign({},s,{loading:t}))))}setHasCache(t,s={restartTTL:!1}){if(t!==this.cache.active.value&&this.cache.active.next(t),s.restartTTL){const t=this.getCacheTTL();t&&(null!==this.cache.ttl&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout((()=>this.setHasCache(!1)),t))}}getValue(){return this.storeValue}setError(t){t!==this._value().error&&(xt()&&gt("Set Error"),this._setState((s=>Object.assign({},s,{error:t}))))}_select(t){return this.store.asObservable().pipe(V((s=>t(s.state))),ot())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor.akitaConfig||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||$t}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||Ft.producerFn}get resettable(){return Pt(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(t,s=!0){if(Nt(t)){const s=t(this._value());this.storeValue=_t?this.deepFreeze(s):s}else this.storeValue=t;if(!this.store)return this.store=new _({state:this.storeValue}),void(xt()&&this.store.subscribe((({action:t})=>{t&&function(t,s){Ht.next({storeName:t,action:s})}(this.storeName,t)})));Gt()?this.handleTransaction():this.dispatch(this.storeValue,s)}reset(){this.isResettable()?(xt()&&gt("Reset"),this._setState((()=>Object.assign({},this._initialState))),this.setHasCache(!1)):xt()&&console.warn("You need to enable the reset functionality")}update(t){let s;xt()&&gt("Update");const e=this._value();s=Nt(t)?Nt(this._producerFn)?this._producerFn(e,t):t(e):t;const i=this.akitaPreUpdate(e,Object.assign({},e,s)),n=Vt(e)?i:new e.constructor(i);this._setState(n)}updateStoreConfig(t){this.options=Object.assign({},this.options,t)}akitaPreUpdate(t,s){return s}ngOnDestroy(){this.destroy()}destroy(){jt&&window.hmrEnabled||this!==Bt[this.storeName]||(delete Bt[this.storeName],Kt.next(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(t){Bt[this.storeName]=this,this._setState((()=>t)),Lt.next(this.storeName),this.isResettable()&&(this._initialState=t),xt()&&(this.storeName||console.error("@StoreConfig({ name }) is missing in "+this.constructor.name))}dispatch(t,s=!0){let e=void 0;s&&(e=bt,yt=!1),this.store.next({state:t,action:e})}watchTransaction(){(Jt.batchTransaction?Jt.batchTransaction.asObservable():k(!0)).subscribe((()=>{this.inTransaction=!1,this.dispatch(this._value())}))}isResettable(){return!1!==this.resettable&&(this.resettable||Dt().resettable)}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||Dt().ttl}}var ss,es;class is extends ts{constructor(t={},s={}){super(Object.assign({},{entities:{},ids:[],loading:!0,error:null},t),s),this.options=s,this.entityActions=new m,this.entityIdChanges=new m}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||"id"}set(t,s={}){if(Et(t))return;xt()&&gt("Set Entity");const e=this.akitaPreAddEntity===is.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState((i=>{const n=function({state:t,entities:s,idKey:e,preAddEntity:i,isNativePreAdd:n}){let r,h;if(At(s)){const t=function(t,s,e){const i={entities:{},ids:[]};for(const n of t){const t=e(n);i.entities[t[s]]=t,i.ids.push(t[s])}return i}(s,e,i);r=t.entities,h=t.ids}else!function(t){return t.entities&&t.ids}(s)?(r=n?s:Mt(s,i),h=Object.keys(r).map((t=>isNaN(t)?t:Number(t)))):(r=n?s.entities:Mt(s.entities,i),h=s.ids);const o=Object.assign({},t,{entities:r,ids:h,loading:!1});return Ut(t)&&(o.active=kt(o)),o}({state:i,entities:t,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity,isNativePreAdd:e});return!1===Ct(s.activeId)&&(n.active=s.activeId),n})),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:mt.Set,ids:this.ids})}add(t,s={loading:!1}){const e=Ot(t);if(It(e))return;const i=function({state:t,entities:s,idKey:e,options:i={},preAddEntity:n}){let r={},h=[],o=!1;for(const c of s)if(!1===vt(t.entities,c[e])){const t=n(c),s=t[e];r[s]=t,i.prepend?h.unshift(s):h.push(s),o=!0}return o?{newState:Object.assign({},t,{entities:Object.assign({},t.entities,r),ids:i.prepend?[...h,...t.ids]:[...t.ids,...h]}),newIds:h}:null}({state:this._value(),preAddEntity:this.akitaPreAddEntity,entities:e,idKey:this.idKey,options:s});i&&(xt()&&gt("Add Entity"),i.newState.loading=s.loading,this._setState((()=>i.newState)),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:mt.Add,ids:i.newIds}))}update(t,s){if(Ct(s))return void super.update(t);let e,i=[];i=Nt(t)?this.ids.filter((s=>t(this.entities[s]))):Et(t)?this.ids:Ot(t),It(i)||(xt()&&gt("Update Entity",i),this._setState((t=>function({state:t,ids:s,idKey:e,newStateOrFn:i,preUpdateEntity:n,producerFn:r,onEntityIdChanges:h}){const o={};let c,u=!1;for(const h of s){if(!1===vt(t.entities,h))continue;const s=t.entities[h];let a;a=Nt(i)?Nt(r)?r(s,i):i(s):i;const l=a.hasOwnProperty(e)&&a[e]!==s[e];let f;c=h,l&&(u=!0,c=a[e]);const d=Object.assign({},s,a);f=Vt(s)?d:Vt(a)?new s.constructor(d):new a.constructor(d),o[c]=n(s,f)}let a=t.ids,l=t.entities;if(u){const[e]=s,i=e;l=function(t,s){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&s.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)s.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(e[i[n]]=t[i[n]])}return e}(t.entities,["symbol"==typeof i?i:i+""]),a=t.ids.map((t=>t===e?c:t)),h(e,c)}return Object.assign({},t,{entities:Object.assign({},l,o),ids:a})}({idKey:this.idKey,ids:i,preUpdateEntity:this.akitaPreUpdateEntity,state:t,newStateOrFn:s,producerFn:this._producerFn,onEntityIdChanges:(t,s)=>{e={oldId:t,newId:s},this.entityIdChanges.next(Object.assign({},e,{pending:!0}))}}))),e&&this.entityIdChanges.next(Object.assign({},e,{pending:!1})),this.entityActions.next({type:mt.Update,ids:i}))}upsert(t,s,e,i={}){const n=Ot(t),r=t=>s=>vt(this.entities,s)===t,h=Nt(e)?i.baseClass:e?e.baseClass:void 0,o=Nt(h),c=n.filter(r(!0)),u=n.filter(r(!1)).map((t=>{const i="function"==typeof s?s({}):s,n=Nt(e)?e(t,i):i,r=Object.assign({},n,{[this.idKey]:t});return o?new h(r):r}));this.update(c,s),this.add(u),xt()&&wt("Upsert Entity")}upsertMany(t,s={}){const e=[],i=[],n={};for(const r of t){const t=this.akitaPreCheckEntity(r),h=t[this.idKey];if(vt(this.entities,h)){const e=this._value().entities[h],r=Object.assign({},this._value().entities[h],t),o=s.baseClass?new s.baseClass(r):r,c=this.akitaPreUpdateEntity(e,o),u=c[this.idKey];n[u]=c,i.push(u)}else{const i=s.baseClass?new s.baseClass(t):t,r=this.akitaPreAddEntity(i),h=r[this.idKey];e.push(h),n[h]=r}}xt()&&wt("Upsert Many"),this._setState((t=>Object.assign({},t,{ids:e.length?[...t.ids,...e]:t.ids,entities:Object.assign({},t.entities,n),loading:!!s.loading}))),i.length&&this.entityActions.next({type:mt.Update,ids:i}),e.length&&this.entityActions.next({type:mt.Add,ids:e}),e.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(t,s){const e=Ot(t);if(It(e))return;let i={};for(const t of e)s[this.idKey]=t,i[t]=s;xt()&&gt("Replace Entity",t),this._setState((t=>Object.assign({},t,{entities:Object.assign({},t.entities,i)})))}move(t,s){const e=this.ids.slice();e.splice(s<0?e.length+s:s,0,e.splice(t,1)[0]),xt()&&gt("Move Entity"),this._setState((t=>Object.assign({},t,{entities:Object.assign({},t.entities),ids:e})))}remove(t){if(It(this.ids))return;const s=Pt(t);let e=[];e=Nt(t)?this.ids.filter((s=>t(this.entities[s]))):s?Ot(t):this.ids,It(e)||(xt()&&gt("Remove Entity",e),this._setState((t=>function({state:t,ids:s}){if(Et(s))return function(t){return Object.assign({},t,{entities:{},ids:[],active:Rt(t.active)?[]:null})}(t);const e=t.entities;let i={};for(const n of t.ids)!1===s.includes(n)&&(i[n]=e[n]);const n=Object.assign({},t,{entities:i,ids:t.ids.filter((t=>!1===s.includes(t)))});return Ut(t)&&(n.active=kt(n)),n}({state:t,ids:e}))),s||this.setHasCache(!1),this.handleUIRemove(e),this.entityActions.next({type:mt.Remove,ids:e}))}updateActive(t){const s=Ot(this.active);xt()&&gt("Update Active",s),this.update(s,t)}setActive(t){const s=function(t,s,e){let i;if(At(t))i=t;else if(Tt(t)){if(Et(e))return;t=Object.assign({wrap:!0},t);const n=s.indexOf(e);if(t.prev){const e=0===n;if(e&&!t.wrap)return;i=e?s[s.length-1]:s[n-1]}else if(t.next){const e=s.length===n+1;if(e&&!t.wrap)return;i=e?s[0]:s[n+1]}}else{if(t===e)return;i=t}return i}(t,this.ids,this.active);void 0!==s&&(xt()&&gt("Set Active",s),this._setActive(s))}addActive(t){const s=Ot(t);It(s)||s.every((t=>this.active.indexOf(t)>-1))||(xt()&&gt("Add Active",t),this._setState((t=>{const e=Array.from(new Set([...t.active,...s]));return Object.assign({},t,{active:e})})))}removeActive(t){const s=Ot(t);It(s)||s.some((t=>this.active.indexOf(t)>-1))&&(xt()&&gt("Remove Active",t),this._setState((t=>Object.assign({},t,{active:Array.isArray(t.active)?t.active.filter((t=>-1===s.indexOf(t))):null}))))}toggleActive(t){const s=Ot(t),e=t=>s=>this.active.includes(s)===t,i=s.filter(e(!0)),n=s.filter(e(!1));this.removeActive(i),this.addActive(n),xt()&&wt("Toggle Active")}createUIStore(t={},s={}){return this.ui=new ns(t,Object.assign({},{name:"UI/"+this.storeName,idKey:this.idKey},s)),this.ui}destroy(){super.destroy(),this.ui instanceof is&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(t,s){return s}akitaPreAddEntity(t){return t}akitaPreCheckEntity(t){return t}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(t){this._setState((s=>Object.assign({},s,{active:t})))}handleUICreation(t=!1){const s=this.ids,e=Nt(this.ui._akitaCreateEntityFn);let i;const n=t=>{const s=this.entities[t],i=e?this.ui._akitaCreateEntityFn(s):this.ui._akitaCreateEntityFn;return Object.assign({[this.idKey]:s[this.idKey]},i)};i=t?this.ids.filter((t=>Ct(this.ui.entities[t]))).map(n):s.map(n),t?this.ui.add(i):this.ui.set(i)}hasInitialUIState(){return this.hasUIStore()&&!1===Ct(this.ui._akitaCreateEntityFn)}handleUIRemove(t){this.hasUIStore()&&this.ui.remove(t)}hasUIStore(){return this.ui instanceof ns}}t([Zt(),s("design:type",Function),s("design:paramtypes",[Object,Object,Object,Object]),s("design:returntype",void 0)],is.prototype,"upsert",null),t([Zt(),s("design:type",Function),s("design:paramtypes",["function"==typeof(ss="undefined"!=typeof T&&T)?ss:Object]),s("design:returntype",void 0)],is.prototype,"toggleActive",null);class ns extends is{constructor(t={},s={}){super(t,s)}setInitialEntityState(t){this._akitaCreateEntityFn=t}}!function(t){t.ASC="asc",t.DESC="desc"}(es||(es={}));class rs{constructor(t){this.store=t,this.__store__=t,xt()&&(Qt[t.storeName]=this)}select(t){let s;if(Nt(t))s=t;else if("string"==typeof t)s=s=>s[t];else{if(Array.isArray(t))return this.store._select((t=>t)).pipe(ot((e=t,function(t,s){const i=Nt(e[0]);return!1===e.some((e=>i?e(t)!==e(s):t[e]!==s[e]))})),V((s=>Nt(t[0])?t.map((t=>t(s))):t.reduce(((t,e)=>(t[e]=s[e],t)),{}))));s=t=>t}var e;return this.store._select(s)}selectLoading(){return this.select((t=>t.loading))}selectError(){return this.select((t=>t.error))}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor.akitaQueryConfig}}const hs=t=>t.pipe(st((t=>null!=t)));function os(t,s){return 1===s.split(".").length?t:s.split(".").slice(1).join(".").split(".").reduce(((t,s)=>t&&t[s]),t)}new K(1);const cs={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0};var us,as;t([function(t,s,e){const i=e.value;return e.value=function(...t){return wt("@Pagination - New Page",void 0),i.apply(this,t)},e},s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],class extends class{constructor(t,s){this.query=t,s&&s.resetFn&&Dt().resettable&&this.onReset(s.resetFn)}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(t){return Wt(t)}selectSource(t,s){return this.isEntityBased(t)?this.getQuery().selectEntity(t).pipe(hs):s?this.getQuery().select((t=>os(t,this.withStoreName(s)))):this.getQuery().select()}getSource(t,s){if(this.isEntityBased(t))return this.getQuery().getEntity(t);const e=this.getQuery().getValue();return s?os(e,this.withStoreName(s)):e}withStoreName(t){return`${this.storeName}.${t}`}get storeName(){return this.getStore().storeName}updateStore(t,s,e){if(this.isEntityBased(s))this.getStore().update(s,t);else{if(e)return void this.getStore()._setState((s=>function(t,s,e){const i=s.split(".");if(1===i.length)return Object.assign({},t,e);t=Object.assign({},t);const n=i.length-2;return s.split(".").slice(1).reduce(((t,s,i)=>i!==n?(t[s]=Object.assign({},t[s]),t&&t[s]):(t[s]=Array.isArray(t[s])||!Tt(t[s])?e:Object.assign({},t[s],e),t&&t[s])),t),t}(s,this.withStoreName(e),t)));this.getStore()._setState((s=>Object.assign({},s,t)))}}onReset(t){const s=this.getStore().reset;this.getStore().reset=(...e)=>{setTimeout((()=>{s.apply(this.getStore(),e),t()}))}}}{constructor(t,s={}){super(t,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=t,this.config=s,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe(function(t,s=H){var e;const i=(e=t)instanceof Date&&!isNaN(+e)?+t-s.now():Math.abs(t);return t=>t.lift(new nt(i,s))}(0)),this.config=Object.assign(cs,s);const{startWith:e,cacheTimeout:i}=this.config;var n;this.page=new _(e),(n=i)&&(n instanceof w||"function"==typeof n.lift&&"function"==typeof n.subscribe)&&(this.clearCacheSubscription=i.subscribe((()=>this.clearCache())))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return 1===this.currentPage}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(t=!0){this.getStore().setLoading(t)}update(t){this.pagination=t,this.addPage(t.data)}addPage(t){this.pages.set(this.currentPage,{ids:t.map((t=>t[this.getStore().idKey]))}),this.getStore().upsertMany(t)}clearCache(t={}){this.initial||(wt("@Pagination - Clear Cache"),!1!==t.clearStore&&(this.config.clearStoreWithCache||t.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(t){this.pages.delete(t)}destroy({clearCache:t,currentPage:s}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),t&&this.clearCache(),Ct(s)||this.setPage(s),this.initial=!0}isPageActive(t){return this.currentPage===t}setPage(t){t===this.currentPage&&this.hasPage(t)||this.page.next(this.pagination.currentPage=t)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(t){return this.pages.has(t)}getPage(t){let s=this.pagination.currentPage;return this.hasPage(s)?this.selectPage(s):(this.setLoading(!0),G(t()).pipe(ft((t=>(s=t.currentPage,Xt((()=>{this.setLoading(!1),this.update(t)})),this.selectPage(s))))))}getQuery(){return this.query}refreshCurrentPage(){!1===Et(this.currentPage)&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(t){return this.query.selectAll({asObject:!0}).pipe((1,t=>t.lift(new at(1))),V((s=>{let e=Object.assign({},this.pagination,{data:this.pages.get(t).ids.map((t=>s[t]))});const{range:i,pagesControls:n}=this.config;return isNaN(this.pagination.total)&&(e.total=1===e.lastPage?e.data?e.data.length:0:e.perPage*e.lastPage,this.pagination.total=e.total),i&&(e.from=this.getFrom(),e.to=this.getTo()),n&&(e.pageControls=function(t,s){const e=Math.ceil(t/s);let i=[];for(let t=0;t<e;t++)i.push(t+1);return i}(this.pagination.total,this.pagination.perPage)),e})))}}.prototype,"update",null),function(t){t.Update="UPDATE"}(us||(us={})),function(t){t.Update="UPDATE",t.AddEntities="ADD_ENTITIES",t.SetEntities="SET_ENTITIES",t.UpdateEntities="UPDATE_ENTITIES",t.RemoveEntities="REMOVE_ENTITIES",t.UpsertEntities="UPSERT_ENTITIES",t.UpsertManyEntities="UPSERT_MANY_ENTITIES"}(as||(as={}));export{w as O,rs as Q,Z as S,X as a,o as b,e as c,H as d,St as e,G as f,d as g,ot as h,tt as i,st as j,Yt as k,ts as l,V as m}
@@ -0,0 +1 @@
1
+ System.register(["./p-71ca4cf8.system.js"],(function(t){"use strict";var n,e;return{setters:[function(t){n=t.r;e=t.h}],execute:function(){var o=t("stencil_async_content",function(){function t(t){n(this,t);this.content=""}t.prototype.componentWillLoad=function(){if(this.documentLocation!=null){return this.fetchNewContent(this.documentLocation)}};t.prototype.fetchNewContent=function(t){var n=this;return fetch(t).then((function(t){return t.text()})).then((function(t){n.content=t}))};t.prototype.render=function(){return e("div",{innerHTML:this.content})};Object.defineProperty(t,"watchers",{get:function(){return{documentLocation:["fetchNewContent"]}},enumerable:false,configurable:true});return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as s,a as t}from"./p-db0bded8.js";import{A as e}from"./p-fdadb647.js";const i=class{constructor(t){s(this,t),this.when=!0,this.message=""}enable(s){this.unblock&&this.unblock(),this.history&&(this.unblock=this.history.block(s))}disable(){this.unblock&&(this.unblock(),this.unblock=void 0)}componentWillLoad(){this.when&&this.enable(this.message)}updateMessage(s,t){this.when?this.when&&t===s||this.enable(this.message):this.disable()}componentDidUnload(){this.disable()}render(){return null}get el(){return t(this)}static get watchers(){return{message:["updateMessage"],when:["updateMessage"]}}};e.injectProps(i,["history"]);export{i as stencil_router_prompt}
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./p-db0bded8.js";const n=class{constructor(e){t(this,e),this.content=""}componentWillLoad(){if(null!=this.documentLocation)return this.fetchNewContent(this.documentLocation)}fetchNewContent(t){return fetch(t).then((t=>t.text())).then((t=>{this.content=t}))}render(){return e("div",{innerHTML:this.content})}static get watchers(){return{documentLocation:["fetchNewContent"]}}};export{n as stencil_async_content}
@@ -0,0 +1 @@
1
+ System.register([],(function(){"use strict";return{execute:function(){}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-71ca4cf8.system.js"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.r;n=t.a}],execute:function(){var r=t("context_consumer",function(){function t(t){e(this,t);this.context={};this.renderer=function(){return null}}t.prototype.connectedCallback=function(){if(this.subscribe!=null){this.unsubscribe=this.subscribe(this.el,"context")}};t.prototype.disconnectedCallback=function(){if(this.unsubscribe!=null){this.unsubscribe()}};t.prototype.render=function(){return this.renderer(Object.assign({},this.context))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}())}}}));
@@ -0,0 +1 @@
1
+ import{r as t,a as s}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";const i=class{constructor(s){t(this,s)}componentWillLoad(){if(this.history&&this.root&&this.url)return this.history.replace((s=this.root,"/"==(t=this.url).charAt(0)&&"/"==s.charAt(s.length-1)?s.slice(0,s.length-1)+t:s+t));var t,s}get el(){return s(this)}};r.injectProps(i,["history","root"]);export{i as stencil_router_redirect}