@sparkle-learning/core 0.0.55 → 0.0.57

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 (1097) hide show
  1. package/dist/sparkle-core/PrivateRoute-a12e7ee5.js +37 -0
  2. package/dist/sparkle-core/account.service-e711795d.js +63 -0
  3. package/dist/sparkle-core/active-router-af86c9b4.js +73 -0
  4. package/dist/sparkle-core/animation-676a644d.js +984 -0
  5. package/dist/sparkle-core/app-globals-9ffa9ec3.js +10 -0
  6. package/dist/sparkle-core/appdata.service-703dff70.js +69 -0
  7. package/dist/sparkle-core/assets/user.png +0 -0
  8. package/dist/sparkle-core/assets.service-6508aae6.js +71 -0
  9. package/dist/sparkle-core/assignment.service-e42e9368.js +17 -0
  10. package/dist/sparkle-core/button-active-d68c5eb7.js +67 -0
  11. package/dist/sparkle-core/compass-svg.entry.js +128 -0
  12. package/dist/sparkle-core/context-consumer.entry.js +25 -0
  13. package/dist/sparkle-core/course-select.entry.js +26 -0
  14. package/dist/sparkle-core/css-shim-04165e59.js +4 -0
  15. package/dist/sparkle-core/dom-26e7cb2c.js +73 -0
  16. package/dist/sparkle-core/dom-utils-8e73e88b.js +55 -0
  17. package/dist/sparkle-core/facilitator.service-00a88935.js +79 -0
  18. package/dist/sparkle-core/facilitator.store-01be0386.js +18 -0
  19. package/dist/sparkle-core/feed.service-d495f3e1.js +53 -0
  20. package/dist/sparkle-core/framework-delegate-d3fa493f.js +107 -0
  21. package/dist/sparkle-core/haptic-a9e94599.js +124 -0
  22. package/dist/sparkle-core/header-mobile-collapse.entry.js +86 -0
  23. package/dist/sparkle-core/helpers-f11f0674.js +406 -0
  24. package/dist/sparkle-core/icons-758d1417.js +41 -0
  25. package/dist/sparkle-core/index-05b398c2.js +34 -0
  26. package/dist/sparkle-core/index-0af0deac.js +312 -0
  27. package/dist/sparkle-core/index-0df264ee.js +4518 -0
  28. package/dist/sparkle-core/index-183cda39.js +223 -0
  29. package/dist/sparkle-core/index-18a69883.js +1336 -0
  30. package/dist/sparkle-core/index-1d7a6fa0.js +269 -0
  31. package/dist/sparkle-core/index-1dec9544.js +3064 -0
  32. package/dist/sparkle-core/index-81dab78f.js +85 -0
  33. package/dist/sparkle-core/index-9b5bcea1.js +22 -0
  34. package/dist/sparkle-core/index-bb469fe3.js +128 -0
  35. package/dist/sparkle-core/index-d2990a48.js +184 -0
  36. package/dist/sparkle-core/index-dd414b33.js +653 -0
  37. package/dist/sparkle-core/index-faeec85a.js +8 -0
  38. package/dist/sparkle-core/index.es-1f6eedc5.js +11066 -0
  39. package/dist/sparkle-core/index.esm.js +19 -1
  40. package/dist/sparkle-core/input-shims-0b2f5522.js +418 -0
  41. package/dist/sparkle-core/ion-accordion-group.entry.js +201 -0
  42. package/dist/sparkle-core/ion-accordion.entry.js +332 -0
  43. package/dist/sparkle-core/ion-action-sheet.entry.js +263 -0
  44. package/dist/sparkle-core/ion-alert.entry.js +448 -0
  45. package/dist/sparkle-core/ion-app.entry.js +75 -0
  46. package/dist/sparkle-core/ion-avatar.entry.js +21 -0
  47. package/dist/sparkle-core/ion-back-button.entry.js +90 -0
  48. package/dist/sparkle-core/ion-backdrop.entry.js +63 -0
  49. package/dist/sparkle-core/ion-badge.entry.js +25 -0
  50. package/dist/sparkle-core/ion-breadcrumb.entry.js +91 -0
  51. package/dist/sparkle-core/ion-breadcrumbs.entry.js +129 -0
  52. package/dist/sparkle-core/ion-button.entry.js +125 -0
  53. package/dist/sparkle-core/ion-buttons.entry.js +38 -0
  54. package/dist/sparkle-core/ion-card-content.entry.js +26 -0
  55. package/dist/sparkle-core/ion-card-header.entry.js +33 -0
  56. package/dist/sparkle-core/ion-card-subtitle.entry.js +26 -0
  57. package/dist/sparkle-core/ion-card-title.entry.js +26 -0
  58. package/dist/sparkle-core/ion-card.entry.js +64 -0
  59. package/dist/sparkle-core/ion-checkbox.entry.js +109 -0
  60. package/dist/sparkle-core/ion-chip.entry.js +36 -0
  61. package/dist/sparkle-core/ion-col.entry.js +121 -0
  62. package/dist/sparkle-core/ion-content.entry.js +319 -0
  63. package/dist/sparkle-core/ion-datetime-button.entry.js +308 -0
  64. package/dist/sparkle-core/ion-datetime.entry.js +1619 -0
  65. package/dist/sparkle-core/ion-fab-button.entry.js +104 -0
  66. package/dist/sparkle-core/ion-fab-list.entry.js +41 -0
  67. package/dist/sparkle-core/ion-fab.entry.js +72 -0
  68. package/dist/sparkle-core/ion-footer.entry.js +116 -0
  69. package/dist/sparkle-core/ion-grid.entry.js +24 -0
  70. package/dist/sparkle-core/ion-header.entry.js +341 -0
  71. package/dist/sparkle-core/ion-icon.entry.js +200 -0
  72. package/dist/sparkle-core/ion-img.entry.js +97 -0
  73. package/dist/sparkle-core/ion-infinite-scroll-content.entry.js +33 -0
  74. package/dist/sparkle-core/ion-infinite-scroll.entry.js +202 -0
  75. package/dist/sparkle-core/ion-input.entry.js +293 -0
  76. package/dist/sparkle-core/ion-item-divider.entry.js +36 -0
  77. package/dist/sparkle-core/ion-item-group.entry.js +27 -0
  78. package/dist/sparkle-core/ion-item-option.entry.js +56 -0
  79. package/dist/sparkle-core/ion-item-options.entry.js +43 -0
  80. package/dist/sparkle-core/ion-item-sliding.entry.js +394 -0
  81. package/dist/sparkle-core/ion-item.entry.js +267 -0
  82. package/dist/sparkle-core/ion-label.entry.js +77 -0
  83. package/dist/sparkle-core/ion-list-header.entry.js +27 -0
  84. package/dist/sparkle-core/ion-list.entry.js +48 -0
  85. package/dist/sparkle-core/ion-loading.entry.js +211 -0
  86. package/dist/sparkle-core/ion-menu-button.entry.js +72 -0
  87. package/dist/sparkle-core/ion-menu-toggle.entry.js +43 -0
  88. package/dist/sparkle-core/ion-menu.entry.js +575 -0
  89. package/dist/sparkle-core/ion-modal.entry.js +1706 -0
  90. package/dist/sparkle-core/ion-nav-link.entry.js +43 -0
  91. package/dist/sparkle-core/ion-nav.entry.js +872 -0
  92. package/dist/sparkle-core/ion-note.entry.js +25 -0
  93. package/dist/sparkle-core/ion-picker-column-internal.entry.js +363 -0
  94. package/dist/sparkle-core/ion-picker-column.entry.js +327 -0
  95. package/dist/sparkle-core/ion-picker-internal.entry.js +454 -0
  96. package/dist/sparkle-core/ion-picker.entry.js +217 -0
  97. package/dist/sparkle-core/ion-popover.entry.js +1362 -0
  98. package/dist/sparkle-core/ion-progress-bar.entry.js +70 -0
  99. package/dist/sparkle-core/ion-radio-group.entry.js +121 -0
  100. package/dist/sparkle-core/ion-radio.entry.js +111 -0
  101. package/dist/sparkle-core/ion-range.entry.js +511 -0
  102. package/dist/sparkle-core/ion-refresher-content.entry.js +31 -0
  103. package/dist/sparkle-core/ion-refresher.entry.js +798 -0
  104. package/dist/sparkle-core/ion-reorder-group.entry.js +277 -0
  105. package/dist/sparkle-core/ion-reorder.entry.js +34 -0
  106. package/dist/sparkle-core/ion-ripple-effect.entry.js +89 -0
  107. package/dist/sparkle-core/ion-route-redirect.entry.js +20 -0
  108. package/dist/sparkle-core/ion-route.entry.js +45 -0
  109. package/dist/sparkle-core/ion-router-link.entry.js +34 -0
  110. package/dist/sparkle-core/ion-router-outlet.entry.js +196 -0
  111. package/dist/sparkle-core/ion-router.entry.js +827 -0
  112. package/dist/sparkle-core/ion-row.entry.js +16 -0
  113. package/dist/sparkle-core/ion-searchbar.entry.js +366 -0
  114. package/dist/sparkle-core/ion-segment-button.entry.js +98 -0
  115. package/dist/sparkle-core/ion-segment.entry.js +415 -0
  116. package/dist/sparkle-core/ion-select-option.entry.js +23 -0
  117. package/dist/sparkle-core/ion-select-popover.entry.js +96 -0
  118. package/dist/sparkle-core/ion-select.entry.js +510 -0
  119. package/dist/sparkle-core/ion-skeleton-text.entry.js +29 -0
  120. package/dist/sparkle-core/ion-slide.entry.js +21 -0
  121. package/dist/sparkle-core/ion-slides.entry.js +387 -0
  122. package/dist/sparkle-core/ion-spinner.entry.js +60 -0
  123. package/dist/sparkle-core/ion-split-pane.entry.js +156 -0
  124. package/dist/sparkle-core/ion-tab-bar.entry.js +71 -0
  125. package/dist/sparkle-core/ion-tab-button.entry.js +99 -0
  126. package/dist/sparkle-core/ion-tab.entry.js +63 -0
  127. package/dist/sparkle-core/ion-tabs.entry.js +150 -0
  128. package/dist/sparkle-core/ion-text.entry.js +20 -0
  129. package/dist/sparkle-core/ion-textarea.entry.js +244 -0
  130. package/dist/sparkle-core/ion-thumbnail.entry.js +16 -0
  131. package/dist/sparkle-core/ion-title.entry.js +48 -0
  132. package/dist/sparkle-core/ion-toast.entry.js +268 -0
  133. package/dist/sparkle-core/ion-toggle.entry.js +173 -0
  134. package/dist/sparkle-core/ion-toolbar.entry.js +70 -0
  135. package/dist/sparkle-core/ion-virtual-scroll.entry.js +551 -0
  136. package/dist/sparkle-core/ionic-global-127576f6.js +226 -0
  137. package/dist/sparkle-core/ios.transition-02531dda.js +479 -0
  138. package/dist/sparkle-core/location-utils-fea12957.js +229 -0
  139. package/dist/sparkle-core/match-path-760e1797.js +343 -0
  140. package/dist/sparkle-core/md.transition-f8765467.js +55 -0
  141. package/dist/sparkle-core/media.service-2609406e.js +36 -0
  142. package/dist/sparkle-core/menu-toggle-util-6cc13cbd.js +12 -0
  143. package/dist/sparkle-core/overlays-fd3cfa13.js +493 -0
  144. package/dist/sparkle-core/parse-60474840.js +1196 -0
  145. package/dist/sparkle-core/purify-d9093094.js +1469 -0
  146. package/dist/sparkle-core/quiz.model-1cff62e4.js +5 -0
  147. package/dist/sparkle-core/shadow-css-1257b266.js +387 -0
  148. package/dist/sparkle-core/signalR.service-2b7645c1.js +2983 -0
  149. package/dist/sparkle-core/sparkle-animation-player.entry.js +513 -0
  150. package/dist/sparkle-core/sparkle-assignment.entry.js +114 -0
  151. package/dist/sparkle-core/sparkle-button.entry.js +24 -0
  152. package/dist/sparkle-core/sparkle-card.entry.js +61 -0
  153. package/dist/sparkle-core/sparkle-cards.entry.js +15 -0
  154. package/dist/sparkle-core/sparkle-character-intro.entry.js +22 -0
  155. package/dist/sparkle-core/sparkle-code.entry.js +39 -0
  156. package/dist/sparkle-core/sparkle-compass-post.entry.js +129 -0
  157. package/dist/sparkle-core/sparkle-compass.entry.js +122 -0
  158. package/dist/sparkle-core/sparkle-core.css +2660 -1
  159. package/dist/sparkle-core/sparkle-core.esm.js +130 -1
  160. package/dist/sparkle-core/sparkle-course-root.entry.js +155 -0
  161. package/dist/sparkle-core/sparkle-discussion-questions.entry.js +122 -0
  162. package/dist/sparkle-core/sparkle-discussion-results.entry.js +189 -0
  163. package/dist/sparkle-core/sparkle-discussion.entry.js +52 -0
  164. package/dist/sparkle-core/sparkle-dropdown.entry.js +57 -0
  165. package/dist/sparkle-core/sparkle-emoji.entry.js +77 -0
  166. package/dist/sparkle-core/sparkle-export-lessons.entry.js +10081 -0
  167. package/dist/sparkle-core/sparkle-facilitator-dashboard.entry.js +93 -0
  168. package/dist/sparkle-core/sparkle-facilitator-header.entry.js +60 -0
  169. package/dist/sparkle-core/sparkle-facilitator-notes-form.entry.js +160 -0
  170. package/dist/sparkle-core/sparkle-facilitator-notes.entry.js +65 -0
  171. package/dist/sparkle-core/sparkle-facilitator-page.entry.js +198 -0
  172. package/dist/sparkle-core/sparkle-feed-post.entry.js +131 -0
  173. package/dist/sparkle-core/sparkle-feedback.entry.js +106 -0
  174. package/dist/sparkle-core/sparkle-file-upload.entry.js +57 -0
  175. package/dist/sparkle-core/sparkle-forgot-password.entry.js +80 -0
  176. package/dist/sparkle-core/sparkle-goal-form.entry.js +182 -0
  177. package/dist/sparkle-core/sparkle-goal-item.entry.js +15 -0
  178. package/dist/sparkle-core/sparkle-goal-progress.entry.js +15 -0
  179. package/dist/sparkle-core/sparkle-goals.entry.js +47 -0
  180. package/dist/sparkle-core/sparkle-gww-comment-list.entry.js +22 -0
  181. package/dist/sparkle-core/sparkle-gww-graph.entry.js +15 -0
  182. package/dist/sparkle-core/sparkle-gww-item.entry.js +80 -0
  183. package/dist/sparkle-core/sparkle-gww.entry.js +44 -0
  184. package/dist/sparkle-core/sparkle-header.entry.js +97 -0
  185. package/dist/sparkle-core/sparkle-health.entry.js +70 -0
  186. package/dist/sparkle-core/sparkle-input.entry.js +52 -0
  187. package/dist/sparkle-core/sparkle-intro.entry.js +22 -0
  188. package/dist/sparkle-core/sparkle-login.entry.js +116 -0
  189. package/dist/sparkle-core/sparkle-lower-content-nav.entry.js +18 -0
  190. package/dist/sparkle-core/sparkle-menu-collapsible.entry.js +42 -0
  191. package/dist/sparkle-core/sparkle-menu-toggle.entry.js +24 -0
  192. package/dist/sparkle-core/sparkle-menu.entry.js +26 -0
  193. package/dist/sparkle-core/sparkle-modal-image.entry.js +33 -0
  194. package/dist/sparkle-core/sparkle-mood.entry.js +76 -0
  195. package/dist/sparkle-core/sparkle-nav.entry.js +113 -0
  196. package/dist/sparkle-core/sparkle-notfound-page.entry.js +25 -0
  197. package/dist/sparkle-core/sparkle-online-students.entry.js +55 -0
  198. package/dist/sparkle-core/sparkle-overlay.entry.js +90 -0
  199. package/dist/sparkle-core/sparkle-page-footer.entry.js +24 -0
  200. package/dist/sparkle-core/sparkle-page.entry.js +245 -0
  201. package/dist/sparkle-core/sparkle-pagination.entry.js +67 -0
  202. package/dist/sparkle-core/sparkle-poll.entry.js +15 -0
  203. package/dist/sparkle-core/sparkle-quiz-container.entry.js +43 -0
  204. package/dist/sparkle-core/sparkle-quiz-feedback.entry.js +18 -0
  205. package/dist/sparkle-core/sparkle-quiz-input.entry.js +16 -0
  206. package/dist/sparkle-core/sparkle-quiz-old.entry.js +116 -0
  207. package/dist/sparkle-core/sparkle-quiz-opinion.entry.js +41 -0
  208. package/dist/sparkle-core/sparkle-quiz-poll.entry.js +16 -0
  209. package/dist/sparkle-core/sparkle-quiz-select.entry.js +29 -0
  210. package/dist/sparkle-core/sparkle-quiz.entry.js +98 -0
  211. package/dist/sparkle-core/sparkle-reset-password.entry.js +96 -0
  212. package/dist/sparkle-core/sparkle-root.entry.js +79 -0
  213. package/dist/sparkle-core/sparkle-select.entry.js +57 -0
  214. package/dist/sparkle-core/sparkle-sidebar.entry.js +39 -0
  215. package/dist/sparkle-core/sparkle-signup.entry.js +144 -0
  216. package/dist/sparkle-core/sparkle-tab.entry.js +22 -0
  217. package/dist/sparkle-core/sparkle-table-of-contents.entry.js +67 -0
  218. package/dist/sparkle-core/sparkle-tabs.entry.js +62 -0
  219. package/dist/sparkle-core/sparkle-unauthorized.entry.js +17 -0
  220. package/dist/sparkle-core/sparkle-user-enrollment.entry.js +85 -0
  221. package/dist/sparkle-core/sparkle-user-profile.entry.js +129 -0
  222. package/dist/sparkle-core/sparkle-validation-error.entry.js +17 -0
  223. package/dist/sparkle-core/sparkle-video-player.entry.js +18 -0
  224. package/dist/sparkle-core/sparkle-youtube.entry.js +35 -0
  225. package/dist/sparkle-core/status-tap-52feb1b1.js +40 -0
  226. package/dist/sparkle-core/stencil-async-content.entry.js +28 -0
  227. package/dist/sparkle-core/stencil-route-link.entry.js +74 -0
  228. package/dist/sparkle-core/stencil-route-switch.entry.js +100 -0
  229. package/dist/sparkle-core/stencil-route-title.entry.js +28 -0
  230. package/dist/sparkle-core/stencil-route.entry.js +93 -0
  231. package/dist/sparkle-core/stencil-router-prompt.entry.js +55 -0
  232. package/dist/sparkle-core/stencil-router-redirect.entry.js +28 -0
  233. package/dist/sparkle-core/stencil-router.entry.js +636 -0
  234. package/dist/sparkle-core/store.service-0f7d998b.js +16 -0
  235. package/dist/sparkle-core/student.service-f0375229.js +59 -0
  236. package/dist/sparkle-core/swipe-back-9a614189.js +73 -0
  237. package/dist/sparkle-core/swiper.bundle-4274e115.js +6418 -0
  238. package/dist/sparkle-core/user.store-3d052406.js +19 -0
  239. package/dist/sparkle-core/util-ba470e54.js +14683 -0
  240. package/dist/sparkle-core/utils-cae23bce.js +114 -0
  241. package/dist/types/components/sparkle-video-player/sparkle-video-player.d.ts +7 -0
  242. package/dist/types/components.d.ts +21 -0
  243. package/package.json +1 -1
  244. package/dist/cjs/PrivateRoute-f97245ce.js +0 -217
  245. package/dist/cjs/active-router-f9e18bd8.js +0 -75
  246. package/dist/cjs/animation-ee586546.js +0 -986
  247. package/dist/cjs/app-globals-33c9f31b.js +0 -9
  248. package/dist/cjs/appdata.service-c8d71e05.js +0 -73
  249. package/dist/cjs/assets.service-bfa75092.js +0 -50
  250. package/dist/cjs/assignment.service-690fb59c.js +0 -19
  251. package/dist/cjs/auth.store-1e630a7d.js +0 -3392
  252. package/dist/cjs/compass-svg.cjs.entry.js +0 -132
  253. package/dist/cjs/context-consumer.cjs.entry.js +0 -29
  254. package/dist/cjs/course-select.cjs.entry.js +0 -30
  255. package/dist/cjs/cubic-bezier-53d26d05.js +0 -93
  256. package/dist/cjs/dir-5af5259a.js +0 -20
  257. package/dist/cjs/environment-config.service-c8ff1f3d.js +0 -28
  258. package/dist/cjs/facilitator.service-ff0e1659.js +0 -95
  259. package/dist/cjs/feed.service-8eca4de6.js +0 -57
  260. package/dist/cjs/focus-visible-b0b07ba6.js +0 -76
  261. package/dist/cjs/framework-delegate-59a98abd.js +0 -111
  262. package/dist/cjs/gesture-controller-0eb5579e.js +0 -196
  263. package/dist/cjs/haptic-780f33c4.js +0 -116
  264. package/dist/cjs/hardware-back-button-92d97ff8.js +0 -76
  265. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +0 -15124
  266. package/dist/cjs/helpers-c2496722.js +0 -425
  267. package/dist/cjs/httpService-d2e7bf8f.js +0 -687
  268. package/dist/cjs/icons-fda820af.js +0 -26
  269. package/dist/cjs/index-12082cba.js +0 -465
  270. package/dist/cjs/index-15ea05f5.js +0 -314
  271. package/dist/cjs/index-51e8292e.js +0 -1928
  272. package/dist/cjs/index-787d4498.js +0 -232
  273. package/dist/cjs/index-8b5629a6.js +0 -186
  274. package/dist/cjs/index-975586fd.js +0 -48
  275. package/dist/cjs/index-9c7b27e4.js +0 -140
  276. package/dist/cjs/index-af080b50.js +0 -139
  277. package/dist/cjs/index-e56e09b8.js +0 -38
  278. package/dist/cjs/index.cjs.js +0 -26
  279. package/dist/cjs/index.es-38cbcdbe.js +0 -10666
  280. package/dist/cjs/input-shims-eff63b88.js +0 -418
  281. package/dist/cjs/ion-accordion-group.cjs.entry.js +0 -205
  282. package/dist/cjs/ion-accordion.cjs.entry.js +0 -336
  283. package/dist/cjs/ion-action-sheet_7.cjs.entry.js +0 -2935
  284. package/dist/cjs/ion-app.cjs.entry.js +0 -79
  285. package/dist/cjs/ion-back-button.cjs.entry.js +0 -94
  286. package/dist/cjs/ion-backdrop.cjs.entry.js +0 -67
  287. package/dist/cjs/ion-badge.cjs.entry.js +0 -29
  288. package/dist/cjs/ion-breadcrumb.cjs.entry.js +0 -95
  289. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +0 -133
  290. package/dist/cjs/ion-buttons_3.cjs.entry.js +0 -153
  291. package/dist/cjs/ion-card-header.cjs.entry.js +0 -37
  292. package/dist/cjs/ion-card-subtitle.cjs.entry.js +0 -30
  293. package/dist/cjs/ion-card-title.cjs.entry.js +0 -30
  294. package/dist/cjs/ion-chip.cjs.entry.js +0 -40
  295. package/dist/cjs/ion-content_2.cjs.entry.js +0 -659
  296. package/dist/cjs/ion-datetime-button.cjs.entry.js +0 -312
  297. package/dist/cjs/ion-datetime.cjs.entry.js +0 -1623
  298. package/dist/cjs/ion-fab-button.cjs.entry.js +0 -108
  299. package/dist/cjs/ion-fab-list.cjs.entry.js +0 -45
  300. package/dist/cjs/ion-fab.cjs.entry.js +0 -76
  301. package/dist/cjs/ion-footer.cjs.entry.js +0 -120
  302. package/dist/cjs/ion-img.cjs.entry.js +0 -101
  303. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +0 -37
  304. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +0 -206
  305. package/dist/cjs/ion-item-divider.cjs.entry.js +0 -40
  306. package/dist/cjs/ion-item-group.cjs.entry.js +0 -31
  307. package/dist/cjs/ion-item-option.cjs.entry.js +0 -60
  308. package/dist/cjs/ion-item-options.cjs.entry.js +0 -47
  309. package/dist/cjs/ion-item-sliding.cjs.entry.js +0 -398
  310. package/dist/cjs/ion-loading.cjs.entry.js +0 -215
  311. package/dist/cjs/ion-menu-button.cjs.entry.js +0 -76
  312. package/dist/cjs/ion-menu-toggle.cjs.entry.js +0 -47
  313. package/dist/cjs/ion-menu.cjs.entry.js +0 -575
  314. package/dist/cjs/ion-modal.cjs.entry.js +0 -1711
  315. package/dist/cjs/ion-nav-link.cjs.entry.js +0 -47
  316. package/dist/cjs/ion-nav.cjs.entry.js +0 -872
  317. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +0 -808
  318. package/dist/cjs/ion-picker-column.cjs.entry.js +0 -331
  319. package/dist/cjs/ion-picker.cjs.entry.js +0 -221
  320. package/dist/cjs/ion-progress-bar.cjs.entry.js +0 -74
  321. package/dist/cjs/ion-refresher-content.cjs.entry.js +0 -35
  322. package/dist/cjs/ion-refresher.cjs.entry.js +0 -802
  323. package/dist/cjs/ion-reorder-group.cjs.entry.js +0 -281
  324. package/dist/cjs/ion-reorder.cjs.entry.js +0 -38
  325. package/dist/cjs/ion-route-redirect.cjs.entry.js +0 -24
  326. package/dist/cjs/ion-route.cjs.entry.js +0 -49
  327. package/dist/cjs/ion-router-link.cjs.entry.js +0 -38
  328. package/dist/cjs/ion-router-outlet.cjs.entry.js +0 -200
  329. package/dist/cjs/ion-router.cjs.entry.js +0 -831
  330. package/dist/cjs/ion-searchbar.cjs.entry.js +0 -370
  331. package/dist/cjs/ion-segment-button.cjs.entry.js +0 -102
  332. package/dist/cjs/ion-segment.cjs.entry.js +0 -417
  333. package/dist/cjs/ion-skeleton-text.cjs.entry.js +0 -33
  334. package/dist/cjs/ion-slide.cjs.entry.js +0 -25
  335. package/dist/cjs/ion-slides.cjs.entry.js +0 -391
  336. package/dist/cjs/ion-split-pane.cjs.entry.js +0 -154
  337. package/dist/cjs/ion-tab-bar.cjs.entry.js +0 -75
  338. package/dist/cjs/ion-tab-button.cjs.entry.js +0 -103
  339. package/dist/cjs/ion-tab.cjs.entry.js +0 -59
  340. package/dist/cjs/ion-tabs.cjs.entry.js +0 -154
  341. package/dist/cjs/ion-thumbnail.cjs.entry.js +0 -20
  342. package/dist/cjs/ion-toast.cjs.entry.js +0 -272
  343. package/dist/cjs/ion-toggle.cjs.entry.js +0 -177
  344. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +0 -555
  345. package/dist/cjs/ionic-global-2cde9d3a.js +0 -231
  346. package/dist/cjs/ios.transition-da235483.js +0 -482
  347. package/dist/cjs/keyboard-91096619.js +0 -140
  348. package/dist/cjs/loader.cjs.js +0 -24
  349. package/dist/cjs/localstorage.service-6346a41d.js +0 -40
  350. package/dist/cjs/md.transition-be429e07.js +0 -57
  351. package/dist/cjs/media.service-8a1b9bc5.js +0 -40
  352. package/dist/cjs/menu-toggle-util-7a01448c.js +0 -14
  353. package/dist/cjs/overlays-32df265a.js +0 -507
  354. package/dist/cjs/parse-d0071120.js +0 -1237
  355. package/dist/cjs/purify-fb9c107e.js +0 -1468
  356. package/dist/cjs/signalR.service-bd6b42f9.js +0 -2985
  357. package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -515
  358. package/dist/cjs/sparkle-assignment.cjs.entry.js +0 -110
  359. package/dist/cjs/sparkle-character-intro.cjs.entry.js +0 -26
  360. package/dist/cjs/sparkle-code.cjs.entry.js +0 -43
  361. package/dist/cjs/sparkle-compass-post.cjs.entry.js +0 -133
  362. package/dist/cjs/sparkle-compass.cjs.entry.js +0 -126
  363. package/dist/cjs/sparkle-core.cjs.js +0 -22
  364. package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +0 -281
  365. package/dist/cjs/sparkle-discussion.cjs.entry.js +0 -42
  366. package/dist/cjs/sparkle-emoji.cjs.entry.js +0 -80
  367. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +0 -121
  368. package/dist/cjs/sparkle-feed-post.cjs.entry.js +0 -116
  369. package/dist/cjs/sparkle-feedback.cjs.entry.js +0 -101
  370. package/dist/cjs/sparkle-file-upload.cjs.entry.js +0 -53
  371. package/dist/cjs/sparkle-goal-form.cjs.entry.js +0 -179
  372. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +0 -26
  373. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +0 -19
  374. package/dist/cjs/sparkle-input.cjs.entry.js +0 -56
  375. package/dist/cjs/sparkle-intro.cjs.entry.js +0 -26
  376. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +0 -22
  377. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +0 -46
  378. package/dist/cjs/sparkle-modal-image.cjs.entry.js +0 -34
  379. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +0 -25
  380. package/dist/cjs/sparkle-overlay.cjs.entry.js +0 -92
  381. package/dist/cjs/sparkle-poll.cjs.entry.js +0 -19
  382. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +0 -47
  383. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  384. package/dist/cjs/sparkle-quiz-old.cjs.entry.js +0 -120
  385. package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -103
  386. package/dist/cjs/sparkle-select.cjs.entry.js +0 -61
  387. package/dist/cjs/sparkle-sidebar.cjs.entry.js +0 -43
  388. package/dist/cjs/sparkle-tab.cjs.entry.js +0 -26
  389. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +0 -71
  390. package/dist/cjs/sparkle-tabs.cjs.entry.js +0 -66
  391. package/dist/cjs/sparkle-youtube.cjs.entry.js +0 -39
  392. package/dist/cjs/spinner-configs-0ac05f2d.js +0 -147
  393. package/dist/cjs/status-tap-033befa2.js +0 -42
  394. package/dist/cjs/stencil-async-content.cjs.entry.js +0 -32
  395. package/dist/cjs/stencil-route-title.cjs.entry.js +0 -32
  396. package/dist/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  397. package/dist/cjs/student.service-7e5385be.js +0 -78
  398. package/dist/cjs/swipe-back-4a826f9b.js +0 -76
  399. package/dist/cjs/swiper.bundle-8c897c07.js +0 -6420
  400. package/dist/cjs/theme-b0b295c1.js +0 -48
  401. package/dist/cjs/token.service-7a41953d.js +0 -97
  402. package/dist/cjs/util-47e320b2.js +0 -2462
  403. package/dist/collection/PrivateRoute.js +0 -27
  404. package/dist/collection/appconst.js +0 -13
  405. package/dist/collection/assets/img/forward.svg +0 -5
  406. package/dist/collection/assets/img/help/fitt-logo.svg +0 -1
  407. package/dist/collection/assets/img/home/big-white-wall.svg +0 -15
  408. package/dist/collection/assets/img/home/find-help.svg +0 -23
  409. package/dist/collection/assets/img/home/lessons.svg +0 -26
  410. package/dist/collection/assets/img/home/my-goals.svg +0 -19
  411. package/dist/collection/assets/img/home/my-health.svg +0 -17
  412. package/dist/collection/assets/img/home/my-mood.svg +0 -26
  413. package/dist/collection/assets/img/pause.svg +0 -5
  414. package/dist/collection/assets/img/play-symbol.svg +0 -8
  415. package/dist/collection/assets/img/play.svg +0 -4
  416. package/dist/collection/assets/img/rewind.svg +0 -5
  417. package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +0 -17
  418. package/dist/collection/assets/lib/sparkleUtility.js +0 -8
  419. package/dist/collection/assets/svg/profile.svg +0 -2
  420. package/dist/collection/collection-manifest.json +0 -218
  421. package/dist/collection/components/compass-svg/compass-svg.css +0 -15
  422. package/dist/collection/components/compass-svg/compass-svg.js +0 -156
  423. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +0 -7
  424. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +0 -110
  425. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +0 -3
  426. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +0 -214
  427. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
  428. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +0 -172
  429. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +0 -104
  430. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +0 -3
  431. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +0 -144
  432. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +0 -14
  433. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +0 -64
  434. package/dist/collection/components/layout/facilitator/facilitator-page.css +0 -196
  435. package/dist/collection/components/layout/facilitator/facilitator-page.js +0 -281
  436. package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
  437. package/dist/collection/components/layout/facilitator/online-students/online-students.js +0 -70
  438. package/dist/collection/components/layout/page/page.css +0 -183
  439. package/dist/collection/components/layout/page/page.js +0 -321
  440. package/dist/collection/components/layout/page/templates/default.js +0 -9
  441. package/dist/collection/components/layout/page/templates/error.js +0 -33
  442. package/dist/collection/components/layout/page/templates/index.js +0 -8
  443. package/dist/collection/components/layout/page/templates/pdf.js +0 -8
  444. package/dist/collection/components/layout/page/to-hypertext.js +0 -27
  445. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +0 -3
  446. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +0 -252
  447. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +0 -12
  448. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +0 -59
  449. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +0 -33
  450. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +0 -37
  451. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +0 -8
  452. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +0 -40
  453. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +0 -7
  454. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +0 -52
  455. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +0 -3
  456. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +0 -14
  457. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +0 -30
  458. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +0 -187
  459. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +0 -3
  460. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +0 -43
  461. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +0 -10
  462. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +0 -111
  463. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +0 -11
  464. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +0 -127
  465. package/dist/collection/components/modal-image/modal-image.css +0 -61
  466. package/dist/collection/components/modal-image/modal-image.js +0 -159
  467. package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
  468. package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
  469. package/dist/collection/components/sparkle-animation-player/caption-parser.js +0 -94
  470. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +0 -157
  471. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -598
  472. package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +0 -30
  473. package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +0 -159
  474. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  475. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  476. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  477. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  478. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  479. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  480. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +0 -74
  481. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +0 -68
  482. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +0 -35
  483. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +0 -171
  484. package/dist/collection/components/sparkle-compass/sparkle-compass.css +0 -25
  485. package/dist/collection/components/sparkle-compass/sparkle-compass.js +0 -283
  486. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +0 -3
  487. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +0 -196
  488. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +0 -157
  489. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +0 -232
  490. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +0 -158
  491. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +0 -274
  492. package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +0 -5
  493. package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +0 -112
  494. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +0 -16
  495. package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +0 -116
  496. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +0 -35
  497. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +0 -193
  498. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +0 -3
  499. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +0 -118
  500. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
  501. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +0 -105
  502. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +0 -4
  503. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +0 -107
  504. package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
  505. package/dist/collection/components/sparkle-input/sparkle-input.js +0 -212
  506. package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -15
  507. package/dist/collection/components/sparkle-intro/sparkle-intro.js +0 -35
  508. package/dist/collection/components/sparkle-login/sparkle-login.css +0 -4
  509. package/dist/collection/components/sparkle-login/sparkle-login.js +0 -173
  510. package/dist/collection/components/sparkle-poll/sparkle-poll.css +0 -3
  511. package/dist/collection/components/sparkle-poll/sparkle-poll.js +0 -15
  512. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +0 -3
  513. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +0 -69
  514. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +0 -3
  515. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +0 -59
  516. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +0 -48
  517. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +0 -327
  518. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +0 -18
  519. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +0 -106
  520. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +0 -3
  521. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +0 -59
  522. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +0 -3
  523. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +0 -100
  524. package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +0 -48
  525. package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +0 -221
  526. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +0 -3
  527. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +0 -98
  528. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +0 -3
  529. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +0 -126
  530. package/dist/collection/components/sparkle-root/sparkle-root.css +0 -61
  531. package/dist/collection/components/sparkle-root/sparkle-root.js +0 -86
  532. package/dist/collection/components/sparkle-signup/sparkle-signup.css +0 -6
  533. package/dist/collection/components/sparkle-signup/sparkle-signup.js +0 -197
  534. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +0 -13
  535. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +0 -18
  536. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +0 -3
  537. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +0 -93
  538. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +0 -54
  539. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +0 -151
  540. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +0 -11
  541. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +0 -44
  542. package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +0 -24
  543. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +0 -99
  544. package/dist/collection/global/app.js +0 -4
  545. package/dist/collection/helpers/utils.js +0 -3
  546. package/dist/collection/icons.js +0 -36
  547. package/dist/collection/index.js +0 -3
  548. package/dist/collection/l10n.js +0 -18
  549. package/dist/collection/models/api.model.js +0 -7
  550. package/dist/collection/models/assets.model.js +0 -1
  551. package/dist/collection/models/auth/auth.user.js +0 -1
  552. package/dist/collection/models/class.model.js +0 -5
  553. package/dist/collection/models/course.model.js +0 -10
  554. package/dist/collection/models/definitions.js +0 -1
  555. package/dist/collection/models/facilitator-dashboard.model.js +0 -5
  556. package/dist/collection/models/goal.model.js +0 -1
  557. package/dist/collection/models/index.js +0 -1
  558. package/dist/collection/models/markdown.model.js +0 -1
  559. package/dist/collection/models/page.model.js +0 -1
  560. package/dist/collection/models/quiz.model.js +0 -3
  561. package/dist/collection/models/user.model.js +0 -1
  562. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +0 -2727
  563. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +0 -2042
  564. package/dist/collection/services/account.service.js +0 -61
  565. package/dist/collection/services/appdata.service.js +0 -60
  566. package/dist/collection/services/assignment.service.js +0 -14
  567. package/dist/collection/services/auth/auth.service.js +0 -64
  568. package/dist/collection/services/core/assets.service.js +0 -45
  569. package/dist/collection/services/core/localstorage.service.js +0 -34
  570. package/dist/collection/services/environment/environment-config.js +0 -24
  571. package/dist/collection/services/environment/environment-config.service.js +0 -24
  572. package/dist/collection/services/facilitator.service.js +0 -76
  573. package/dist/collection/services/feed.service.js +0 -43
  574. package/dist/collection/services/httpService.js +0 -103
  575. package/dist/collection/services/index.js +0 -4
  576. package/dist/collection/services/media.service.js +0 -29
  577. package/dist/collection/services/signalR.service.js +0 -83
  578. package/dist/collection/services/store.service.js +0 -13
  579. package/dist/collection/services/student.service.js +0 -56
  580. package/dist/collection/services/token.service.js +0 -79
  581. package/dist/collection/stores/auth.store.js +0 -12
  582. package/dist/collection/stores/class.store.js +0 -5
  583. package/dist/collection/stores/error.store.js +0 -5
  584. package/dist/collection/stores/facilitator.store.js +0 -15
  585. package/dist/collection/stores/feed.store.js +0 -8
  586. package/dist/collection/stores/goal.store.js +0 -7
  587. package/dist/collection/stores/index.js +0 -1
  588. package/dist/collection/stores/media.store.js +0 -5
  589. package/dist/collection/stores/mood.store.js +0 -5
  590. package/dist/collection/stores/nav.store.js +0 -11
  591. package/dist/collection/stores/signalR.store.js +0 -6
  592. package/dist/collection/stores/theme.store.js +0 -9
  593. package/dist/collection/stores/toc.store.js +0 -5
  594. package/dist/collection/stores/user.store.js +0 -16
  595. package/dist/collection/util.js +0 -55
  596. package/dist/collection/utils.js +0 -92
  597. package/dist/esm/PrivateRoute-90ac95b8.js +0 -212
  598. package/dist/esm/active-router-fc9e4e06.js +0 -73
  599. package/dist/esm/animation-12377cb3.js +0 -984
  600. package/dist/esm/app-globals-3f0347b0.js +0 -7
  601. package/dist/esm/appdata.service-2e84e167.js +0 -70
  602. package/dist/esm/assets.service-def1d63c.js +0 -48
  603. package/dist/esm/assignment.service-8d31f141.js +0 -17
  604. package/dist/esm/auth.store-dba2c2da.js +0 -3381
  605. package/dist/esm/compass-svg.entry.js +0 -128
  606. package/dist/esm/context-consumer.entry.js +0 -25
  607. package/dist/esm/course-select.entry.js +0 -26
  608. package/dist/esm/dir-03012648.js +0 -18
  609. package/dist/esm/environment-config.service-b191f276.js +0 -26
  610. package/dist/esm/facilitator.service-18c47bdf.js +0 -92
  611. package/dist/esm/feed.service-b4f3cae4.js +0 -54
  612. package/dist/esm/framework-delegate-3e634a5c.js +0 -107
  613. package/dist/esm/gesture-controller-7be18351.js +0 -194
  614. package/dist/esm/haptic-522f76f2.js +0 -110
  615. package/dist/esm/header-mobile-collapse_61.entry.js +0 -15060
  616. package/dist/esm/helpers-bf0e23d6.js +0 -403
  617. package/dist/esm/httpService-7986aeed.js +0 -685
  618. package/dist/esm/icons-1c794c74.js +0 -18
  619. package/dist/esm/index-21661af2.js +0 -463
  620. package/dist/esm/index-2b84cad2.js +0 -223
  621. package/dist/esm/index-4044fde9.js +0 -25
  622. package/dist/esm/index-45fec1e7.js +0 -184
  623. package/dist/esm/index-5e8971ae.js +0 -128
  624. package/dist/esm/index-c04b9ed5.js +0 -1888
  625. package/dist/esm/index-cded2d87.js +0 -312
  626. package/dist/esm/index-dad75b83.js +0 -34
  627. package/dist/esm/index.es-e0c0f891.js +0 -10580
  628. package/dist/esm/index.js +0 -12
  629. package/dist/esm/input-shims-671d8d9f.js +0 -416
  630. package/dist/esm/ion-accordion-group.entry.js +0 -201
  631. package/dist/esm/ion-accordion.entry.js +0 -332
  632. package/dist/esm/ion-action-sheet_7.entry.js +0 -2925
  633. package/dist/esm/ion-app.entry.js +0 -75
  634. package/dist/esm/ion-back-button.entry.js +0 -90
  635. package/dist/esm/ion-backdrop.entry.js +0 -63
  636. package/dist/esm/ion-badge.entry.js +0 -25
  637. package/dist/esm/ion-breadcrumb.entry.js +0 -91
  638. package/dist/esm/ion-breadcrumbs.entry.js +0 -129
  639. package/dist/esm/ion-buttons_3.entry.js +0 -147
  640. package/dist/esm/ion-card-header.entry.js +0 -33
  641. package/dist/esm/ion-card-subtitle.entry.js +0 -26
  642. package/dist/esm/ion-card-title.entry.js +0 -26
  643. package/dist/esm/ion-chip.entry.js +0 -36
  644. package/dist/esm/ion-content_2.entry.js +0 -654
  645. package/dist/esm/ion-datetime-button.entry.js +0 -308
  646. package/dist/esm/ion-datetime.entry.js +0 -1619
  647. package/dist/esm/ion-fab-button.entry.js +0 -104
  648. package/dist/esm/ion-fab-list.entry.js +0 -41
  649. package/dist/esm/ion-fab.entry.js +0 -72
  650. package/dist/esm/ion-footer.entry.js +0 -116
  651. package/dist/esm/ion-img.entry.js +0 -97
  652. package/dist/esm/ion-infinite-scroll-content.entry.js +0 -33
  653. package/dist/esm/ion-infinite-scroll.entry.js +0 -202
  654. package/dist/esm/ion-item-divider.entry.js +0 -36
  655. package/dist/esm/ion-item-group.entry.js +0 -27
  656. package/dist/esm/ion-item-option.entry.js +0 -56
  657. package/dist/esm/ion-item-options.entry.js +0 -43
  658. package/dist/esm/ion-item-sliding.entry.js +0 -394
  659. package/dist/esm/ion-loading.entry.js +0 -211
  660. package/dist/esm/ion-menu-button.entry.js +0 -72
  661. package/dist/esm/ion-menu-toggle.entry.js +0 -43
  662. package/dist/esm/ion-menu.entry.js +0 -571
  663. package/dist/esm/ion-modal.entry.js +0 -1707
  664. package/dist/esm/ion-nav-link.entry.js +0 -43
  665. package/dist/esm/ion-nav.entry.js +0 -868
  666. package/dist/esm/ion-picker-column-internal_2.entry.js +0 -803
  667. package/dist/esm/ion-picker-column.entry.js +0 -327
  668. package/dist/esm/ion-picker.entry.js +0 -217
  669. package/dist/esm/ion-progress-bar.entry.js +0 -70
  670. package/dist/esm/ion-refresher-content.entry.js +0 -31
  671. package/dist/esm/ion-refresher.entry.js +0 -798
  672. package/dist/esm/ion-reorder-group.entry.js +0 -277
  673. package/dist/esm/ion-reorder.entry.js +0 -34
  674. package/dist/esm/ion-route-redirect.entry.js +0 -20
  675. package/dist/esm/ion-route.entry.js +0 -45
  676. package/dist/esm/ion-router-link.entry.js +0 -34
  677. package/dist/esm/ion-router-outlet.entry.js +0 -196
  678. package/dist/esm/ion-router.entry.js +0 -827
  679. package/dist/esm/ion-searchbar.entry.js +0 -366
  680. package/dist/esm/ion-segment-button.entry.js +0 -98
  681. package/dist/esm/ion-segment.entry.js +0 -413
  682. package/dist/esm/ion-skeleton-text.entry.js +0 -29
  683. package/dist/esm/ion-slide.entry.js +0 -21
  684. package/dist/esm/ion-slides.entry.js +0 -387
  685. package/dist/esm/ion-split-pane.entry.js +0 -150
  686. package/dist/esm/ion-tab-bar.entry.js +0 -71
  687. package/dist/esm/ion-tab-button.entry.js +0 -99
  688. package/dist/esm/ion-tab.entry.js +0 -55
  689. package/dist/esm/ion-tabs.entry.js +0 -150
  690. package/dist/esm/ion-thumbnail.entry.js +0 -16
  691. package/dist/esm/ion-toast.entry.js +0 -268
  692. package/dist/esm/ion-toggle.entry.js +0 -173
  693. package/dist/esm/ion-virtual-scroll.entry.js +0 -551
  694. package/dist/esm/ionic-global-4903e23e.js +0 -226
  695. package/dist/esm/ios.transition-131d64fe.js +0 -479
  696. package/dist/esm/loader.js +0 -20
  697. package/dist/esm/md.transition-f6126011.js +0 -55
  698. package/dist/esm/media.service-6e90bc41.js +0 -37
  699. package/dist/esm/menu-toggle-util-bace8ae6.js +0 -12
  700. package/dist/esm/overlays-4233a39d.js +0 -491
  701. package/dist/esm/parse-1ae3a9bb.js +0 -1196
  702. package/dist/esm/polyfills/core-js.js +0 -11
  703. package/dist/esm/polyfills/css-shim.js +0 -1
  704. package/dist/esm/polyfills/dom.js +0 -79
  705. package/dist/esm/polyfills/es5-html-element.js +0 -1
  706. package/dist/esm/polyfills/index.js +0 -34
  707. package/dist/esm/polyfills/system.js +0 -6
  708. package/dist/esm/purify-85bfcc69.js +0 -1466
  709. package/dist/esm/signalR.service-c33fba50.js +0 -2982
  710. package/dist/esm/sparkle-animation-player.entry.js +0 -511
  711. package/dist/esm/sparkle-assignment.entry.js +0 -106
  712. package/dist/esm/sparkle-character-intro.entry.js +0 -22
  713. package/dist/esm/sparkle-code.entry.js +0 -39
  714. package/dist/esm/sparkle-compass-post.entry.js +0 -129
  715. package/dist/esm/sparkle-compass.entry.js +0 -122
  716. package/dist/esm/sparkle-core.js +0 -20
  717. package/dist/esm/sparkle-discussion-questions_2.entry.js +0 -276
  718. package/dist/esm/sparkle-discussion.entry.js +0 -38
  719. package/dist/esm/sparkle-emoji.entry.js +0 -76
  720. package/dist/esm/sparkle-facilitator-notes-form.entry.js +0 -117
  721. package/dist/esm/sparkle-feed-post.entry.js +0 -112
  722. package/dist/esm/sparkle-feedback.entry.js +0 -97
  723. package/dist/esm/sparkle-file-upload.entry.js +0 -49
  724. package/dist/esm/sparkle-goal-form.entry.js +0 -175
  725. package/dist/esm/sparkle-gww-comment-list.entry.js +0 -22
  726. package/dist/esm/sparkle-gww-graph.entry.js +0 -15
  727. package/dist/esm/sparkle-input.entry.js +0 -52
  728. package/dist/esm/sparkle-intro.entry.js +0 -22
  729. package/dist/esm/sparkle-lower-content-nav.entry.js +0 -18
  730. package/dist/esm/sparkle-menu-collapsible.entry.js +0 -42
  731. package/dist/esm/sparkle-modal-image.entry.js +0 -30
  732. package/dist/esm/sparkle-notfound-page.entry.js +0 -21
  733. package/dist/esm/sparkle-overlay.entry.js +0 -88
  734. package/dist/esm/sparkle-poll.entry.js +0 -15
  735. package/dist/esm/sparkle-quiz-container.entry.js +0 -43
  736. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  737. package/dist/esm/sparkle-quiz-old.entry.js +0 -116
  738. package/dist/esm/sparkle-quiz.entry.js +0 -99
  739. package/dist/esm/sparkle-select.entry.js +0 -57
  740. package/dist/esm/sparkle-sidebar.entry.js +0 -39
  741. package/dist/esm/sparkle-tab.entry.js +0 -22
  742. package/dist/esm/sparkle-table-of-contents.entry.js +0 -67
  743. package/dist/esm/sparkle-tabs.entry.js +0 -62
  744. package/dist/esm/sparkle-youtube.entry.js +0 -35
  745. package/dist/esm/status-tap-dde52787.js +0 -40
  746. package/dist/esm/stencil-async-content.entry.js +0 -28
  747. package/dist/esm/stencil-route-title.entry.js +0 -28
  748. package/dist/esm/stencil-router-prompt.entry.js +0 -55
  749. package/dist/esm/student.service-08af124f.js +0 -75
  750. package/dist/esm/swipe-back-7847a0c1.js +0 -74
  751. package/dist/esm/swiper.bundle-b6a959de.js +0 -6418
  752. package/dist/esm/token.service-71a5d33f.js +0 -94
  753. package/dist/esm/util-57cc8006.js +0 -2451
  754. package/dist/index.cjs.js +0 -1
  755. package/dist/index.js +0 -1
  756. package/dist/loader/cdn.js +0 -3
  757. package/dist/loader/index.cjs.js +0 -3
  758. package/dist/loader/index.d.ts +0 -12
  759. package/dist/loader/index.es2017.js +0 -3
  760. package/dist/loader/index.js +0 -4
  761. package/dist/loader/package.json +0 -10
  762. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +0 -75
  763. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +0 -72
  764. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +0 -25
  765. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +0 -59
  766. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +0 -357
  767. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +0 -290
  768. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +0 -494
  769. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +0 -502
  770. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +0 -17
  771. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +0 -22
  772. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +0 -22
  773. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +0 -281
  774. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +0 -309
  775. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +0 -26
  776. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +0 -26
  777. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +0 -58
  778. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +0 -62
  779. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -234
  780. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -237
  781. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -38
  782. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -37
  783. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -439
  784. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +0 -428
  785. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +0 -128
  786. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +0 -151
  787. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +0 -101
  788. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +0 -95
  789. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +0 -61
  790. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +0 -63
  791. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +0 -37
  792. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +0 -35
  793. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -28
  794. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -26
  795. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +0 -27
  796. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +0 -27
  797. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +0 -169
  798. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +0 -172
  799. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +0 -200
  800. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +0 -200
  801. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +0 -108
  802. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +0 -237
  803. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +0 -648
  804. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +0 -637
  805. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +0 -60
  806. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +0 -61
  807. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +0 -338
  808. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +0 -307
  809. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +0 -116
  810. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +0 -37
  811. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +0 -37
  812. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +0 -151
  813. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +0 -108
  814. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +0 -40
  815. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +0 -12
  816. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +0 -8
  817. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -54
  818. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -54
  819. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +0 -185
  820. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +0 -185
  821. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +0 -669
  822. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +0 -928
  823. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +0 -204
  824. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +0 -297
  825. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +0 -3
  826. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +0 -3
  827. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +0 -186
  828. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +0 -180
  829. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +0 -88
  830. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +0 -85
  831. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +0 -42
  832. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +0 -156
  833. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +0 -250
  834. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +0 -91
  835. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +0 -114
  836. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +0 -118
  837. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +0 -94
  838. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +0 -109
  839. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +0 -100
  840. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +0 -127
  841. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +0 -123
  842. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +0 -175
  843. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +0 -178
  844. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +0 -3
  845. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +0 -250
  846. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +0 -177
  847. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +0 -10
  848. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +0 -16
  849. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +0 -17
  850. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +0 -217
  851. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +0 -204
  852. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +0 -122
  853. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +0 -123
  854. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -82
  855. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -85
  856. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +0 -126
  857. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +0 -122
  858. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +0 -201
  859. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +0 -132
  860. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +0 -206
  861. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +0 -206
  862. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +0 -177
  863. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +0 -178
  864. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +0 -275
  865. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +0 -320
  866. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +0 -189
  867. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +0 -210
  868. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +0 -15
  869. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +0 -15
  870. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +0 -33
  871. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +0 -58
  872. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +0 -29
  873. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +0 -10
  874. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +0 -4
  875. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +0 -348
  876. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +0 -279
  877. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +0 -65
  878. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +0 -36
  879. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +0 -446
  880. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +0 -424
  881. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +0 -145
  882. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +0 -177
  883. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +0 -3
  884. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +0 -14
  885. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +0 -37
  886. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +0 -53
  887. package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +0 -31
  888. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +0 -764
  889. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +0 -764
  890. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +0 -167
  891. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +0 -108
  892. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +0 -108
  893. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +0 -4
  894. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +0 -97
  895. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +0 -82
  896. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +0 -308
  897. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +0 -331
  898. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +0 -19
  899. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +0 -3
  900. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +0 -175
  901. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +0 -179
  902. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +0 -21
  903. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +0 -122
  904. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +0 -55
  905. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +0 -262
  906. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +0 -295
  907. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +0 -286
  908. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +0 -261
  909. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +0 -175
  910. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +0 -168
  911. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +0 -21
  912. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
  913. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
  914. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
  915. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
  916. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
  917. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
  918. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
  919. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
  920. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
  921. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
  922. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
  923. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
  924. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
  925. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -25
  926. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -93
  927. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
  928. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
  929. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
  930. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
  931. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
  932. package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  933. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -101
  934. package/dist/sparkle-core/p-00d10dc9.js +0 -4
  935. package/dist/sparkle-core/p-0147266a.js +0 -1
  936. package/dist/sparkle-core/p-04c7b276.entry.js +0 -1
  937. package/dist/sparkle-core/p-05c032dd.js +0 -4
  938. package/dist/sparkle-core/p-06642405.entry.js +0 -1
  939. package/dist/sparkle-core/p-0664370b.entry.js +0 -1
  940. package/dist/sparkle-core/p-06c7d0f2.entry.js +0 -1
  941. package/dist/sparkle-core/p-076f0239.js +0 -4
  942. package/dist/sparkle-core/p-077c732b.js +0 -4
  943. package/dist/sparkle-core/p-08420531.entry.js +0 -1
  944. package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
  945. package/dist/sparkle-core/p-0ad5c123.entry.js +0 -1
  946. package/dist/sparkle-core/p-0afa3a4d.entry.js +0 -1
  947. package/dist/sparkle-core/p-0c3f3ea6.entry.js +0 -1
  948. package/dist/sparkle-core/p-0e4de1d0.js +0 -4
  949. package/dist/sparkle-core/p-0e8e539f.entry.js +0 -1
  950. package/dist/sparkle-core/p-11356b03.entry.js +0 -1
  951. package/dist/sparkle-core/p-11a6c175.entry.js +0 -1
  952. package/dist/sparkle-core/p-12dd96d7.js +0 -4
  953. package/dist/sparkle-core/p-13ec39db.entry.js +0 -1
  954. package/dist/sparkle-core/p-1adc98f6.js +0 -1
  955. package/dist/sparkle-core/p-1b1ba156.entry.js +0 -1
  956. package/dist/sparkle-core/p-1e125ca5.entry.js +0 -1
  957. package/dist/sparkle-core/p-1e4782af.entry.js +0 -1
  958. package/dist/sparkle-core/p-2033cd86.js +0 -7
  959. package/dist/sparkle-core/p-214d1229.entry.js +0 -1
  960. package/dist/sparkle-core/p-23aca7ca.js +0 -4
  961. package/dist/sparkle-core/p-24cb9a33.entry.js +0 -1
  962. package/dist/sparkle-core/p-27fbabc3.entry.js +0 -1
  963. package/dist/sparkle-core/p-2ba70507.entry.js +0 -1
  964. package/dist/sparkle-core/p-2c1ca854.entry.js +0 -1
  965. package/dist/sparkle-core/p-2d9659e2.entry.js +0 -1
  966. package/dist/sparkle-core/p-2f569553.js +0 -1
  967. package/dist/sparkle-core/p-30b810d1.entry.js +0 -4
  968. package/dist/sparkle-core/p-32f4e565.entry.js +0 -1
  969. package/dist/sparkle-core/p-352677e6.entry.js +0 -1
  970. package/dist/sparkle-core/p-38b7cf68.entry.js +0 -1
  971. package/dist/sparkle-core/p-38c842d5.entry.js +0 -1
  972. package/dist/sparkle-core/p-3963e02b.entry.js +0 -1
  973. package/dist/sparkle-core/p-39712c56.entry.js +0 -4
  974. package/dist/sparkle-core/p-39a31e43.js +0 -1
  975. package/dist/sparkle-core/p-3daf2915.entry.js +0 -352
  976. package/dist/sparkle-core/p-3de0e00c.js +0 -4
  977. package/dist/sparkle-core/p-4053ecdb.entry.js +0 -1
  978. package/dist/sparkle-core/p-408176ba.js +0 -1
  979. package/dist/sparkle-core/p-42ed7d5f.entry.js +0 -1
  980. package/dist/sparkle-core/p-48f72e63.js +0 -4
  981. package/dist/sparkle-core/p-4b4a8703.js +0 -1
  982. package/dist/sparkle-core/p-4c6a7e52.js +0 -1
  983. package/dist/sparkle-core/p-4d1cfcbe.entry.js +0 -1
  984. package/dist/sparkle-core/p-4d4077ea.js +0 -4
  985. package/dist/sparkle-core/p-4fba3e4c.js +0 -1
  986. package/dist/sparkle-core/p-506221fe.js +0 -4
  987. package/dist/sparkle-core/p-5096739e.entry.js +0 -1
  988. package/dist/sparkle-core/p-5322c920.entry.js +0 -1
  989. package/dist/sparkle-core/p-5893bbe5.entry.js +0 -1
  990. package/dist/sparkle-core/p-594a6982.entry.js +0 -1
  991. package/dist/sparkle-core/p-5c435d5a.entry.js +0 -1
  992. package/dist/sparkle-core/p-5cad23f1.js +0 -3
  993. package/dist/sparkle-core/p-5d409601.js +0 -1
  994. package/dist/sparkle-core/p-601397df.entry.js +0 -1
  995. package/dist/sparkle-core/p-604a7987.js +0 -4
  996. package/dist/sparkle-core/p-616941c6.entry.js +0 -1
  997. package/dist/sparkle-core/p-6316d124.entry.js +0 -1
  998. package/dist/sparkle-core/p-63f71ada.entry.js +0 -1
  999. package/dist/sparkle-core/p-69487d90.entry.js +0 -1
  1000. package/dist/sparkle-core/p-6bde0192.entry.js +0 -7
  1001. package/dist/sparkle-core/p-6d2f4093.entry.js +0 -7
  1002. package/dist/sparkle-core/p-6ffd2420.entry.js +0 -1
  1003. package/dist/sparkle-core/p-72053ae0.entry.js +0 -1
  1004. package/dist/sparkle-core/p-73721c84.js +0 -4
  1005. package/dist/sparkle-core/p-74864276.entry.js +0 -1
  1006. package/dist/sparkle-core/p-7d8427eb.js +0 -4
  1007. package/dist/sparkle-core/p-7dae0f0e.js +0 -1
  1008. package/dist/sparkle-core/p-7dbfc316.js +0 -1
  1009. package/dist/sparkle-core/p-7e7ce516.js +0 -4
  1010. package/dist/sparkle-core/p-81714d94.entry.js +0 -1
  1011. package/dist/sparkle-core/p-8492a765.entry.js +0 -1
  1012. package/dist/sparkle-core/p-859563db.entry.js +0 -1
  1013. package/dist/sparkle-core/p-85d4cd5c.entry.js +0 -1
  1014. package/dist/sparkle-core/p-865f36a8.entry.js +0 -1
  1015. package/dist/sparkle-core/p-86ed13f0.js +0 -5
  1016. package/dist/sparkle-core/p-871106e0.js +0 -4
  1017. package/dist/sparkle-core/p-894ff7e6.entry.js +0 -1
  1018. package/dist/sparkle-core/p-8a41b502.entry.js +0 -1
  1019. package/dist/sparkle-core/p-8b56f734.js +0 -1
  1020. package/dist/sparkle-core/p-8c74cbb6.entry.js +0 -1
  1021. package/dist/sparkle-core/p-924b2917.js +0 -4
  1022. package/dist/sparkle-core/p-9289cdbc.entry.js +0 -1
  1023. package/dist/sparkle-core/p-957715c5.entry.js +0 -1
  1024. package/dist/sparkle-core/p-973fe404.entry.js +0 -22
  1025. package/dist/sparkle-core/p-975b99ee.entry.js +0 -1
  1026. package/dist/sparkle-core/p-98daeddb.entry.js +0 -1
  1027. package/dist/sparkle-core/p-99ee9919.js +0 -1
  1028. package/dist/sparkle-core/p-9abbd715.entry.js +0 -1
  1029. package/dist/sparkle-core/p-9d894ed4.js +0 -4
  1030. package/dist/sparkle-core/p-9e309b3e.entry.js +0 -1
  1031. package/dist/sparkle-core/p-9e7fee8f.entry.js +0 -1
  1032. package/dist/sparkle-core/p-9ebf0537.entry.js +0 -1
  1033. package/dist/sparkle-core/p-a208ab2d.js +0 -4
  1034. package/dist/sparkle-core/p-a2638250.entry.js +0 -1
  1035. package/dist/sparkle-core/p-a2ebcf0a.entry.js +0 -1
  1036. package/dist/sparkle-core/p-a98d7ebe.entry.js +0 -1
  1037. package/dist/sparkle-core/p-add30d46.js +0 -4
  1038. package/dist/sparkle-core/p-b0603d19.js +0 -16
  1039. package/dist/sparkle-core/p-b06e2bef.js +0 -1
  1040. package/dist/sparkle-core/p-b3f375fb.entry.js +0 -1
  1041. package/dist/sparkle-core/p-b5f3e1bf.entry.js +0 -1
  1042. package/dist/sparkle-core/p-b6fec622.entry.js +0 -1
  1043. package/dist/sparkle-core/p-b8d71ff4.js +0 -1
  1044. package/dist/sparkle-core/p-b96f3c84.entry.js +0 -7
  1045. package/dist/sparkle-core/p-bd80ff43.js +0 -4
  1046. package/dist/sparkle-core/p-bd90903e.js +0 -1
  1047. package/dist/sparkle-core/p-be64105c.entry.js +0 -1
  1048. package/dist/sparkle-core/p-c0533c23.entry.js +0 -1
  1049. package/dist/sparkle-core/p-c2990b24.entry.js +0 -1
  1050. package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
  1051. package/dist/sparkle-core/p-c60b29bd.entry.js +0 -4
  1052. package/dist/sparkle-core/p-c64a34cd.entry.js +0 -1
  1053. package/dist/sparkle-core/p-c9f753a4.js +0 -1
  1054. package/dist/sparkle-core/p-cabe9139.js +0 -1
  1055. package/dist/sparkle-core/p-cabfbf22.entry.js +0 -1
  1056. package/dist/sparkle-core/p-cc518c36.entry.js +0 -1
  1057. package/dist/sparkle-core/p-cffd4817.entry.js +0 -1
  1058. package/dist/sparkle-core/p-d0adf726.entry.js +0 -1
  1059. package/dist/sparkle-core/p-d20e4fcf.entry.js +0 -1
  1060. package/dist/sparkle-core/p-d24e53ab.entry.js +0 -1
  1061. package/dist/sparkle-core/p-d288e6c1.entry.js +0 -1
  1062. package/dist/sparkle-core/p-d601810e.entry.js +0 -1
  1063. package/dist/sparkle-core/p-d68092b7.js +0 -4
  1064. package/dist/sparkle-core/p-da391f3f.js +0 -1
  1065. package/dist/sparkle-core/p-de4deb61.entry.js +0 -1
  1066. package/dist/sparkle-core/p-e0cad1bb.js +0 -1
  1067. package/dist/sparkle-core/p-e249aebf.entry.js +0 -1
  1068. package/dist/sparkle-core/p-e3e36ce9.entry.js +0 -1
  1069. package/dist/sparkle-core/p-e421d638.entry.js +0 -1
  1070. package/dist/sparkle-core/p-e686d8b5.entry.js +0 -4
  1071. package/dist/sparkle-core/p-e8988989.entry.js +0 -1
  1072. package/dist/sparkle-core/p-e9431eeb.js +0 -7
  1073. package/dist/sparkle-core/p-ea962e1b.entry.js +0 -1
  1074. package/dist/sparkle-core/p-eaa8bbee.js +0 -4
  1075. package/dist/sparkle-core/p-ebd4354b.entry.js +0 -1
  1076. package/dist/sparkle-core/p-ee1e0eb4.js +0 -2
  1077. package/dist/sparkle-core/p-ef4edc48.entry.js +0 -4
  1078. package/dist/sparkle-core/p-f196c124.entry.js +0 -7
  1079. package/dist/sparkle-core/p-f3cba72a.js +0 -4
  1080. package/dist/sparkle-core/p-f47fe1fe.entry.js +0 -1
  1081. package/dist/sparkle-core/p-f714f77a.entry.js +0 -1
  1082. package/dist/sparkle-core/p-f891c79a.entry.js +0 -1
  1083. package/dist/sparkle-core/p-fb0ca75e.entry.js +0 -5
  1084. package/dist/sparkle-core/p-fb757951.entry.js +0 -1
  1085. package/dist/sparkle-core/p-fd8d0738.entry.js +0 -4
  1086. package/dist/sparkle-core/p-fda95b6e.entry.js +0 -1
  1087. package/dist/sparkle-core/p-fe6dc976.entry.js +0 -1
  1088. package/dist/sparkle-core/p-ff080f82.entry.js +0 -10
  1089. package/dist/sparkle-core/p-ff7a8a71.js +0 -4
  1090. /package/dist/{esm → sparkle-core}/cubic-bezier-4c0db14f.js +0 -0
  1091. /package/dist/{esm → sparkle-core}/focus-visible-4e9a0764.js +0 -0
  1092. /package/dist/{esm → sparkle-core}/hardware-back-button-fa04d6e9.js +0 -0
  1093. /package/dist/{esm → sparkle-core}/index-be6112f8.js +0 -0
  1094. /package/dist/{esm → sparkle-core}/keyboard-7e8329b3.js +0 -0
  1095. /package/dist/{esm → sparkle-core}/localstorage.service-4bf408c8.js +0 -0
  1096. /package/dist/{esm → sparkle-core}/spinner-configs-a37e628a.js +0 -0
  1097. /package/dist/{esm → sparkle-core}/theme-7ef00c83.js +0 -0
@@ -1,2462 +0,0 @@
1
- 'use strict';
2
-
3
- function toInteger(dirtyNumber) {
4
- if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
5
- return NaN;
6
- }
7
-
8
- var number = Number(dirtyNumber);
9
-
10
- if (isNaN(number)) {
11
- return number;
12
- }
13
-
14
- return number < 0 ? Math.ceil(number) : Math.floor(number);
15
- }
16
-
17
- function requiredArgs(required, args) {
18
- if (args.length < required) {
19
- throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
20
- }
21
- }
22
-
23
- /**
24
- * @name toDate
25
- * @category Common Helpers
26
- * @summary Convert the given argument to an instance of Date.
27
- *
28
- * @description
29
- * Convert the given argument to an instance of Date.
30
- *
31
- * If the argument is an instance of Date, the function returns its clone.
32
- *
33
- * If the argument is a number, it is treated as a timestamp.
34
- *
35
- * If the argument is none of the above, the function returns Invalid Date.
36
- *
37
- * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
38
- *
39
- * @param {Date|Number} argument - the value to convert
40
- * @returns {Date} the parsed date in the local time zone
41
- * @throws {TypeError} 1 argument required
42
- *
43
- * @example
44
- * // Clone the date:
45
- * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
46
- * //=> Tue Feb 11 2014 11:30:30
47
- *
48
- * @example
49
- * // Convert the timestamp to date:
50
- * const result = toDate(1392098430000)
51
- * //=> Tue Feb 11 2014 11:30:30
52
- */
53
-
54
- function toDate(argument) {
55
- requiredArgs(1, arguments);
56
- var argStr = Object.prototype.toString.call(argument); // Clone the date
57
-
58
- if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
59
- // Prevent the date to lose the milliseconds when passed to new Date() in IE10
60
- return new Date(argument.getTime());
61
- } else if (typeof argument === 'number' || argStr === '[object Number]') {
62
- return new Date(argument);
63
- } else {
64
- if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
65
- // eslint-disable-next-line no-console
66
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console
67
-
68
- console.warn(new Error().stack);
69
- }
70
-
71
- return new Date(NaN);
72
- }
73
- }
74
-
75
- /**
76
- * @name addMilliseconds
77
- * @category Millisecond Helpers
78
- * @summary Add the specified number of milliseconds to the given date.
79
- *
80
- * @description
81
- * Add the specified number of milliseconds to the given date.
82
- *
83
- * ### v2.0.0 breaking changes:
84
- *
85
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
86
- *
87
- * @param {Date|Number} date - the date to be changed
88
- * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
89
- * @returns {Date} the new date with the milliseconds added
90
- * @throws {TypeError} 2 arguments required
91
- *
92
- * @example
93
- * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
94
- * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
95
- * //=> Thu Jul 10 2014 12:45:30.750
96
- */
97
-
98
- function addMilliseconds(dirtyDate, dirtyAmount) {
99
- requiredArgs(2, arguments);
100
- var timestamp = toDate(dirtyDate).getTime();
101
- var amount = toInteger(dirtyAmount);
102
- return new Date(timestamp + amount);
103
- }
104
-
105
- /**
106
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
107
- * They usually appear for dates that denote time before the timezones were introduced
108
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
109
- * and GMT+01:00:00 after that date)
110
- *
111
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
112
- * which would lead to incorrect calculations.
113
- *
114
- * This function returns the timezone offset in milliseconds that takes seconds in account.
115
- */
116
- function getTimezoneOffsetInMilliseconds(date) {
117
- var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
118
- utcDate.setUTCFullYear(date.getFullYear());
119
- return date.getTime() - utcDate.getTime();
120
- }
121
-
122
- /**
123
- * @name isDate
124
- * @category Common Helpers
125
- * @summary Is the given value a date?
126
- *
127
- * @description
128
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
129
- *
130
- * ### v2.0.0 breaking changes:
131
- *
132
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
133
- *
134
- * @param {*} value - the value to check
135
- * @returns {boolean} true if the given value is a date
136
- * @throws {TypeError} 1 arguments required
137
- *
138
- * @example
139
- * // For a valid date:
140
- * const result = isDate(new Date())
141
- * //=> true
142
- *
143
- * @example
144
- * // For an invalid date:
145
- * const result = isDate(new Date(NaN))
146
- * //=> true
147
- *
148
- * @example
149
- * // For some value:
150
- * const result = isDate('2014-02-31')
151
- * //=> false
152
- *
153
- * @example
154
- * // For an object:
155
- * const result = isDate({})
156
- * //=> false
157
- */
158
-
159
- function isDate(value) {
160
- requiredArgs(1, arguments);
161
- return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
162
- }
163
-
164
- /**
165
- * @name isValid
166
- * @category Common Helpers
167
- * @summary Is the given date valid?
168
- *
169
- * @description
170
- * Returns false if argument is Invalid Date and true otherwise.
171
- * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
172
- * Invalid Date is a Date, whose time value is NaN.
173
- *
174
- * Time value of Date: http://es5.github.io/#x15.9.1.1
175
- *
176
- * ### v2.0.0 breaking changes:
177
- *
178
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
179
- *
180
- * - Now `isValid` doesn't throw an exception
181
- * if the first argument is not an instance of Date.
182
- * Instead, argument is converted beforehand using `toDate`.
183
- *
184
- * Examples:
185
- *
186
- * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |
187
- * |---------------------------|---------------|---------------|
188
- * | `new Date()` | `true` | `true` |
189
- * | `new Date('2016-01-01')` | `true` | `true` |
190
- * | `new Date('')` | `false` | `false` |
191
- * | `new Date(1488370835081)` | `true` | `true` |
192
- * | `new Date(NaN)` | `false` | `false` |
193
- * | `'2016-01-01'` | `TypeError` | `false` |
194
- * | `''` | `TypeError` | `false` |
195
- * | `1488370835081` | `TypeError` | `true` |
196
- * | `NaN` | `TypeError` | `false` |
197
- *
198
- * We introduce this change to make *date-fns* consistent with ECMAScript behavior
199
- * that try to coerce arguments to the expected type
200
- * (which is also the case with other *date-fns* functions).
201
- *
202
- * @param {*} date - the date to check
203
- * @returns {Boolean} the date is valid
204
- * @throws {TypeError} 1 argument required
205
- *
206
- * @example
207
- * // For the valid date:
208
- * const result = isValid(new Date(2014, 1, 31))
209
- * //=> true
210
- *
211
- * @example
212
- * // For the value, convertable into a date:
213
- * const result = isValid(1393804800000)
214
- * //=> true
215
- *
216
- * @example
217
- * // For the invalid date:
218
- * const result = isValid(new Date(''))
219
- * //=> false
220
- */
221
-
222
- function isValid(dirtyDate) {
223
- requiredArgs(1, arguments);
224
-
225
- if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
226
- return false;
227
- }
228
-
229
- var date = toDate(dirtyDate);
230
- return !isNaN(Number(date));
231
- }
232
-
233
- var formatDistanceLocale = {
234
- lessThanXSeconds: {
235
- one: 'less than a second',
236
- other: 'less than {{count}} seconds'
237
- },
238
- xSeconds: {
239
- one: '1 second',
240
- other: '{{count}} seconds'
241
- },
242
- halfAMinute: 'half a minute',
243
- lessThanXMinutes: {
244
- one: 'less than a minute',
245
- other: 'less than {{count}} minutes'
246
- },
247
- xMinutes: {
248
- one: '1 minute',
249
- other: '{{count}} minutes'
250
- },
251
- aboutXHours: {
252
- one: 'about 1 hour',
253
- other: 'about {{count}} hours'
254
- },
255
- xHours: {
256
- one: '1 hour',
257
- other: '{{count}} hours'
258
- },
259
- xDays: {
260
- one: '1 day',
261
- other: '{{count}} days'
262
- },
263
- aboutXWeeks: {
264
- one: 'about 1 week',
265
- other: 'about {{count}} weeks'
266
- },
267
- xWeeks: {
268
- one: '1 week',
269
- other: '{{count}} weeks'
270
- },
271
- aboutXMonths: {
272
- one: 'about 1 month',
273
- other: 'about {{count}} months'
274
- },
275
- xMonths: {
276
- one: '1 month',
277
- other: '{{count}} months'
278
- },
279
- aboutXYears: {
280
- one: 'about 1 year',
281
- other: 'about {{count}} years'
282
- },
283
- xYears: {
284
- one: '1 year',
285
- other: '{{count}} years'
286
- },
287
- overXYears: {
288
- one: 'over 1 year',
289
- other: 'over {{count}} years'
290
- },
291
- almostXYears: {
292
- one: 'almost 1 year',
293
- other: 'almost {{count}} years'
294
- }
295
- };
296
-
297
- var formatDistance = function (token, count, options) {
298
- var result;
299
- var tokenValue = formatDistanceLocale[token];
300
-
301
- if (typeof tokenValue === 'string') {
302
- result = tokenValue;
303
- } else if (count === 1) {
304
- result = tokenValue.one;
305
- } else {
306
- result = tokenValue.other.replace('{{count}}', count.toString());
307
- }
308
-
309
- if (options !== null && options !== void 0 && options.addSuffix) {
310
- if (options.comparison && options.comparison > 0) {
311
- return 'in ' + result;
312
- } else {
313
- return result + ' ago';
314
- }
315
- }
316
-
317
- return result;
318
- };
319
-
320
- function buildFormatLongFn(args) {
321
- return function () {
322
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
323
- // TODO: Remove String()
324
- var width = options.width ? String(options.width) : args.defaultWidth;
325
- var format = args.formats[width] || args.formats[args.defaultWidth];
326
- return format;
327
- };
328
- }
329
-
330
- var dateFormats = {
331
- full: 'EEEE, MMMM do, y',
332
- long: 'MMMM do, y',
333
- medium: 'MMM d, y',
334
- short: 'MM/dd/yyyy'
335
- };
336
- var timeFormats = {
337
- full: 'h:mm:ss a zzzz',
338
- long: 'h:mm:ss a z',
339
- medium: 'h:mm:ss a',
340
- short: 'h:mm a'
341
- };
342
- var dateTimeFormats = {
343
- full: "{{date}} 'at' {{time}}",
344
- long: "{{date}} 'at' {{time}}",
345
- medium: '{{date}}, {{time}}',
346
- short: '{{date}}, {{time}}'
347
- };
348
- var formatLong = {
349
- date: buildFormatLongFn({
350
- formats: dateFormats,
351
- defaultWidth: 'full'
352
- }),
353
- time: buildFormatLongFn({
354
- formats: timeFormats,
355
- defaultWidth: 'full'
356
- }),
357
- dateTime: buildFormatLongFn({
358
- formats: dateTimeFormats,
359
- defaultWidth: 'full'
360
- })
361
- };
362
-
363
- var formatRelativeLocale = {
364
- lastWeek: "'last' eeee 'at' p",
365
- yesterday: "'yesterday at' p",
366
- today: "'today at' p",
367
- tomorrow: "'tomorrow at' p",
368
- nextWeek: "eeee 'at' p",
369
- other: 'P'
370
- };
371
-
372
- var formatRelative = function (token, _date, _baseDate, _options) {
373
- return formatRelativeLocale[token];
374
- };
375
-
376
- function buildLocalizeFn(args) {
377
- return function (dirtyIndex, dirtyOptions) {
378
- var options = dirtyOptions || {};
379
- var context = options.context ? String(options.context) : 'standalone';
380
- var valuesArray;
381
-
382
- if (context === 'formatting' && args.formattingValues) {
383
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
384
- var width = options.width ? String(options.width) : defaultWidth;
385
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
386
- } else {
387
- var _defaultWidth = args.defaultWidth;
388
-
389
- var _width = options.width ? String(options.width) : args.defaultWidth;
390
-
391
- valuesArray = args.values[_width] || args.values[_defaultWidth];
392
- }
393
-
394
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
395
-
396
- return valuesArray[index];
397
- };
398
- }
399
-
400
- var eraValues = {
401
- narrow: ['B', 'A'],
402
- abbreviated: ['BC', 'AD'],
403
- wide: ['Before Christ', 'Anno Domini']
404
- };
405
- var quarterValues = {
406
- narrow: ['1', '2', '3', '4'],
407
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
408
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
409
- }; // Note: in English, the names of days of the week and months are capitalized.
410
- // If you are making a new locale based on this one, check if the same is true for the language you're working on.
411
- // Generally, formatted dates should look like they are in the middle of a sentence,
412
- // e.g. in Spanish language the weekdays and months should be in the lowercase.
413
-
414
- var monthValues = {
415
- narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
416
- abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
417
- wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
418
- };
419
- var dayValues = {
420
- narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
421
- short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
422
- abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
423
- wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
424
- };
425
- var dayPeriodValues = {
426
- narrow: {
427
- am: 'a',
428
- pm: 'p',
429
- midnight: 'mi',
430
- noon: 'n',
431
- morning: 'morning',
432
- afternoon: 'afternoon',
433
- evening: 'evening',
434
- night: 'night'
435
- },
436
- abbreviated: {
437
- am: 'AM',
438
- pm: 'PM',
439
- midnight: 'midnight',
440
- noon: 'noon',
441
- morning: 'morning',
442
- afternoon: 'afternoon',
443
- evening: 'evening',
444
- night: 'night'
445
- },
446
- wide: {
447
- am: 'a.m.',
448
- pm: 'p.m.',
449
- midnight: 'midnight',
450
- noon: 'noon',
451
- morning: 'morning',
452
- afternoon: 'afternoon',
453
- evening: 'evening',
454
- night: 'night'
455
- }
456
- };
457
- var formattingDayPeriodValues = {
458
- narrow: {
459
- am: 'a',
460
- pm: 'p',
461
- midnight: 'mi',
462
- noon: 'n',
463
- morning: 'in the morning',
464
- afternoon: 'in the afternoon',
465
- evening: 'in the evening',
466
- night: 'at night'
467
- },
468
- abbreviated: {
469
- am: 'AM',
470
- pm: 'PM',
471
- midnight: 'midnight',
472
- noon: 'noon',
473
- morning: 'in the morning',
474
- afternoon: 'in the afternoon',
475
- evening: 'in the evening',
476
- night: 'at night'
477
- },
478
- wide: {
479
- am: 'a.m.',
480
- pm: 'p.m.',
481
- midnight: 'midnight',
482
- noon: 'noon',
483
- morning: 'in the morning',
484
- afternoon: 'in the afternoon',
485
- evening: 'in the evening',
486
- night: 'at night'
487
- }
488
- };
489
-
490
- var ordinalNumber = function (dirtyNumber, _options) {
491
- var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
492
- // if they are different for different grammatical genders,
493
- // use `options.unit`.
494
- //
495
- // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
496
- // 'day', 'hour', 'minute', 'second'.
497
-
498
- var rem100 = number % 100;
499
-
500
- if (rem100 > 20 || rem100 < 10) {
501
- switch (rem100 % 10) {
502
- case 1:
503
- return number + 'st';
504
-
505
- case 2:
506
- return number + 'nd';
507
-
508
- case 3:
509
- return number + 'rd';
510
- }
511
- }
512
-
513
- return number + 'th';
514
- };
515
-
516
- var localize = {
517
- ordinalNumber: ordinalNumber,
518
- era: buildLocalizeFn({
519
- values: eraValues,
520
- defaultWidth: 'wide'
521
- }),
522
- quarter: buildLocalizeFn({
523
- values: quarterValues,
524
- defaultWidth: 'wide',
525
- argumentCallback: function (quarter) {
526
- return quarter - 1;
527
- }
528
- }),
529
- month: buildLocalizeFn({
530
- values: monthValues,
531
- defaultWidth: 'wide'
532
- }),
533
- day: buildLocalizeFn({
534
- values: dayValues,
535
- defaultWidth: 'wide'
536
- }),
537
- dayPeriod: buildLocalizeFn({
538
- values: dayPeriodValues,
539
- defaultWidth: 'wide',
540
- formattingValues: formattingDayPeriodValues,
541
- defaultFormattingWidth: 'wide'
542
- })
543
- };
544
-
545
- function buildMatchFn(args) {
546
- return function (string) {
547
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
548
- var width = options.width;
549
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
550
- var matchResult = string.match(matchPattern);
551
-
552
- if (!matchResult) {
553
- return null;
554
- }
555
-
556
- var matchedString = matchResult[0];
557
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
558
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
559
- return pattern.test(matchedString);
560
- }) : findKey(parsePatterns, function (pattern) {
561
- return pattern.test(matchedString);
562
- });
563
- var value;
564
- value = args.valueCallback ? args.valueCallback(key) : key;
565
- value = options.valueCallback ? options.valueCallback(value) : value;
566
- var rest = string.slice(matchedString.length);
567
- return {
568
- value: value,
569
- rest: rest
570
- };
571
- };
572
- }
573
-
574
- function findKey(object, predicate) {
575
- for (var key in object) {
576
- if (object.hasOwnProperty(key) && predicate(object[key])) {
577
- return key;
578
- }
579
- }
580
-
581
- return undefined;
582
- }
583
-
584
- function findIndex(array, predicate) {
585
- for (var key = 0; key < array.length; key++) {
586
- if (predicate(array[key])) {
587
- return key;
588
- }
589
- }
590
-
591
- return undefined;
592
- }
593
-
594
- function buildMatchPatternFn(args) {
595
- return function (string) {
596
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
597
- var matchResult = string.match(args.matchPattern);
598
- if (!matchResult) return null;
599
- var matchedString = matchResult[0];
600
- var parseResult = string.match(args.parsePattern);
601
- if (!parseResult) return null;
602
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
603
- value = options.valueCallback ? options.valueCallback(value) : value;
604
- var rest = string.slice(matchedString.length);
605
- return {
606
- value: value,
607
- rest: rest
608
- };
609
- };
610
- }
611
-
612
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
613
- var parseOrdinalNumberPattern = /\d+/i;
614
- var matchEraPatterns = {
615
- narrow: /^(b|a)/i,
616
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
617
- wide: /^(before christ|before common era|anno domini|common era)/i
618
- };
619
- var parseEraPatterns = {
620
- any: [/^b/i, /^(a|c)/i]
621
- };
622
- var matchQuarterPatterns = {
623
- narrow: /^[1234]/i,
624
- abbreviated: /^q[1234]/i,
625
- wide: /^[1234](th|st|nd|rd)? quarter/i
626
- };
627
- var parseQuarterPatterns = {
628
- any: [/1/i, /2/i, /3/i, /4/i]
629
- };
630
- var matchMonthPatterns = {
631
- narrow: /^[jfmasond]/i,
632
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
633
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
634
- };
635
- var parseMonthPatterns = {
636
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
637
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
638
- };
639
- var matchDayPatterns = {
640
- narrow: /^[smtwf]/i,
641
- short: /^(su|mo|tu|we|th|fr|sa)/i,
642
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
643
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
644
- };
645
- var parseDayPatterns = {
646
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
647
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
648
- };
649
- var matchDayPeriodPatterns = {
650
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
651
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
652
- };
653
- var parseDayPeriodPatterns = {
654
- any: {
655
- am: /^a/i,
656
- pm: /^p/i,
657
- midnight: /^mi/i,
658
- noon: /^no/i,
659
- morning: /morning/i,
660
- afternoon: /afternoon/i,
661
- evening: /evening/i,
662
- night: /night/i
663
- }
664
- };
665
- var match = {
666
- ordinalNumber: buildMatchPatternFn({
667
- matchPattern: matchOrdinalNumberPattern,
668
- parsePattern: parseOrdinalNumberPattern,
669
- valueCallback: function (value) {
670
- return parseInt(value, 10);
671
- }
672
- }),
673
- era: buildMatchFn({
674
- matchPatterns: matchEraPatterns,
675
- defaultMatchWidth: 'wide',
676
- parsePatterns: parseEraPatterns,
677
- defaultParseWidth: 'any'
678
- }),
679
- quarter: buildMatchFn({
680
- matchPatterns: matchQuarterPatterns,
681
- defaultMatchWidth: 'wide',
682
- parsePatterns: parseQuarterPatterns,
683
- defaultParseWidth: 'any',
684
- valueCallback: function (index) {
685
- return index + 1;
686
- }
687
- }),
688
- month: buildMatchFn({
689
- matchPatterns: matchMonthPatterns,
690
- defaultMatchWidth: 'wide',
691
- parsePatterns: parseMonthPatterns,
692
- defaultParseWidth: 'any'
693
- }),
694
- day: buildMatchFn({
695
- matchPatterns: matchDayPatterns,
696
- defaultMatchWidth: 'wide',
697
- parsePatterns: parseDayPatterns,
698
- defaultParseWidth: 'any'
699
- }),
700
- dayPeriod: buildMatchFn({
701
- matchPatterns: matchDayPeriodPatterns,
702
- defaultMatchWidth: 'any',
703
- parsePatterns: parseDayPeriodPatterns,
704
- defaultParseWidth: 'any'
705
- })
706
- };
707
-
708
- /**
709
- * @type {Locale}
710
- * @category Locales
711
- * @summary English locale (United States).
712
- * @language English
713
- * @iso-639-2 eng
714
- * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
715
- * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
716
- */
717
- var locale = {
718
- code: 'en-US',
719
- formatDistance: formatDistance,
720
- formatLong: formatLong,
721
- formatRelative: formatRelative,
722
- localize: localize,
723
- match: match,
724
- options: {
725
- weekStartsOn: 0
726
- /* Sunday */
727
- ,
728
- firstWeekContainsDate: 1
729
- }
730
- };
731
-
732
- /**
733
- * @name subMilliseconds
734
- * @category Millisecond Helpers
735
- * @summary Subtract the specified number of milliseconds from the given date.
736
- *
737
- * @description
738
- * Subtract the specified number of milliseconds from the given date.
739
- *
740
- * ### v2.0.0 breaking changes:
741
- *
742
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
743
- *
744
- * @param {Date|Number} date - the date to be changed
745
- * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
746
- * @returns {Date} the new date with the milliseconds subtracted
747
- * @throws {TypeError} 2 arguments required
748
- *
749
- * @example
750
- * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
751
- * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
752
- * //=> Thu Jul 10 2014 12:45:29.250
753
- */
754
-
755
- function subMilliseconds(dirtyDate, dirtyAmount) {
756
- requiredArgs(2, arguments);
757
- var amount = toInteger(dirtyAmount);
758
- return addMilliseconds(dirtyDate, -amount);
759
- }
760
-
761
- var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
762
- // See issue: https://github.com/date-fns/date-fns/issues/376
763
-
764
- function getUTCDayOfYear(dirtyDate) {
765
- requiredArgs(1, arguments);
766
- var date = toDate(dirtyDate);
767
- var timestamp = date.getTime();
768
- date.setUTCMonth(0, 1);
769
- date.setUTCHours(0, 0, 0, 0);
770
- var startOfYearTimestamp = date.getTime();
771
- var difference = timestamp - startOfYearTimestamp;
772
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
773
- }
774
-
775
- // See issue: https://github.com/date-fns/date-fns/issues/376
776
-
777
- function startOfUTCISOWeek(dirtyDate) {
778
- requiredArgs(1, arguments);
779
- var weekStartsOn = 1;
780
- var date = toDate(dirtyDate);
781
- var day = date.getUTCDay();
782
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
783
- date.setUTCDate(date.getUTCDate() - diff);
784
- date.setUTCHours(0, 0, 0, 0);
785
- return date;
786
- }
787
-
788
- // See issue: https://github.com/date-fns/date-fns/issues/376
789
-
790
- function getUTCISOWeekYear(dirtyDate) {
791
- requiredArgs(1, arguments);
792
- var date = toDate(dirtyDate);
793
- var year = date.getUTCFullYear();
794
- var fourthOfJanuaryOfNextYear = new Date(0);
795
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
796
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
797
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
798
- var fourthOfJanuaryOfThisYear = new Date(0);
799
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
800
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
801
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
802
-
803
- if (date.getTime() >= startOfNextYear.getTime()) {
804
- return year + 1;
805
- } else if (date.getTime() >= startOfThisYear.getTime()) {
806
- return year;
807
- } else {
808
- return year - 1;
809
- }
810
- }
811
-
812
- // See issue: https://github.com/date-fns/date-fns/issues/376
813
-
814
- function startOfUTCISOWeekYear(dirtyDate) {
815
- requiredArgs(1, arguments);
816
- var year = getUTCISOWeekYear(dirtyDate);
817
- var fourthOfJanuary = new Date(0);
818
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
819
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
820
- var date = startOfUTCISOWeek(fourthOfJanuary);
821
- return date;
822
- }
823
-
824
- var MILLISECONDS_IN_WEEK$1 = 604800000; // This function will be a part of public API when UTC function will be implemented.
825
- // See issue: https://github.com/date-fns/date-fns/issues/376
826
-
827
- function getUTCISOWeek(dirtyDate) {
828
- requiredArgs(1, arguments);
829
- var date = toDate(dirtyDate);
830
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
831
- // because the number of milliseconds in a week is not constant
832
- // (e.g. it's different in the week of the daylight saving time clock shift)
833
-
834
- return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
835
- }
836
-
837
- // See issue: https://github.com/date-fns/date-fns/issues/376
838
-
839
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
840
- requiredArgs(1, arguments);
841
- var options = dirtyOptions || {};
842
- var locale = options.locale;
843
- var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
844
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
845
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
846
-
847
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
848
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
849
- }
850
-
851
- var date = toDate(dirtyDate);
852
- var day = date.getUTCDay();
853
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
854
- date.setUTCDate(date.getUTCDate() - diff);
855
- date.setUTCHours(0, 0, 0, 0);
856
- return date;
857
- }
858
-
859
- // See issue: https://github.com/date-fns/date-fns/issues/376
860
-
861
- function getUTCWeekYear(dirtyDate, dirtyOptions) {
862
- requiredArgs(1, arguments);
863
- var date = toDate(dirtyDate);
864
- var year = date.getUTCFullYear();
865
- var options = dirtyOptions || {};
866
- var locale = options.locale;
867
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
868
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
869
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
870
-
871
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
872
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
873
- }
874
-
875
- var firstWeekOfNextYear = new Date(0);
876
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
877
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
878
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
879
- var firstWeekOfThisYear = new Date(0);
880
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
881
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
882
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
883
-
884
- if (date.getTime() >= startOfNextYear.getTime()) {
885
- return year + 1;
886
- } else if (date.getTime() >= startOfThisYear.getTime()) {
887
- return year;
888
- } else {
889
- return year - 1;
890
- }
891
- }
892
-
893
- // See issue: https://github.com/date-fns/date-fns/issues/376
894
-
895
- function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
896
- requiredArgs(1, arguments);
897
- var options = dirtyOptions || {};
898
- var locale = options.locale;
899
- var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
900
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
901
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
902
- var year = getUTCWeekYear(dirtyDate, dirtyOptions);
903
- var firstWeek = new Date(0);
904
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
905
- firstWeek.setUTCHours(0, 0, 0, 0);
906
- var date = startOfUTCWeek(firstWeek, dirtyOptions);
907
- return date;
908
- }
909
-
910
- var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
911
- // See issue: https://github.com/date-fns/date-fns/issues/376
912
-
913
- function getUTCWeek(dirtyDate, options) {
914
- requiredArgs(1, arguments);
915
- var date = toDate(dirtyDate);
916
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
917
- // because the number of milliseconds in a week is not constant
918
- // (e.g. it's different in the week of the daylight saving time clock shift)
919
-
920
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
921
- }
922
-
923
- function addLeadingZeros(number, targetLength) {
924
- var sign = number < 0 ? '-' : '';
925
- var output = Math.abs(number).toString();
926
-
927
- while (output.length < targetLength) {
928
- output = '0' + output;
929
- }
930
-
931
- return sign + output;
932
- }
933
-
934
- /*
935
- * | | Unit | | Unit |
936
- * |-----|--------------------------------|-----|--------------------------------|
937
- * | a | AM, PM | A* | |
938
- * | d | Day of month | D | |
939
- * | h | Hour [1-12] | H | Hour [0-23] |
940
- * | m | Minute | M | Month |
941
- * | s | Second | S | Fraction of second |
942
- * | y | Year (abs) | Y | |
943
- *
944
- * Letters marked by * are not implemented but reserved by Unicode standard.
945
- */
946
-
947
- var formatters$1 = {
948
- // Year
949
- y: function (date, token) {
950
- // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
951
- // | Year | y | yy | yyy | yyyy | yyyyy |
952
- // |----------|-------|----|-------|-------|-------|
953
- // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
954
- // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
955
- // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
956
- // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
957
- // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
958
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
959
-
960
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
961
- return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
962
- },
963
- // Month
964
- M: function (date, token) {
965
- var month = date.getUTCMonth();
966
- return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
967
- },
968
- // Day of the month
969
- d: function (date, token) {
970
- return addLeadingZeros(date.getUTCDate(), token.length);
971
- },
972
- // AM or PM
973
- a: function (date, token) {
974
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
975
-
976
- switch (token) {
977
- case 'a':
978
- case 'aa':
979
- return dayPeriodEnumValue.toUpperCase();
980
-
981
- case 'aaa':
982
- return dayPeriodEnumValue;
983
-
984
- case 'aaaaa':
985
- return dayPeriodEnumValue[0];
986
-
987
- case 'aaaa':
988
- default:
989
- return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
990
- }
991
- },
992
- // Hour [1-12]
993
- h: function (date, token) {
994
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
995
- },
996
- // Hour [0-23]
997
- H: function (date, token) {
998
- return addLeadingZeros(date.getUTCHours(), token.length);
999
- },
1000
- // Minute
1001
- m: function (date, token) {
1002
- return addLeadingZeros(date.getUTCMinutes(), token.length);
1003
- },
1004
- // Second
1005
- s: function (date, token) {
1006
- return addLeadingZeros(date.getUTCSeconds(), token.length);
1007
- },
1008
- // Fraction of second
1009
- S: function (date, token) {
1010
- var numberOfDigits = token.length;
1011
- var milliseconds = date.getUTCMilliseconds();
1012
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
1013
- return addLeadingZeros(fractionalSeconds, token.length);
1014
- }
1015
- };
1016
-
1017
- var dayPeriodEnum = {
1018
- am: 'am',
1019
- pm: 'pm',
1020
- midnight: 'midnight',
1021
- noon: 'noon',
1022
- morning: 'morning',
1023
- afternoon: 'afternoon',
1024
- evening: 'evening',
1025
- night: 'night'
1026
- };
1027
- /*
1028
- * | | Unit | | Unit |
1029
- * |-----|--------------------------------|-----|--------------------------------|
1030
- * | a | AM, PM | A* | Milliseconds in day |
1031
- * | b | AM, PM, noon, midnight | B | Flexible day period |
1032
- * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
1033
- * | d | Day of month | D | Day of year |
1034
- * | e | Local day of week | E | Day of week |
1035
- * | f | | F* | Day of week in month |
1036
- * | g* | Modified Julian day | G | Era |
1037
- * | h | Hour [1-12] | H | Hour [0-23] |
1038
- * | i! | ISO day of week | I! | ISO week of year |
1039
- * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
1040
- * | k | Hour [1-24] | K | Hour [0-11] |
1041
- * | l* | (deprecated) | L | Stand-alone month |
1042
- * | m | Minute | M | Month |
1043
- * | n | | N | |
1044
- * | o! | Ordinal number modifier | O | Timezone (GMT) |
1045
- * | p! | Long localized time | P! | Long localized date |
1046
- * | q | Stand-alone quarter | Q | Quarter |
1047
- * | r* | Related Gregorian year | R! | ISO week-numbering year |
1048
- * | s | Second | S | Fraction of second |
1049
- * | t! | Seconds timestamp | T! | Milliseconds timestamp |
1050
- * | u | Extended year | U* | Cyclic year |
1051
- * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
1052
- * | w | Local week of year | W* | Week of month |
1053
- * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
1054
- * | y | Year (abs) | Y | Local week-numbering year |
1055
- * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
1056
- *
1057
- * Letters marked by * are not implemented but reserved by Unicode standard.
1058
- *
1059
- * Letters marked by ! are non-standard, but implemented by date-fns:
1060
- * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
1061
- * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
1062
- * i.e. 7 for Sunday, 1 for Monday, etc.
1063
- * - `I` is ISO week of year, as opposed to `w` which is local week of year.
1064
- * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
1065
- * `R` is supposed to be used in conjunction with `I` and `i`
1066
- * for universal ISO week-numbering date, whereas
1067
- * `Y` is supposed to be used in conjunction with `w` and `e`
1068
- * for week-numbering date specific to the locale.
1069
- * - `P` is long localized date format
1070
- * - `p` is long localized time format
1071
- */
1072
-
1073
- var formatters = {
1074
- // Era
1075
- G: function (date, token, localize) {
1076
- var era = date.getUTCFullYear() > 0 ? 1 : 0;
1077
-
1078
- switch (token) {
1079
- // AD, BC
1080
- case 'G':
1081
- case 'GG':
1082
- case 'GGG':
1083
- return localize.era(era, {
1084
- width: 'abbreviated'
1085
- });
1086
- // A, B
1087
-
1088
- case 'GGGGG':
1089
- return localize.era(era, {
1090
- width: 'narrow'
1091
- });
1092
- // Anno Domini, Before Christ
1093
-
1094
- case 'GGGG':
1095
- default:
1096
- return localize.era(era, {
1097
- width: 'wide'
1098
- });
1099
- }
1100
- },
1101
- // Year
1102
- y: function (date, token, localize) {
1103
- // Ordinal number
1104
- if (token === 'yo') {
1105
- var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
1106
-
1107
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
1108
- return localize.ordinalNumber(year, {
1109
- unit: 'year'
1110
- });
1111
- }
1112
-
1113
- return formatters$1.y(date, token);
1114
- },
1115
- // Local week-numbering year
1116
- Y: function (date, token, localize, options) {
1117
- var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
1118
-
1119
- var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
1120
-
1121
- if (token === 'YY') {
1122
- var twoDigitYear = weekYear % 100;
1123
- return addLeadingZeros(twoDigitYear, 2);
1124
- } // Ordinal number
1125
-
1126
-
1127
- if (token === 'Yo') {
1128
- return localize.ordinalNumber(weekYear, {
1129
- unit: 'year'
1130
- });
1131
- } // Padding
1132
-
1133
-
1134
- return addLeadingZeros(weekYear, token.length);
1135
- },
1136
- // ISO week-numbering year
1137
- R: function (date, token) {
1138
- var isoWeekYear = getUTCISOWeekYear(date); // Padding
1139
-
1140
- return addLeadingZeros(isoWeekYear, token.length);
1141
- },
1142
- // Extended year. This is a single number designating the year of this calendar system.
1143
- // The main difference between `y` and `u` localizers are B.C. years:
1144
- // | Year | `y` | `u` |
1145
- // |------|-----|-----|
1146
- // | AC 1 | 1 | 1 |
1147
- // | BC 1 | 1 | 0 |
1148
- // | BC 2 | 2 | -1 |
1149
- // Also `yy` always returns the last two digits of a year,
1150
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
1151
- u: function (date, token) {
1152
- var year = date.getUTCFullYear();
1153
- return addLeadingZeros(year, token.length);
1154
- },
1155
- // Quarter
1156
- Q: function (date, token, localize) {
1157
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
1158
-
1159
- switch (token) {
1160
- // 1, 2, 3, 4
1161
- case 'Q':
1162
- return String(quarter);
1163
- // 01, 02, 03, 04
1164
-
1165
- case 'QQ':
1166
- return addLeadingZeros(quarter, 2);
1167
- // 1st, 2nd, 3rd, 4th
1168
-
1169
- case 'Qo':
1170
- return localize.ordinalNumber(quarter, {
1171
- unit: 'quarter'
1172
- });
1173
- // Q1, Q2, Q3, Q4
1174
-
1175
- case 'QQQ':
1176
- return localize.quarter(quarter, {
1177
- width: 'abbreviated',
1178
- context: 'formatting'
1179
- });
1180
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1181
-
1182
- case 'QQQQQ':
1183
- return localize.quarter(quarter, {
1184
- width: 'narrow',
1185
- context: 'formatting'
1186
- });
1187
- // 1st quarter, 2nd quarter, ...
1188
-
1189
- case 'QQQQ':
1190
- default:
1191
- return localize.quarter(quarter, {
1192
- width: 'wide',
1193
- context: 'formatting'
1194
- });
1195
- }
1196
- },
1197
- // Stand-alone quarter
1198
- q: function (date, token, localize) {
1199
- var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
1200
-
1201
- switch (token) {
1202
- // 1, 2, 3, 4
1203
- case 'q':
1204
- return String(quarter);
1205
- // 01, 02, 03, 04
1206
-
1207
- case 'qq':
1208
- return addLeadingZeros(quarter, 2);
1209
- // 1st, 2nd, 3rd, 4th
1210
-
1211
- case 'qo':
1212
- return localize.ordinalNumber(quarter, {
1213
- unit: 'quarter'
1214
- });
1215
- // Q1, Q2, Q3, Q4
1216
-
1217
- case 'qqq':
1218
- return localize.quarter(quarter, {
1219
- width: 'abbreviated',
1220
- context: 'standalone'
1221
- });
1222
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
1223
-
1224
- case 'qqqqq':
1225
- return localize.quarter(quarter, {
1226
- width: 'narrow',
1227
- context: 'standalone'
1228
- });
1229
- // 1st quarter, 2nd quarter, ...
1230
-
1231
- case 'qqqq':
1232
- default:
1233
- return localize.quarter(quarter, {
1234
- width: 'wide',
1235
- context: 'standalone'
1236
- });
1237
- }
1238
- },
1239
- // Month
1240
- M: function (date, token, localize) {
1241
- var month = date.getUTCMonth();
1242
-
1243
- switch (token) {
1244
- case 'M':
1245
- case 'MM':
1246
- return formatters$1.M(date, token);
1247
- // 1st, 2nd, ..., 12th
1248
-
1249
- case 'Mo':
1250
- return localize.ordinalNumber(month + 1, {
1251
- unit: 'month'
1252
- });
1253
- // Jan, Feb, ..., Dec
1254
-
1255
- case 'MMM':
1256
- return localize.month(month, {
1257
- width: 'abbreviated',
1258
- context: 'formatting'
1259
- });
1260
- // J, F, ..., D
1261
-
1262
- case 'MMMMM':
1263
- return localize.month(month, {
1264
- width: 'narrow',
1265
- context: 'formatting'
1266
- });
1267
- // January, February, ..., December
1268
-
1269
- case 'MMMM':
1270
- default:
1271
- return localize.month(month, {
1272
- width: 'wide',
1273
- context: 'formatting'
1274
- });
1275
- }
1276
- },
1277
- // Stand-alone month
1278
- L: function (date, token, localize) {
1279
- var month = date.getUTCMonth();
1280
-
1281
- switch (token) {
1282
- // 1, 2, ..., 12
1283
- case 'L':
1284
- return String(month + 1);
1285
- // 01, 02, ..., 12
1286
-
1287
- case 'LL':
1288
- return addLeadingZeros(month + 1, 2);
1289
- // 1st, 2nd, ..., 12th
1290
-
1291
- case 'Lo':
1292
- return localize.ordinalNumber(month + 1, {
1293
- unit: 'month'
1294
- });
1295
- // Jan, Feb, ..., Dec
1296
-
1297
- case 'LLL':
1298
- return localize.month(month, {
1299
- width: 'abbreviated',
1300
- context: 'standalone'
1301
- });
1302
- // J, F, ..., D
1303
-
1304
- case 'LLLLL':
1305
- return localize.month(month, {
1306
- width: 'narrow',
1307
- context: 'standalone'
1308
- });
1309
- // January, February, ..., December
1310
-
1311
- case 'LLLL':
1312
- default:
1313
- return localize.month(month, {
1314
- width: 'wide',
1315
- context: 'standalone'
1316
- });
1317
- }
1318
- },
1319
- // Local week of year
1320
- w: function (date, token, localize, options) {
1321
- var week = getUTCWeek(date, options);
1322
-
1323
- if (token === 'wo') {
1324
- return localize.ordinalNumber(week, {
1325
- unit: 'week'
1326
- });
1327
- }
1328
-
1329
- return addLeadingZeros(week, token.length);
1330
- },
1331
- // ISO week of year
1332
- I: function (date, token, localize) {
1333
- var isoWeek = getUTCISOWeek(date);
1334
-
1335
- if (token === 'Io') {
1336
- return localize.ordinalNumber(isoWeek, {
1337
- unit: 'week'
1338
- });
1339
- }
1340
-
1341
- return addLeadingZeros(isoWeek, token.length);
1342
- },
1343
- // Day of the month
1344
- d: function (date, token, localize) {
1345
- if (token === 'do') {
1346
- return localize.ordinalNumber(date.getUTCDate(), {
1347
- unit: 'date'
1348
- });
1349
- }
1350
-
1351
- return formatters$1.d(date, token);
1352
- },
1353
- // Day of year
1354
- D: function (date, token, localize) {
1355
- var dayOfYear = getUTCDayOfYear(date);
1356
-
1357
- if (token === 'Do') {
1358
- return localize.ordinalNumber(dayOfYear, {
1359
- unit: 'dayOfYear'
1360
- });
1361
- }
1362
-
1363
- return addLeadingZeros(dayOfYear, token.length);
1364
- },
1365
- // Day of week
1366
- E: function (date, token, localize) {
1367
- var dayOfWeek = date.getUTCDay();
1368
-
1369
- switch (token) {
1370
- // Tue
1371
- case 'E':
1372
- case 'EE':
1373
- case 'EEE':
1374
- return localize.day(dayOfWeek, {
1375
- width: 'abbreviated',
1376
- context: 'formatting'
1377
- });
1378
- // T
1379
-
1380
- case 'EEEEE':
1381
- return localize.day(dayOfWeek, {
1382
- width: 'narrow',
1383
- context: 'formatting'
1384
- });
1385
- // Tu
1386
-
1387
- case 'EEEEEE':
1388
- return localize.day(dayOfWeek, {
1389
- width: 'short',
1390
- context: 'formatting'
1391
- });
1392
- // Tuesday
1393
-
1394
- case 'EEEE':
1395
- default:
1396
- return localize.day(dayOfWeek, {
1397
- width: 'wide',
1398
- context: 'formatting'
1399
- });
1400
- }
1401
- },
1402
- // Local day of week
1403
- e: function (date, token, localize, options) {
1404
- var dayOfWeek = date.getUTCDay();
1405
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
1406
-
1407
- switch (token) {
1408
- // Numerical value (Nth day of week with current locale or weekStartsOn)
1409
- case 'e':
1410
- return String(localDayOfWeek);
1411
- // Padded numerical value
1412
-
1413
- case 'ee':
1414
- return addLeadingZeros(localDayOfWeek, 2);
1415
- // 1st, 2nd, ..., 7th
1416
-
1417
- case 'eo':
1418
- return localize.ordinalNumber(localDayOfWeek, {
1419
- unit: 'day'
1420
- });
1421
-
1422
- case 'eee':
1423
- return localize.day(dayOfWeek, {
1424
- width: 'abbreviated',
1425
- context: 'formatting'
1426
- });
1427
- // T
1428
-
1429
- case 'eeeee':
1430
- return localize.day(dayOfWeek, {
1431
- width: 'narrow',
1432
- context: 'formatting'
1433
- });
1434
- // Tu
1435
-
1436
- case 'eeeeee':
1437
- return localize.day(dayOfWeek, {
1438
- width: 'short',
1439
- context: 'formatting'
1440
- });
1441
- // Tuesday
1442
-
1443
- case 'eeee':
1444
- default:
1445
- return localize.day(dayOfWeek, {
1446
- width: 'wide',
1447
- context: 'formatting'
1448
- });
1449
- }
1450
- },
1451
- // Stand-alone local day of week
1452
- c: function (date, token, localize, options) {
1453
- var dayOfWeek = date.getUTCDay();
1454
- var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
1455
-
1456
- switch (token) {
1457
- // Numerical value (same as in `e`)
1458
- case 'c':
1459
- return String(localDayOfWeek);
1460
- // Padded numerical value
1461
-
1462
- case 'cc':
1463
- return addLeadingZeros(localDayOfWeek, token.length);
1464
- // 1st, 2nd, ..., 7th
1465
-
1466
- case 'co':
1467
- return localize.ordinalNumber(localDayOfWeek, {
1468
- unit: 'day'
1469
- });
1470
-
1471
- case 'ccc':
1472
- return localize.day(dayOfWeek, {
1473
- width: 'abbreviated',
1474
- context: 'standalone'
1475
- });
1476
- // T
1477
-
1478
- case 'ccccc':
1479
- return localize.day(dayOfWeek, {
1480
- width: 'narrow',
1481
- context: 'standalone'
1482
- });
1483
- // Tu
1484
-
1485
- case 'cccccc':
1486
- return localize.day(dayOfWeek, {
1487
- width: 'short',
1488
- context: 'standalone'
1489
- });
1490
- // Tuesday
1491
-
1492
- case 'cccc':
1493
- default:
1494
- return localize.day(dayOfWeek, {
1495
- width: 'wide',
1496
- context: 'standalone'
1497
- });
1498
- }
1499
- },
1500
- // ISO day of week
1501
- i: function (date, token, localize) {
1502
- var dayOfWeek = date.getUTCDay();
1503
- var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
1504
-
1505
- switch (token) {
1506
- // 2
1507
- case 'i':
1508
- return String(isoDayOfWeek);
1509
- // 02
1510
-
1511
- case 'ii':
1512
- return addLeadingZeros(isoDayOfWeek, token.length);
1513
- // 2nd
1514
-
1515
- case 'io':
1516
- return localize.ordinalNumber(isoDayOfWeek, {
1517
- unit: 'day'
1518
- });
1519
- // Tue
1520
-
1521
- case 'iii':
1522
- return localize.day(dayOfWeek, {
1523
- width: 'abbreviated',
1524
- context: 'formatting'
1525
- });
1526
- // T
1527
-
1528
- case 'iiiii':
1529
- return localize.day(dayOfWeek, {
1530
- width: 'narrow',
1531
- context: 'formatting'
1532
- });
1533
- // Tu
1534
-
1535
- case 'iiiiii':
1536
- return localize.day(dayOfWeek, {
1537
- width: 'short',
1538
- context: 'formatting'
1539
- });
1540
- // Tuesday
1541
-
1542
- case 'iiii':
1543
- default:
1544
- return localize.day(dayOfWeek, {
1545
- width: 'wide',
1546
- context: 'formatting'
1547
- });
1548
- }
1549
- },
1550
- // AM or PM
1551
- a: function (date, token, localize) {
1552
- var hours = date.getUTCHours();
1553
- var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1554
-
1555
- switch (token) {
1556
- case 'a':
1557
- case 'aa':
1558
- return localize.dayPeriod(dayPeriodEnumValue, {
1559
- width: 'abbreviated',
1560
- context: 'formatting'
1561
- });
1562
-
1563
- case 'aaa':
1564
- return localize.dayPeriod(dayPeriodEnumValue, {
1565
- width: 'abbreviated',
1566
- context: 'formatting'
1567
- }).toLowerCase();
1568
-
1569
- case 'aaaaa':
1570
- return localize.dayPeriod(dayPeriodEnumValue, {
1571
- width: 'narrow',
1572
- context: 'formatting'
1573
- });
1574
-
1575
- case 'aaaa':
1576
- default:
1577
- return localize.dayPeriod(dayPeriodEnumValue, {
1578
- width: 'wide',
1579
- context: 'formatting'
1580
- });
1581
- }
1582
- },
1583
- // AM, PM, midnight, noon
1584
- b: function (date, token, localize) {
1585
- var hours = date.getUTCHours();
1586
- var dayPeriodEnumValue;
1587
-
1588
- if (hours === 12) {
1589
- dayPeriodEnumValue = dayPeriodEnum.noon;
1590
- } else if (hours === 0) {
1591
- dayPeriodEnumValue = dayPeriodEnum.midnight;
1592
- } else {
1593
- dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1594
- }
1595
-
1596
- switch (token) {
1597
- case 'b':
1598
- case 'bb':
1599
- return localize.dayPeriod(dayPeriodEnumValue, {
1600
- width: 'abbreviated',
1601
- context: 'formatting'
1602
- });
1603
-
1604
- case 'bbb':
1605
- return localize.dayPeriod(dayPeriodEnumValue, {
1606
- width: 'abbreviated',
1607
- context: 'formatting'
1608
- }).toLowerCase();
1609
-
1610
- case 'bbbbb':
1611
- return localize.dayPeriod(dayPeriodEnumValue, {
1612
- width: 'narrow',
1613
- context: 'formatting'
1614
- });
1615
-
1616
- case 'bbbb':
1617
- default:
1618
- return localize.dayPeriod(dayPeriodEnumValue, {
1619
- width: 'wide',
1620
- context: 'formatting'
1621
- });
1622
- }
1623
- },
1624
- // in the morning, in the afternoon, in the evening, at night
1625
- B: function (date, token, localize) {
1626
- var hours = date.getUTCHours();
1627
- var dayPeriodEnumValue;
1628
-
1629
- if (hours >= 17) {
1630
- dayPeriodEnumValue = dayPeriodEnum.evening;
1631
- } else if (hours >= 12) {
1632
- dayPeriodEnumValue = dayPeriodEnum.afternoon;
1633
- } else if (hours >= 4) {
1634
- dayPeriodEnumValue = dayPeriodEnum.morning;
1635
- } else {
1636
- dayPeriodEnumValue = dayPeriodEnum.night;
1637
- }
1638
-
1639
- switch (token) {
1640
- case 'B':
1641
- case 'BB':
1642
- case 'BBB':
1643
- return localize.dayPeriod(dayPeriodEnumValue, {
1644
- width: 'abbreviated',
1645
- context: 'formatting'
1646
- });
1647
-
1648
- case 'BBBBB':
1649
- return localize.dayPeriod(dayPeriodEnumValue, {
1650
- width: 'narrow',
1651
- context: 'formatting'
1652
- });
1653
-
1654
- case 'BBBB':
1655
- default:
1656
- return localize.dayPeriod(dayPeriodEnumValue, {
1657
- width: 'wide',
1658
- context: 'formatting'
1659
- });
1660
- }
1661
- },
1662
- // Hour [1-12]
1663
- h: function (date, token, localize) {
1664
- if (token === 'ho') {
1665
- var hours = date.getUTCHours() % 12;
1666
- if (hours === 0) hours = 12;
1667
- return localize.ordinalNumber(hours, {
1668
- unit: 'hour'
1669
- });
1670
- }
1671
-
1672
- return formatters$1.h(date, token);
1673
- },
1674
- // Hour [0-23]
1675
- H: function (date, token, localize) {
1676
- if (token === 'Ho') {
1677
- return localize.ordinalNumber(date.getUTCHours(), {
1678
- unit: 'hour'
1679
- });
1680
- }
1681
-
1682
- return formatters$1.H(date, token);
1683
- },
1684
- // Hour [0-11]
1685
- K: function (date, token, localize) {
1686
- var hours = date.getUTCHours() % 12;
1687
-
1688
- if (token === 'Ko') {
1689
- return localize.ordinalNumber(hours, {
1690
- unit: 'hour'
1691
- });
1692
- }
1693
-
1694
- return addLeadingZeros(hours, token.length);
1695
- },
1696
- // Hour [1-24]
1697
- k: function (date, token, localize) {
1698
- var hours = date.getUTCHours();
1699
- if (hours === 0) hours = 24;
1700
-
1701
- if (token === 'ko') {
1702
- return localize.ordinalNumber(hours, {
1703
- unit: 'hour'
1704
- });
1705
- }
1706
-
1707
- return addLeadingZeros(hours, token.length);
1708
- },
1709
- // Minute
1710
- m: function (date, token, localize) {
1711
- if (token === 'mo') {
1712
- return localize.ordinalNumber(date.getUTCMinutes(), {
1713
- unit: 'minute'
1714
- });
1715
- }
1716
-
1717
- return formatters$1.m(date, token);
1718
- },
1719
- // Second
1720
- s: function (date, token, localize) {
1721
- if (token === 'so') {
1722
- return localize.ordinalNumber(date.getUTCSeconds(), {
1723
- unit: 'second'
1724
- });
1725
- }
1726
-
1727
- return formatters$1.s(date, token);
1728
- },
1729
- // Fraction of second
1730
- S: function (date, token) {
1731
- return formatters$1.S(date, token);
1732
- },
1733
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1734
- X: function (date, token, _localize, options) {
1735
- var originalDate = options._originalDate || date;
1736
- var timezoneOffset = originalDate.getTimezoneOffset();
1737
-
1738
- if (timezoneOffset === 0) {
1739
- return 'Z';
1740
- }
1741
-
1742
- switch (token) {
1743
- // Hours and optional minutes
1744
- case 'X':
1745
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
1746
- // Hours, minutes and optional seconds without `:` delimiter
1747
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1748
- // so this token always has the same output as `XX`
1749
-
1750
- case 'XXXX':
1751
- case 'XX':
1752
- // Hours and minutes without `:` delimiter
1753
- return formatTimezone(timezoneOffset);
1754
- // Hours, minutes and optional seconds with `:` delimiter
1755
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1756
- // so this token always has the same output as `XXX`
1757
-
1758
- case 'XXXXX':
1759
- case 'XXX': // Hours and minutes with `:` delimiter
1760
-
1761
- default:
1762
- return formatTimezone(timezoneOffset, ':');
1763
- }
1764
- },
1765
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1766
- x: function (date, token, _localize, options) {
1767
- var originalDate = options._originalDate || date;
1768
- var timezoneOffset = originalDate.getTimezoneOffset();
1769
-
1770
- switch (token) {
1771
- // Hours and optional minutes
1772
- case 'x':
1773
- return formatTimezoneWithOptionalMinutes(timezoneOffset);
1774
- // Hours, minutes and optional seconds without `:` delimiter
1775
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1776
- // so this token always has the same output as `xx`
1777
-
1778
- case 'xxxx':
1779
- case 'xx':
1780
- // Hours and minutes without `:` delimiter
1781
- return formatTimezone(timezoneOffset);
1782
- // Hours, minutes and optional seconds with `:` delimiter
1783
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1784
- // so this token always has the same output as `xxx`
1785
-
1786
- case 'xxxxx':
1787
- case 'xxx': // Hours and minutes with `:` delimiter
1788
-
1789
- default:
1790
- return formatTimezone(timezoneOffset, ':');
1791
- }
1792
- },
1793
- // Timezone (GMT)
1794
- O: function (date, token, _localize, options) {
1795
- var originalDate = options._originalDate || date;
1796
- var timezoneOffset = originalDate.getTimezoneOffset();
1797
-
1798
- switch (token) {
1799
- // Short
1800
- case 'O':
1801
- case 'OO':
1802
- case 'OOO':
1803
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1804
- // Long
1805
-
1806
- case 'OOOO':
1807
- default:
1808
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1809
- }
1810
- },
1811
- // Timezone (specific non-location)
1812
- z: function (date, token, _localize, options) {
1813
- var originalDate = options._originalDate || date;
1814
- var timezoneOffset = originalDate.getTimezoneOffset();
1815
-
1816
- switch (token) {
1817
- // Short
1818
- case 'z':
1819
- case 'zz':
1820
- case 'zzz':
1821
- return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1822
- // Long
1823
-
1824
- case 'zzzz':
1825
- default:
1826
- return 'GMT' + formatTimezone(timezoneOffset, ':');
1827
- }
1828
- },
1829
- // Seconds timestamp
1830
- t: function (date, token, _localize, options) {
1831
- var originalDate = options._originalDate || date;
1832
- var timestamp = Math.floor(originalDate.getTime() / 1000);
1833
- return addLeadingZeros(timestamp, token.length);
1834
- },
1835
- // Milliseconds timestamp
1836
- T: function (date, token, _localize, options) {
1837
- var originalDate = options._originalDate || date;
1838
- var timestamp = originalDate.getTime();
1839
- return addLeadingZeros(timestamp, token.length);
1840
- }
1841
- };
1842
-
1843
- function formatTimezoneShort(offset, dirtyDelimiter) {
1844
- var sign = offset > 0 ? '-' : '+';
1845
- var absOffset = Math.abs(offset);
1846
- var hours = Math.floor(absOffset / 60);
1847
- var minutes = absOffset % 60;
1848
-
1849
- if (minutes === 0) {
1850
- return sign + String(hours);
1851
- }
1852
-
1853
- var delimiter = dirtyDelimiter || '';
1854
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1855
- }
1856
-
1857
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1858
- if (offset % 60 === 0) {
1859
- var sign = offset > 0 ? '-' : '+';
1860
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1861
- }
1862
-
1863
- return formatTimezone(offset, dirtyDelimiter);
1864
- }
1865
-
1866
- function formatTimezone(offset, dirtyDelimiter) {
1867
- var delimiter = dirtyDelimiter || '';
1868
- var sign = offset > 0 ? '-' : '+';
1869
- var absOffset = Math.abs(offset);
1870
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
1871
- var minutes = addLeadingZeros(absOffset % 60, 2);
1872
- return sign + hours + delimiter + minutes;
1873
- }
1874
-
1875
- function dateLongFormatter(pattern, formatLong) {
1876
- switch (pattern) {
1877
- case 'P':
1878
- return formatLong.date({
1879
- width: 'short'
1880
- });
1881
-
1882
- case 'PP':
1883
- return formatLong.date({
1884
- width: 'medium'
1885
- });
1886
-
1887
- case 'PPP':
1888
- return formatLong.date({
1889
- width: 'long'
1890
- });
1891
-
1892
- case 'PPPP':
1893
- default:
1894
- return formatLong.date({
1895
- width: 'full'
1896
- });
1897
- }
1898
- }
1899
-
1900
- function timeLongFormatter(pattern, formatLong) {
1901
- switch (pattern) {
1902
- case 'p':
1903
- return formatLong.time({
1904
- width: 'short'
1905
- });
1906
-
1907
- case 'pp':
1908
- return formatLong.time({
1909
- width: 'medium'
1910
- });
1911
-
1912
- case 'ppp':
1913
- return formatLong.time({
1914
- width: 'long'
1915
- });
1916
-
1917
- case 'pppp':
1918
- default:
1919
- return formatLong.time({
1920
- width: 'full'
1921
- });
1922
- }
1923
- }
1924
-
1925
- function dateTimeLongFormatter(pattern, formatLong) {
1926
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
1927
- var datePattern = matchResult[1];
1928
- var timePattern = matchResult[2];
1929
-
1930
- if (!timePattern) {
1931
- return dateLongFormatter(pattern, formatLong);
1932
- }
1933
-
1934
- var dateTimeFormat;
1935
-
1936
- switch (datePattern) {
1937
- case 'P':
1938
- dateTimeFormat = formatLong.dateTime({
1939
- width: 'short'
1940
- });
1941
- break;
1942
-
1943
- case 'PP':
1944
- dateTimeFormat = formatLong.dateTime({
1945
- width: 'medium'
1946
- });
1947
- break;
1948
-
1949
- case 'PPP':
1950
- dateTimeFormat = formatLong.dateTime({
1951
- width: 'long'
1952
- });
1953
- break;
1954
-
1955
- case 'PPPP':
1956
- default:
1957
- dateTimeFormat = formatLong.dateTime({
1958
- width: 'full'
1959
- });
1960
- break;
1961
- }
1962
-
1963
- return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1964
- }
1965
-
1966
- var longFormatters = {
1967
- p: timeLongFormatter,
1968
- P: dateTimeLongFormatter
1969
- };
1970
-
1971
- var protectedDayOfYearTokens = ['D', 'DD'];
1972
- var protectedWeekYearTokens = ['YY', 'YYYY'];
1973
- function isProtectedDayOfYearToken(token) {
1974
- return protectedDayOfYearTokens.indexOf(token) !== -1;
1975
- }
1976
- function isProtectedWeekYearToken(token) {
1977
- return protectedWeekYearTokens.indexOf(token) !== -1;
1978
- }
1979
- function throwProtectedError(token, format, input) {
1980
- if (token === 'YYYY') {
1981
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
1982
- } else if (token === 'YY') {
1983
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
1984
- } else if (token === 'D') {
1985
- throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
1986
- } else if (token === 'DD') {
1987
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
1988
- }
1989
- }
1990
-
1991
- // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
1992
- // (one of the certain letters followed by `o`)
1993
- // - (\w)\1* matches any sequences of the same letter
1994
- // - '' matches two quote characters in a row
1995
- // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
1996
- // except a single quote symbol, which ends the sequence.
1997
- // Two quote characters do not end the sequence.
1998
- // If there is no matching single quote
1999
- // then the sequence will continue until the end of the string.
2000
- // - . matches any single character unmatched by previous parts of the RegExps
2001
-
2002
- var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
2003
- // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
2004
-
2005
- var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2006
- var escapedStringRegExp = /^'([^]*?)'?$/;
2007
- var doubleQuoteRegExp = /''/g;
2008
- var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2009
- /**
2010
- * @name format
2011
- * @category Common Helpers
2012
- * @summary Format the date.
2013
- *
2014
- * @description
2015
- * Return the formatted date string in the given format. The result may vary by locale.
2016
- *
2017
- * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
2018
- * > See: https://git.io/fxCyr
2019
- *
2020
- * The characters wrapped between two single quotes characters (') are escaped.
2021
- * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
2022
- * (see the last example)
2023
- *
2024
- * Format of the string is based on Unicode Technical Standard #35:
2025
- * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
2026
- * with a few additions (see note 7 below the table).
2027
- *
2028
- * Accepted patterns:
2029
- * | Unit | Pattern | Result examples | Notes |
2030
- * |---------------------------------|---------|-----------------------------------|-------|
2031
- * | Era | G..GGG | AD, BC | |
2032
- * | | GGGG | Anno Domini, Before Christ | 2 |
2033
- * | | GGGGG | A, B | |
2034
- * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
2035
- * | | yo | 44th, 1st, 0th, 17th | 5,7 |
2036
- * | | yy | 44, 01, 00, 17 | 5 |
2037
- * | | yyy | 044, 001, 1900, 2017 | 5 |
2038
- * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
2039
- * | | yyyyy | ... | 3,5 |
2040
- * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
2041
- * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
2042
- * | | YY | 44, 01, 00, 17 | 5,8 |
2043
- * | | YYY | 044, 001, 1900, 2017 | 5 |
2044
- * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
2045
- * | | YYYYY | ... | 3,5 |
2046
- * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
2047
- * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
2048
- * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
2049
- * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
2050
- * | | RRRRR | ... | 3,5,7 |
2051
- * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
2052
- * | | uu | -43, 01, 1900, 2017 | 5 |
2053
- * | | uuu | -043, 001, 1900, 2017 | 5 |
2054
- * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
2055
- * | | uuuuu | ... | 3,5 |
2056
- * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
2057
- * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
2058
- * | | QQ | 01, 02, 03, 04 | |
2059
- * | | QQQ | Q1, Q2, Q3, Q4 | |
2060
- * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
2061
- * | | QQQQQ | 1, 2, 3, 4 | 4 |
2062
- * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
2063
- * | | qo | 1st, 2nd, 3rd, 4th | 7 |
2064
- * | | qq | 01, 02, 03, 04 | |
2065
- * | | qqq | Q1, Q2, Q3, Q4 | |
2066
- * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
2067
- * | | qqqqq | 1, 2, 3, 4 | 4 |
2068
- * | Month (formatting) | M | 1, 2, ..., 12 | |
2069
- * | | Mo | 1st, 2nd, ..., 12th | 7 |
2070
- * | | MM | 01, 02, ..., 12 | |
2071
- * | | MMM | Jan, Feb, ..., Dec | |
2072
- * | | MMMM | January, February, ..., December | 2 |
2073
- * | | MMMMM | J, F, ..., D | |
2074
- * | Month (stand-alone) | L | 1, 2, ..., 12 | |
2075
- * | | Lo | 1st, 2nd, ..., 12th | 7 |
2076
- * | | LL | 01, 02, ..., 12 | |
2077
- * | | LLL | Jan, Feb, ..., Dec | |
2078
- * | | LLLL | January, February, ..., December | 2 |
2079
- * | | LLLLL | J, F, ..., D | |
2080
- * | Local week of year | w | 1, 2, ..., 53 | |
2081
- * | | wo | 1st, 2nd, ..., 53th | 7 |
2082
- * | | ww | 01, 02, ..., 53 | |
2083
- * | ISO week of year | I | 1, 2, ..., 53 | 7 |
2084
- * | | Io | 1st, 2nd, ..., 53th | 7 |
2085
- * | | II | 01, 02, ..., 53 | 7 |
2086
- * | Day of month | d | 1, 2, ..., 31 | |
2087
- * | | do | 1st, 2nd, ..., 31st | 7 |
2088
- * | | dd | 01, 02, ..., 31 | |
2089
- * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
2090
- * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
2091
- * | | DD | 01, 02, ..., 365, 366 | 9 |
2092
- * | | DDD | 001, 002, ..., 365, 366 | |
2093
- * | | DDDD | ... | 3 |
2094
- * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
2095
- * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
2096
- * | | EEEEE | M, T, W, T, F, S, S | |
2097
- * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
2098
- * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
2099
- * | | io | 1st, 2nd, ..., 7th | 7 |
2100
- * | | ii | 01, 02, ..., 07 | 7 |
2101
- * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
2102
- * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
2103
- * | | iiiii | M, T, W, T, F, S, S | 7 |
2104
- * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
2105
- * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
2106
- * | | eo | 2nd, 3rd, ..., 1st | 7 |
2107
- * | | ee | 02, 03, ..., 01 | |
2108
- * | | eee | Mon, Tue, Wed, ..., Sun | |
2109
- * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
2110
- * | | eeeee | M, T, W, T, F, S, S | |
2111
- * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
2112
- * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
2113
- * | | co | 2nd, 3rd, ..., 1st | 7 |
2114
- * | | cc | 02, 03, ..., 01 | |
2115
- * | | ccc | Mon, Tue, Wed, ..., Sun | |
2116
- * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
2117
- * | | ccccc | M, T, W, T, F, S, S | |
2118
- * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
2119
- * | AM, PM | a..aa | AM, PM | |
2120
- * | | aaa | am, pm | |
2121
- * | | aaaa | a.m., p.m. | 2 |
2122
- * | | aaaaa | a, p | |
2123
- * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
2124
- * | | bbb | am, pm, noon, midnight | |
2125
- * | | bbbb | a.m., p.m., noon, midnight | 2 |
2126
- * | | bbbbb | a, p, n, mi | |
2127
- * | Flexible day period | B..BBB | at night, in the morning, ... | |
2128
- * | | BBBB | at night, in the morning, ... | 2 |
2129
- * | | BBBBB | at night, in the morning, ... | |
2130
- * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
2131
- * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
2132
- * | | hh | 01, 02, ..., 11, 12 | |
2133
- * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
2134
- * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
2135
- * | | HH | 00, 01, 02, ..., 23 | |
2136
- * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
2137
- * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
2138
- * | | KK | 01, 02, ..., 11, 00 | |
2139
- * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
2140
- * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
2141
- * | | kk | 24, 01, 02, ..., 23 | |
2142
- * | Minute | m | 0, 1, ..., 59 | |
2143
- * | | mo | 0th, 1st, ..., 59th | 7 |
2144
- * | | mm | 00, 01, ..., 59 | |
2145
- * | Second | s | 0, 1, ..., 59 | |
2146
- * | | so | 0th, 1st, ..., 59th | 7 |
2147
- * | | ss | 00, 01, ..., 59 | |
2148
- * | Fraction of second | S | 0, 1, ..., 9 | |
2149
- * | | SS | 00, 01, ..., 99 | |
2150
- * | | SSS | 000, 001, ..., 999 | |
2151
- * | | SSSS | ... | 3 |
2152
- * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
2153
- * | | XX | -0800, +0530, Z | |
2154
- * | | XXX | -08:00, +05:30, Z | |
2155
- * | | XXXX | -0800, +0530, Z, +123456 | 2 |
2156
- * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
2157
- * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
2158
- * | | xx | -0800, +0530, +0000 | |
2159
- * | | xxx | -08:00, +05:30, +00:00 | 2 |
2160
- * | | xxxx | -0800, +0530, +0000, +123456 | |
2161
- * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2162
- * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
2163
- * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
2164
- * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
2165
- * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
2166
- * | Seconds timestamp | t | 512969520 | 7 |
2167
- * | | tt | ... | 3,7 |
2168
- * | Milliseconds timestamp | T | 512969520900 | 7 |
2169
- * | | TT | ... | 3,7 |
2170
- * | Long localized date | P | 04/29/1453 | 7 |
2171
- * | | PP | Apr 29, 1453 | 7 |
2172
- * | | PPP | April 29th, 1453 | 7 |
2173
- * | | PPPP | Friday, April 29th, 1453 | 2,7 |
2174
- * | Long localized time | p | 12:00 AM | 7 |
2175
- * | | pp | 12:00:00 AM | 7 |
2176
- * | | ppp | 12:00:00 AM GMT+2 | 7 |
2177
- * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
2178
- * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
2179
- * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
2180
- * | | PPPppp | April 29th, 1453 at ... | 7 |
2181
- * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
2182
- * Notes:
2183
- * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2184
- * are the same as "stand-alone" units, but are different in some languages.
2185
- * "Formatting" units are declined according to the rules of the language
2186
- * in the context of a date. "Stand-alone" units are always nominative singular:
2187
- *
2188
- * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2189
- *
2190
- * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2191
- *
2192
- * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2193
- * the single quote characters (see below).
2194
- * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
2195
- * the output will be the same as default pattern for this unit, usually
2196
- * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
2197
- * are marked with "2" in the last column of the table.
2198
- *
2199
- * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
2200
- *
2201
- * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
2202
- *
2203
- * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
2204
- *
2205
- * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
2206
- *
2207
- * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
2208
- *
2209
- * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
2210
- * The output will be padded with zeros to match the length of the pattern.
2211
- *
2212
- * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
2213
- *
2214
- * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2215
- * These tokens represent the shortest form of the quarter.
2216
- *
2217
- * 5. The main difference between `y` and `u` patterns are B.C. years:
2218
- *
2219
- * | Year | `y` | `u` |
2220
- * |------|-----|-----|
2221
- * | AC 1 | 1 | 1 |
2222
- * | BC 1 | 1 | 0 |
2223
- * | BC 2 | 2 | -1 |
2224
- *
2225
- * Also `yy` always returns the last two digits of a year,
2226
- * while `uu` pads single digit years to 2 characters and returns other years unchanged:
2227
- *
2228
- * | Year | `yy` | `uu` |
2229
- * |------|------|------|
2230
- * | 1 | 01 | 01 |
2231
- * | 14 | 14 | 14 |
2232
- * | 376 | 76 | 376 |
2233
- * | 1453 | 53 | 1453 |
2234
- *
2235
- * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2236
- * except local week-numbering years are dependent on `options.weekStartsOn`
2237
- * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
2238
- * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
2239
- *
2240
- * 6. Specific non-location timezones are currently unavailable in `date-fns`,
2241
- * so right now these tokens fall back to GMT timezones.
2242
- *
2243
- * 7. These patterns are not in the Unicode Technical Standard #35:
2244
- * - `i`: ISO day of week
2245
- * - `I`: ISO week of year
2246
- * - `R`: ISO week-numbering year
2247
- * - `t`: seconds timestamp
2248
- * - `T`: milliseconds timestamp
2249
- * - `o`: ordinal number modifier
2250
- * - `P`: long localized date
2251
- * - `p`: long localized time
2252
- *
2253
- * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2254
- * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
2255
- *
2256
- * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2257
- * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
2258
- *
2259
- * ### v2.0.0 breaking changes:
2260
- *
2261
- * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).
2262
- *
2263
- * - The second argument is now required for the sake of explicitness.
2264
- *
2265
- * ```javascript
2266
- * // Before v2.0.0
2267
- * format(new Date(2016, 0, 1))
2268
- *
2269
- * // v2.0.0 onward
2270
- * format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
2271
- * ```
2272
- *
2273
- * - New format string API for `format` function
2274
- * which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
2275
- * See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
2276
- *
2277
- * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
2278
- *
2279
- * @param {Date|Number} date - the original date
2280
- * @param {String} format - the string of tokens
2281
- * @param {Object} [options] - an object with options.
2282
- * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2283
- * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2284
- * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
2285
- * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2286
- * see: https://git.io/fxCyr
2287
- * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2288
- * see: https://git.io/fxCyr
2289
- * @returns {String} the formatted date string
2290
- * @throws {TypeError} 2 arguments required
2291
- * @throws {RangeError} `date` must not be Invalid Date
2292
- * @throws {RangeError} `options.locale` must contain `localize` property
2293
- * @throws {RangeError} `options.locale` must contain `formatLong` property
2294
- * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2295
- * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2296
- * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2297
- * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2298
- * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2299
- * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
2300
- * @throws {RangeError} format string contains an unescaped latin alphabet character
2301
- *
2302
- * @example
2303
- * // Represent 11 February 2014 in middle-endian format:
2304
- * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2305
- * //=> '02/11/2014'
2306
- *
2307
- * @example
2308
- * // Represent 2 July 2014 in Esperanto:
2309
- * import { eoLocale } from 'date-fns/locale/eo'
2310
- * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2311
- * locale: eoLocale
2312
- * })
2313
- * //=> '2-a de julio 2014'
2314
- *
2315
- * @example
2316
- * // Escape string by single quote characters:
2317
- * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2318
- * //=> "3 o'clock"
2319
- */
2320
-
2321
- function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
2322
- requiredArgs(2, arguments);
2323
- var formatStr = String(dirtyFormatStr);
2324
- var options = dirtyOptions || {};
2325
- var locale$1 = options.locale || locale;
2326
- var localeFirstWeekContainsDate = locale$1.options && locale$1.options.firstWeekContainsDate;
2327
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
2328
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2329
-
2330
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2331
- throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2332
- }
2333
-
2334
- var localeWeekStartsOn = locale$1.options && locale$1.options.weekStartsOn;
2335
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
2336
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2337
-
2338
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2339
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2340
- }
2341
-
2342
- if (!locale$1.localize) {
2343
- throw new RangeError('locale must contain localize property');
2344
- }
2345
-
2346
- if (!locale$1.formatLong) {
2347
- throw new RangeError('locale must contain formatLong property');
2348
- }
2349
-
2350
- var originalDate = toDate(dirtyDate);
2351
-
2352
- if (!isValid(originalDate)) {
2353
- throw new RangeError('Invalid time value');
2354
- } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2355
- // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2356
- // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2357
-
2358
-
2359
- var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2360
- var utcDate = subMilliseconds(originalDate, timezoneOffset);
2361
- var formatterOptions = {
2362
- firstWeekContainsDate: firstWeekContainsDate,
2363
- weekStartsOn: weekStartsOn,
2364
- locale: locale$1,
2365
- _originalDate: originalDate
2366
- };
2367
- var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2368
- var firstCharacter = substring[0];
2369
-
2370
- if (firstCharacter === 'p' || firstCharacter === 'P') {
2371
- var longFormatter = longFormatters[firstCharacter];
2372
- return longFormatter(substring, locale$1.formatLong, formatterOptions);
2373
- }
2374
-
2375
- return substring;
2376
- }).join('').match(formattingTokensRegExp).map(function (substring) {
2377
- // Replace two single quote characters with one single quote character
2378
- if (substring === "''") {
2379
- return "'";
2380
- }
2381
-
2382
- var firstCharacter = substring[0];
2383
-
2384
- if (firstCharacter === "'") {
2385
- return cleanEscapedString(substring);
2386
- }
2387
-
2388
- var formatter = formatters[firstCharacter];
2389
-
2390
- if (formatter) {
2391
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
2392
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
2393
- }
2394
-
2395
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
2396
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
2397
- }
2398
-
2399
- return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2400
- }
2401
-
2402
- if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2403
- throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2404
- }
2405
-
2406
- return substring;
2407
- }).join('');
2408
- return result;
2409
- }
2410
-
2411
- function cleanEscapedString(input) {
2412
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
2413
- }
2414
-
2415
- const sample = (array) => array[Math.floor(Math.random() * array.length)];
2416
- function GetGoalAppData(title, description, category, percentage, goalText) {
2417
- return {
2418
- Name: title,
2419
- Description: description,
2420
- Category: category,
2421
- Percentage: percentage,
2422
- GoalText: goalText,
2423
- };
2424
- }
2425
- function MyMoodTemplate(feeling, intensity, location) {
2426
- return `Mood : ${feeling} and Level: ${intensity} <img src="${location}" />`;
2427
- }
2428
- function MyMoodTemplateJSON(feeling, intensity, location) {
2429
- return JSON.stringify({ Mood: feeling, Level: intensity, MoodImage: location });
2430
- }
2431
- function MyHealthTemplate(heartRate) {
2432
- return `Heart rate ${heartRate} bpm`;
2433
- }
2434
- function MyHealthTemplateJSON(heartRate) {
2435
- return JSON.stringify({ HearthRate: heartRate });
2436
- }
2437
- function MyGoalTemplate(goalName, text, progress) {
2438
- return `Goal update: ${goalName} ${text} Progress: ${progress}`;
2439
- }
2440
- function MyGoalTemplateJSON(goalName, goalUpdateText, progress) {
2441
- return JSON.stringify({ GoalTitle: goalName, GoalText: goalUpdateText, GoalProgress: progress });
2442
- }
2443
- class SparkleGlobal {
2444
- }
2445
- SparkleGlobal.MY_GOALS_APP_ID = 1;
2446
- SparkleGlobal.MY_HEALTH_APP_ID = 2;
2447
- SparkleGlobal.MY_MOOD_APP_ID = 3;
2448
- SparkleGlobal.LOCALSTORAGE_CLASSROOM_MODE = 'SPARKLE_CLASSROOM_MODE';
2449
- function date(date) {
2450
- return format(new Date(date), 'DD MMM YYYY');
2451
- }
2452
-
2453
- exports.GetGoalAppData = GetGoalAppData;
2454
- exports.MyGoalTemplate = MyGoalTemplate;
2455
- exports.MyGoalTemplateJSON = MyGoalTemplateJSON;
2456
- exports.MyHealthTemplate = MyHealthTemplate;
2457
- exports.MyHealthTemplateJSON = MyHealthTemplateJSON;
2458
- exports.MyMoodTemplate = MyMoodTemplate;
2459
- exports.MyMoodTemplateJSON = MyMoodTemplateJSON;
2460
- exports.SparkleGlobal = SparkleGlobal;
2461
- exports.date = date;
2462
- exports.sample = sample;