@mjhls/mjh-framework 1.0.886-beta.0 → 1.0.886

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 (339) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +10 -9
  3. package/dist/cjs/AD300x250.js +29 -28
  4. package/dist/cjs/AD300x250x600.js +29 -28
  5. package/dist/cjs/AD728x90.js +32 -31
  6. package/dist/cjs/ADFloatingFooter.js +31 -30
  7. package/dist/cjs/ADFooter.js +13 -12
  8. package/dist/cjs/ADGutter.js +31 -30
  9. package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-bce0ba07.js} +15 -13
  10. package/dist/cjs/ADSkyscraper.js +31 -30
  11. package/dist/cjs/ADSponsoredResources.js +31 -30
  12. package/dist/cjs/ADWebcast.js +31 -30
  13. package/dist/cjs/ADWelcome.js +32 -31
  14. package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-950b414b.js} +11 -10
  15. package/dist/cjs/AccordionPanel.js +29 -27
  16. package/dist/cjs/AdSlot.js +32 -31
  17. package/dist/cjs/AdSlotsProvider.js +18 -909
  18. package/dist/cjs/AlgoliaSearch.js +1490 -1306
  19. package/dist/cjs/AlphabeticList.js +24 -23
  20. package/dist/cjs/ArticleCarousel.js +20 -19
  21. package/dist/cjs/ArticleProgramLandingPage.js +58 -57
  22. package/dist/cjs/ArticleSeriesLandingPage.js +39 -38
  23. package/dist/cjs/ArticleSeriesListing.js +60 -59
  24. package/dist/cjs/Auth.js +680 -1504
  25. package/dist/cjs/AuthWrapper.js +1637 -419
  26. package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-9ebd251f.js} +56 -55
  29. package/dist/cjs/Breadcrumbs.js +27 -25
  30. package/dist/cjs/CMEDeck.js +81 -81
  31. package/dist/cjs/Column1.js +14 -11
  32. package/dist/cjs/Column2.js +34 -31
  33. package/dist/cjs/Column3.js +60 -57
  34. package/dist/cjs/ConferenceArticleCard.js +41 -40
  35. package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
  36. package/dist/cjs/ContentCardPaginated.js +98 -92
  37. package/dist/cjs/DeckContent.js +105 -101
  38. package/dist/cjs/DeckQueue.js +91 -87
  39. package/dist/cjs/DeckQueuePaginated.js +92 -86
  40. package/dist/cjs/{Dfp-f492f985.js → Dfp-9be904d5.js} +32 -31
  41. package/dist/cjs/EventsDeck.js +157 -150
  42. package/dist/cjs/ExternalResources.js +79 -78
  43. package/dist/cjs/Feature.js +29 -27
  44. package/dist/cjs/ForbesHero.js +41 -40
  45. package/dist/cjs/GridContent.js +189 -185
  46. package/dist/cjs/GridContentPaginated.js +190 -184
  47. package/dist/cjs/GridHero.js +43 -42
  48. package/dist/cjs/GroupDeck.js +58 -57
  49. package/dist/cjs/HamMagazine.js +144 -139
  50. package/dist/cjs/Header.js +14 -12
  51. package/dist/cjs/Hero.js +16 -15
  52. package/dist/cjs/HighlightenVideo.js +18 -17
  53. package/dist/cjs/HorizontalArticleListing.js +72 -71
  54. package/dist/cjs/HorizontalHero.js +29 -28
  55. package/dist/cjs/{ImageSlider-38f25e66.js → ImageSlider-b96720eb.js} +202 -1378
  56. package/dist/cjs/IssueContentDeck.js +76 -71
  57. package/dist/cjs/IssueDeck.js +75 -70
  58. package/dist/cjs/IssueLanding.js +94 -93
  59. package/dist/cjs/KMTracker.js +15 -15
  60. package/dist/cjs/LeftNav.js +39 -37
  61. package/dist/cjs/MasterDeck.js +79 -78
  62. package/dist/cjs/MasterDeckPaginated.js +76 -73
  63. package/dist/cjs/{MediaSeriesCard-8d27612b.js → MediaSeriesCard-8b4efd28.js} +1145 -1051
  64. package/dist/cjs/MediaSeriesLanding.js +93 -91
  65. package/dist/cjs/MediaSeriesLandingPaginated.js +95 -92
  66. package/dist/cjs/NavDvm.js +77 -72
  67. package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
  68. package/dist/cjs/NavMagazine.js +151 -146
  69. package/dist/cjs/NavNative.js +145 -137
  70. package/dist/cjs/OncliveHero.js +22 -22
  71. package/dist/cjs/OncliveLargeHero.js +71 -70
  72. package/dist/cjs/PageFilter.js +13 -12
  73. package/dist/cjs/Pagination-8f2038bf.js +53 -0
  74. package/dist/cjs/PartnerDetailListing.js +100 -98
  75. package/dist/cjs/PartnerDetailListingPaginated.js +99 -96
  76. package/dist/cjs/PdfDownload.js +10 -9
  77. package/dist/cjs/PopUpModal.js +19 -17
  78. package/dist/cjs/PubSection.js +41 -40
  79. package/dist/cjs/PubToc.js +14 -13
  80. package/dist/cjs/PublicationDeck.js +70 -65
  81. package/dist/cjs/{PublicationFeature-28c549f2.js → PublicationFeature-5ccf9b13.js} +40 -36
  82. package/dist/cjs/PublicationLanding.js +141 -133
  83. package/dist/cjs/QueueDeckExpanded.js +308 -308
  84. package/dist/cjs/QueueDeckExpandedPaginated.js +268 -267
  85. package/dist/cjs/RecentNews.js +23 -22
  86. package/dist/cjs/RelatedContent.js +58 -57
  87. package/dist/cjs/RelatedTopicsDropdown.js +32 -29
  88. package/dist/cjs/RolesDeck.js +32 -27
  89. package/dist/cjs/Schema.js +16 -15
  90. package/dist/cjs/Search.js +20 -16
  91. package/dist/cjs/Segment.js +4 -4
  92. package/dist/cjs/SeriesListingDeck.js +36 -36
  93. package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-ba0c5d1a.js} +40 -39
  94. package/dist/cjs/SetCookie.js +1 -1
  95. package/dist/cjs/SideFooter.js +37 -36
  96. package/dist/cjs/SocialIcons.js +10 -9
  97. package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-4942ddfc.js} +40 -36
  98. package/dist/cjs/SocialShare.js +31 -29
  99. package/dist/cjs/TaxonomyCard.js +66 -61
  100. package/dist/cjs/TaxonomyDescription.js +54 -53
  101. package/dist/cjs/TemplateNormal.js +73 -72
  102. package/dist/cjs/ThumbnailCard.js +26 -24
  103. package/dist/cjs/Ustream.js +29 -28
  104. package/dist/cjs/VerticalHero.js +20 -19
  105. package/dist/cjs/VideoProgramLandingPage.js +76 -72
  106. package/dist/cjs/VideoSeriesCard.js +33 -32
  107. package/dist/cjs/VideoSeriesFilter.js +16 -16
  108. package/dist/cjs/VideoSeriesLandingPage.js +48 -47
  109. package/dist/cjs/VideoSeriesListing.js +77 -76
  110. package/dist/cjs/View.js +267 -264
  111. package/dist/cjs/YahooHero.js +40 -39
  112. package/dist/cjs/YoutubeGroup.js +68 -67
  113. package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
  114. package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
  115. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
  116. package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
  117. package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
  118. package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
  119. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
  120. package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
  121. package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
  122. package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
  123. package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
  124. package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
  125. package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
  126. package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
  127. package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
  128. package/dist/cjs/faundadb.js +5 -5
  129. package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
  130. package/dist/cjs/getQuery.js +1 -1
  131. package/dist/cjs/getRelatedArticle.js +16 -16
  132. package/dist/cjs/getRootDocGroup.js +4 -4
  133. package/dist/cjs/getSerializers.js +43 -43
  134. package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
  135. package/dist/cjs/getTargeting.js +6 -6
  136. package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
  137. package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
  138. package/dist/cjs/{index-54adcbc3.js → index-6f89aea7.js} +1070 -1044
  139. package/dist/cjs/{index-be0c82be.js → index-d48b231c.js} +31 -25
  140. package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
  141. package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
  142. package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
  143. package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
  144. package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
  145. package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
  146. package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
  147. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
  148. package/dist/cjs/index.js +175 -168
  149. package/dist/cjs/{inherits-12d44cca.js → inherits-de66ea16.js} +18 -18
  150. package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
  151. package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
  152. package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
  153. package/dist/cjs/main-f1c77adb.js +973 -0
  154. package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
  155. package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
  156. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
  157. package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
  158. package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
  159. package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
  160. package/dist/cjs/timeDifferenceCalc.js +1 -1
  161. package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
  162. package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
  163. package/dist/cjs/typeof-1358762e.js +33 -0
  164. package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
  165. package/dist/cjs/urlFor.js +6 -6
  166. package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
  167. package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
  168. package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
  169. package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
  170. package/dist/esm/AD.js +1 -1
  171. package/dist/esm/AD300x250.js +22 -22
  172. package/dist/esm/AD300x250x600.js +22 -22
  173. package/dist/esm/AD728x90.js +25 -25
  174. package/dist/esm/ADFloatingFooter.js +21 -21
  175. package/dist/esm/ADFooter.js +4 -4
  176. package/dist/esm/ADGutter.js +21 -21
  177. package/dist/esm/{ADInfeed-d767ebe2.js → ADInfeed-0a55cd2d.js} +4 -4
  178. package/dist/esm/ADSkyscraper.js +21 -21
  179. package/dist/esm/ADSponsoredResources.js +21 -21
  180. package/dist/esm/ADWebcast.js +21 -21
  181. package/dist/esm/ADWelcome.js +18 -18
  182. package/dist/esm/{ADlgInfeed-cee95aa2.js → ADlgInfeed-013e1f4a.js} +4 -4
  183. package/dist/esm/AccordionPanel.js +6 -6
  184. package/dist/esm/AdSlot.js +20 -20
  185. package/dist/esm/AdSlotsProvider.js +14 -906
  186. package/dist/esm/AlgoliaSearch.js +717 -534
  187. package/dist/esm/AlphabeticList.js +8 -8
  188. package/dist/esm/ArticleCarousel.js +13 -13
  189. package/dist/esm/ArticleProgramLandingPage.js +48 -48
  190. package/dist/esm/ArticleSeriesLandingPage.js +30 -30
  191. package/dist/esm/ArticleSeriesListing.js +31 -31
  192. package/dist/esm/Auth.js +591 -1419
  193. package/dist/esm/AuthWrapper.js +1609 -392
  194. package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-11adff02.js} +1 -1
  195. package/dist/esm/Beam.js +6 -6
  196. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-1e73bd2c.js} +34 -34
  197. package/dist/esm/Breadcrumbs.js +5 -5
  198. package/dist/esm/CMEDeck.js +22 -22
  199. package/dist/esm/Column2.js +14 -14
  200. package/dist/esm/Column3.js +31 -31
  201. package/dist/esm/ConferenceArticleCard.js +25 -25
  202. package/dist/esm/ContentCardPaginated.js +36 -35
  203. package/dist/esm/DeckContent.js +41 -41
  204. package/dist/esm/DeckQueue.js +31 -31
  205. package/dist/esm/DeckQueuePaginated.js +32 -31
  206. package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
  207. package/dist/esm/EventsDeck.js +41 -41
  208. package/dist/esm/ExternalResources.js +45 -45
  209. package/dist/esm/Feature.js +7 -7
  210. package/dist/esm/ForbesHero.js +10 -10
  211. package/dist/esm/GridContent.js +47 -47
  212. package/dist/esm/GridContentPaginated.js +46 -45
  213. package/dist/esm/GridHero.js +11 -11
  214. package/dist/esm/GroupDeck.js +12 -12
  215. package/dist/esm/HamMagazine.js +35 -35
  216. package/dist/esm/Hero.js +7 -7
  217. package/dist/esm/HighlightenVideo.js +2 -2
  218. package/dist/esm/HorizontalArticleListing.js +46 -46
  219. package/dist/esm/HorizontalHero.js +8 -8
  220. package/dist/esm/{ImageSlider-a3154b97.js → ImageSlider-de7846ea.js} +141 -1317
  221. package/dist/esm/IssueContentDeck.js +11 -11
  222. package/dist/esm/IssueDeck.js +14 -14
  223. package/dist/esm/IssueLanding.js +82 -82
  224. package/dist/esm/KMTracker.js +15 -15
  225. package/dist/esm/LeftNav.js +20 -20
  226. package/dist/esm/MasterDeck.js +40 -40
  227. package/dist/esm/MasterDeckPaginated.js +39 -38
  228. package/dist/esm/{MediaSeriesCard-1dd7eae8.js → MediaSeriesCard-51ebf1c0.js} +694 -602
  229. package/dist/esm/MediaSeriesLanding.js +58 -58
  230. package/dist/esm/MediaSeriesLandingPaginated.js +62 -61
  231. package/dist/esm/NavDvm.js +11 -11
  232. package/dist/esm/NavMagazine.js +39 -39
  233. package/dist/esm/NavNative.js +37 -37
  234. package/dist/esm/OncliveHero.js +7 -8
  235. package/dist/esm/OncliveLargeHero.js +11 -11
  236. package/dist/esm/PageFilter.js +4 -4
  237. package/dist/esm/Pagination-c0db7ca1.js +46 -0
  238. package/dist/esm/PartnerDetailListing.js +63 -62
  239. package/dist/esm/PartnerDetailListingPaginated.js +62 -60
  240. package/dist/esm/PdfDownload.js +2 -2
  241. package/dist/esm/PopUpModal.js +4 -4
  242. package/dist/esm/PubSection.js +32 -32
  243. package/dist/esm/PubToc.js +6 -6
  244. package/dist/esm/PublicationDeck.js +10 -10
  245. package/dist/esm/{PublicationFeature-fa24dedb.js → PublicationFeature-d88e76b9.js} +2 -2
  246. package/dist/esm/PublicationLanding.js +56 -52
  247. package/dist/esm/QueueDeckExpanded.js +36 -36
  248. package/dist/esm/QueueDeckExpandedPaginated.js +36 -35
  249. package/dist/esm/RecentNews.js +4 -4
  250. package/dist/esm/RelatedContent.js +38 -38
  251. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  252. package/dist/esm/Schema.js +10 -10
  253. package/dist/esm/Search.js +5 -5
  254. package/dist/esm/Segment.js +4 -4
  255. package/dist/esm/SeriesListingDeck.js +18 -18
  256. package/dist/esm/{SeriesSlider-ce19fa25.js → SeriesSlider-45adb8dc.js} +14 -14
  257. package/dist/esm/SetCookie.js +1 -1
  258. package/dist/esm/SideFooter.js +15 -15
  259. package/dist/esm/{SocialSearchComponent-dca69151.js → SocialSearchComponent-8e0fcf66.js} +10 -10
  260. package/dist/esm/TaxonomyCard.js +12 -12
  261. package/dist/esm/TaxonomyDescription.js +44 -44
  262. package/dist/esm/TemplateNormal.js +46 -46
  263. package/dist/esm/ThumbnailCard.js +10 -10
  264. package/dist/esm/Ustream.js +12 -12
  265. package/dist/esm/VerticalHero.js +6 -6
  266. package/dist/esm/VideoProgramLandingPage.js +49 -49
  267. package/dist/esm/VideoSeriesCard.js +14 -14
  268. package/dist/esm/VideoSeriesFilter.js +7 -7
  269. package/dist/esm/VideoSeriesLandingPage.js +36 -36
  270. package/dist/esm/VideoSeriesListing.js +31 -31
  271. package/dist/esm/View.js +89 -90
  272. package/dist/esm/YahooHero.js +13 -13
  273. package/dist/esm/YoutubeGroup.js +21 -21
  274. package/dist/esm/{_is-array-4df618a6.js → _is-array-8d21b9e3.js} +6 -6
  275. package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-98db3b07.js} +7 -7
  276. package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
  277. package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-7cee6f84.js} +1 -1
  278. package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-2300e51b.js} +2 -2
  279. package/dist/esm/{asyncToGenerator-7bf8bc4d.js → asyncToGenerator-5ef104a7.js} +30 -30
  280. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
  281. package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-ea258bb1.js} +36 -36
  282. package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
  283. package/dist/esm/define-property-5f1bda73.js +18 -0
  284. package/dist/esm/defineProperty-23a8f8cd.js +68 -0
  285. package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8c30428f.js} +1 -1
  286. package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
  287. package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
  288. package/dist/esm/{extends-5b1796d4.js → extends-6d8e3924.js} +7 -7
  289. package/dist/esm/faundadb.js +5 -5
  290. package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
  291. package/dist/esm/getQuery.js +1 -1
  292. package/dist/esm/getRelatedArticle.js +11 -11
  293. package/dist/esm/getRootDocGroup.js +4 -4
  294. package/dist/esm/getSerializers.js +43 -43
  295. package/dist/esm/{getTargeting-277c801e.js → getTargeting-4061f839.js} +11 -11
  296. package/dist/esm/getTargeting.js +6 -6
  297. package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
  298. package/dist/esm/{index-73819142.js → index-3f5c03b2.js} +31 -25
  299. package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
  300. package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
  301. package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
  302. package/dist/esm/{index-d1476645.js → index-ca0c9ff5.js} +615 -599
  303. package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
  304. package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
  305. package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
  306. package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
  307. package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
  308. package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
  309. package/dist/esm/index.js +126 -122
  310. package/dist/esm/{inherits-2409637d.js → inherits-a6ba2ec4.js} +18 -18
  311. package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
  312. package/dist/esm/{keys-69989821.js → keys-31dcdb31.js} +6 -6
  313. package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
  314. package/dist/esm/main-1894c974.js +961 -0
  315. package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
  316. package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
  317. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
  318. package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-6ebcbfea.js} +12 -12
  319. package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
  320. package/dist/esm/stringify-2b084bee.js +15 -0
  321. package/dist/esm/timeDifferenceCalc.js +1 -1
  322. package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-f7074d7c.js} +7 -7
  323. package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
  324. package/dist/esm/typeof-2f07d0e8.js +30 -0
  325. package/dist/esm/{typeof-c05a82ba.js → typeof-e9fc0c5d.js} +35 -35
  326. package/dist/esm/urlFor.js +4 -4
  327. package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-d3714624.js} +4 -4
  328. package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
  329. package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-ab4dea5c.js} +2 -2
  330. package/package.json +112 -112
  331. package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
  332. package/dist/cjs/Pagination-90473595.js +0 -59
  333. package/dist/cjs/inherits-8d29278d.js +0 -110
  334. package/dist/cjs/main-02daeefe.js +0 -862
  335. package/dist/esm/Pagination-683fa8ef.js +0 -54
  336. package/dist/esm/define-property-6d26cb48.js +0 -18
  337. package/dist/esm/inherits-77d5e4fc.js +0 -101
  338. package/dist/esm/main-c0612122.js +0 -851
  339. package/dist/esm/stringify-70b72959.js +0 -15
package/dist/esm/Auth.js CHANGED
@@ -1,21 +1,22 @@
1
- import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
- import './core.get-iterator-method-86d4db69.js';
3
- import './_library-528f1934.js';
4
- import './_iter-detect-130ee549.js';
5
- import './_object-pie-33c40e79.js';
6
- import { _ as _extends } from './extends-5b1796d4.js';
7
- import './web.dom.iterable-f8f967cd.js';
8
- import React__default, { useEffect, useLayoutEffect, createContext, useContext, useRef, useDebugValue, useState, useCallback, useMemo } from 'react';
1
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
2
+ import { _ as _JSON$stringify } from './stringify-2b084bee.js';
3
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
+ import React__default, { useEffect, useState } from 'react';
9
5
  import Router from 'next/router';
10
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
11
- import { _ as _JSON$stringify } from './stringify-70b72959.js';
12
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
13
- import { Col, Form, Button, Spinner } from 'react-bootstrap';
14
- import { u as util } from './util-7700fc59.js';
6
+ import { _ as _extends } from './extends-6d8e3924.js';
7
+ import { Form, Col, Button, Spinner } from 'react-bootstrap';
8
+ import useSWR from 'swr';
15
9
  import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
16
10
  import Local from 'passport-local';
17
11
  import mysql from 'mysql';
18
- import { m as md5 } from './md5-9be0e905.js';
12
+ import { u as util } from './util-8ed16d48.js';
13
+ import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
+ import { m as md5 } from './md5-4e42248e.js';
15
+ import './core.get-iterator-method-ea258bb1.js';
16
+ import './web.dom.iterable-ab4dea5c.js';
17
+ import './_library-528f1934.js';
18
+ import './_iter-detect-98db3b07.js';
19
+ import './_object-pie-133f504a.js';
19
20
 
20
21
  var returnFormField = function returnFormField(_ref) {
21
22
  var name = _ref.name,
@@ -133,1056 +134,7 @@ var returnFormField = function returnFormField(_ref) {
133
134
  }
134
135
  };
135
136
 
136
- var has = Object.prototype.hasOwnProperty;
137
-
138
- function dequal(foo, bar) {
139
- var ctor, len;
140
- if (foo === bar) return true;
141
-
142
- if (foo && bar && (ctor=foo.constructor) === bar.constructor) {
143
- if (ctor === Date) return foo.getTime() === bar.getTime();
144
- if (ctor === RegExp) return foo.toString() === bar.toString();
145
-
146
- if (ctor === Array) {
147
- if ((len=foo.length) === bar.length) {
148
- while (len-- && dequal(foo[len], bar[len]));
149
- }
150
- return len === -1;
151
- }
152
-
153
- if (!ctor || typeof foo === 'object') {
154
- len = 0;
155
- for (ctor in foo) {
156
- if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
157
- if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
158
- }
159
- return Object.keys(bar).length === len;
160
- }
161
- }
162
-
163
- return foo !== foo && bar !== bar;
164
- }
165
-
166
- // use WeakMap to store the object->key mapping
167
- // so the objects can be garbage collected.
168
- // WeakMap uses a hashtable under the hood, so the lookup
169
- // complexity is almost O(1).
170
- var table = new WeakMap();
171
- // counter of the key
172
- var counter = 0;
173
- // hashes an array of objects and returns a string
174
- function hash(args) {
175
- if (!args.length)
176
- return '';
177
- var key = 'arg';
178
- for (var i = 0; i < args.length; ++i) {
179
- if (args[i] === null) {
180
- key += '@null';
181
- continue;
182
- }
183
- var _hash = void 0;
184
- if (typeof args[i] !== 'object' && typeof args[i] !== 'function') {
185
- // need to consider the case that args[i] is a string:
186
- // args[i] _hash
187
- // "undefined" -> '"undefined"'
188
- // undefined -> 'undefined'
189
- // 123 -> '123'
190
- // "null" -> '"null"'
191
- if (typeof args[i] === 'string') {
192
- _hash = '"' + args[i] + '"';
193
- }
194
- else {
195
- _hash = String(args[i]);
196
- }
197
- }
198
- else {
199
- if (!table.has(args[i])) {
200
- _hash = counter;
201
- table.set(args[i], counter++);
202
- }
203
- else {
204
- _hash = table.get(args[i]);
205
- }
206
- }
207
- key += '@' + _hash;
208
- }
209
- return key;
210
- }
211
-
212
- var Cache = /** @class */ (function () {
213
- function Cache(initialData) {
214
- if (initialData === void 0) { initialData = {}; }
215
- this.cache = new Map(Object.entries(initialData));
216
- this.subs = [];
217
- }
218
- Cache.prototype.get = function (key) {
219
- var _key = this.serializeKey(key)[0];
220
- return this.cache.get(_key);
221
- };
222
- Cache.prototype.set = function (key, value) {
223
- var _key = this.serializeKey(key)[0];
224
- this.cache.set(_key, value);
225
- this.notify();
226
- };
227
- Cache.prototype.keys = function () {
228
- return Array.from(this.cache.keys());
229
- };
230
- Cache.prototype.has = function (key) {
231
- var _key = this.serializeKey(key)[0];
232
- return this.cache.has(_key);
233
- };
234
- Cache.prototype.clear = function () {
235
- this.cache.clear();
236
- this.notify();
237
- };
238
- Cache.prototype.delete = function (key) {
239
- var _key = this.serializeKey(key)[0];
240
- this.cache.delete(_key);
241
- this.notify();
242
- };
243
- // TODO: introduce namespace for the cache
244
- Cache.prototype.serializeKey = function (key) {
245
- var args = null;
246
- if (typeof key === 'function') {
247
- try {
248
- key = key();
249
- }
250
- catch (err) {
251
- // dependencies not ready
252
- key = '';
253
- }
254
- }
255
- if (Array.isArray(key)) {
256
- // args array
257
- args = key;
258
- key = hash(key);
259
- }
260
- else {
261
- // convert null to ''
262
- key = String(key || '');
263
- }
264
- var errorKey = key ? 'err@' + key : '';
265
- var isValidatingKey = key ? 'validating@' + key : '';
266
- return [key, args, errorKey, isValidatingKey];
267
- };
268
- Cache.prototype.subscribe = function (listener) {
269
- var _this = this;
270
- if (typeof listener !== 'function') {
271
- throw new Error('Expected the listener to be a function.');
272
- }
273
- var isSubscribed = true;
274
- this.subs.push(listener);
275
- return function () {
276
- if (!isSubscribed)
277
- return;
278
- isSubscribed = false;
279
- var index = _this.subs.indexOf(listener);
280
- if (index > -1) {
281
- _this.subs[index] = _this.subs[_this.subs.length - 1];
282
- _this.subs.length--;
283
- }
284
- };
285
- };
286
- // Notify Cache subscribers about a change in the cache
287
- Cache.prototype.notify = function () {
288
- for (var _i = 0, _a = this.subs; _i < _a.length; _i++) {
289
- var listener = _a[_i];
290
- listener();
291
- }
292
- };
293
- return Cache;
294
- }());
295
-
296
- /**
297
- * Due to bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,
298
- * it's not reliable to detect if the browser is currently online or offline
299
- * based on `navigator.onLine`.
300
- * As a work around, we always assume it's online on first load, and change
301
- * the status upon `online` or `offline` events.
302
- */
303
- var online = true;
304
- var isOnline = function () { return online; };
305
- var isDocumentVisible = function () {
306
- if (typeof document !== 'undefined' &&
307
- document.visibilityState !== undefined) {
308
- return document.visibilityState !== 'hidden';
309
- }
310
- // always assume it's visible
311
- return true;
312
- };
313
- var fetcher = function (url) { return fetch(url).then(function (res) { return res.json(); }); };
314
- var registerOnFocus = function (cb) {
315
- if (typeof window !== 'undefined' &&
316
- window.addEventListener !== undefined &&
317
- typeof document !== 'undefined' &&
318
- document.addEventListener !== undefined) {
319
- // focus revalidate
320
- document.addEventListener('visibilitychange', function () { return cb(); }, false);
321
- window.addEventListener('focus', function () { return cb(); }, false);
322
- }
323
- };
324
- var registerOnReconnect = function (cb) {
325
- if (typeof window !== 'undefined' && window.addEventListener !== undefined) {
326
- // reconnect revalidate
327
- window.addEventListener('online', function () {
328
- online = true;
329
- cb();
330
- }, false);
331
- // nothing to revalidate, just update the status
332
- window.addEventListener('offline', function () { return (online = false); }, false);
333
- }
334
- };
335
- var webPreset = {
336
- isOnline: isOnline,
337
- isDocumentVisible: isDocumentVisible,
338
- fetcher: fetcher,
339
- registerOnFocus: registerOnFocus,
340
- registerOnReconnect: registerOnReconnect
341
- };
342
-
343
- var __assign = (undefined && undefined.__assign) || function () {
344
- __assign = Object.assign || function(t) {
345
- for (var s, i = 1, n = arguments.length; i < n; i++) {
346
- s = arguments[i];
347
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
348
- t[p] = s[p];
349
- }
350
- return t;
351
- };
352
- return __assign.apply(this, arguments);
353
- };
354
- // cache
355
- var cache = new Cache();
356
- // error retry
357
- function onErrorRetry(_, __, config, revalidate, opts) {
358
- if (!config.isDocumentVisible()) {
359
- // if it's hidden, stop
360
- // it will auto revalidate when focus
361
- return;
362
- }
363
- if (typeof config.errorRetryCount === 'number' &&
364
- opts.retryCount > config.errorRetryCount) {
365
- return;
366
- }
367
- // exponential backoff
368
- var count = Math.min(opts.retryCount, 8);
369
- var timeout = ~~((Math.random() + 0.5) * (1 << count)) * config.errorRetryInterval;
370
- setTimeout(revalidate, timeout, opts);
371
- }
372
- // client side: need to adjust the config
373
- // based on the browser status
374
- // slow connection (<= 70Kbps)
375
- var slowConnection = typeof window !== 'undefined' &&
376
- // @ts-ignore
377
- navigator['connection'] &&
378
- // @ts-ignore
379
- ['slow-2g', '2g'].indexOf(navigator['connection'].effectiveType) !== -1;
380
- // config
381
- var defaultConfig = __assign({
382
- // events
383
- onLoadingSlow: function () { }, onSuccess: function () { }, onError: function () { }, onErrorRetry: onErrorRetry, errorRetryInterval: (slowConnection ? 10 : 5) * 1000, focusThrottleInterval: 5 * 1000, dedupingInterval: 2 * 1000, loadingTimeout: (slowConnection ? 5 : 3) * 1000, refreshInterval: 0, revalidateOnFocus: true, revalidateOnReconnect: true, refreshWhenHidden: false, refreshWhenOffline: false, shouldRetryOnError: true, suspense: false, compare: dequal, isPaused: function () { return false; } }, webPreset);
384
-
385
- var IS_SERVER = typeof window === 'undefined' ||
386
- // @ts-ignore
387
- !!(typeof Deno !== 'undefined' && Deno && Deno.version && Deno.version.deno);
388
- // polyfill for requestAnimationFrame
389
- var rAF = IS_SERVER
390
- ? null
391
- : window['requestAnimationFrame']
392
- ? function (f) { return window['requestAnimationFrame'](f); }
393
- : function (f) { return setTimeout(f, 1); };
394
- // React currently throws a warning when using useLayoutEffect on the server.
395
- // To get around it, we can conditionally useEffect on the server (no-op) and
396
- // useLayoutEffect in the browser.
397
- var useIsomorphicLayoutEffect = IS_SERVER ? useEffect : useLayoutEffect;
398
-
399
- var SWRConfigContext = createContext({});
400
- SWRConfigContext.displayName = 'SWRConfigContext';
401
-
402
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
403
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
404
- return new (P || (P = Promise))(function (resolve, reject) {
405
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
406
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
407
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
408
- step((generator = generator.apply(thisArg, _arguments || [])).next());
409
- });
410
- };
411
- var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
412
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
413
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
414
- function verb(n) { return function (v) { return step([n, v]); }; }
415
- function step(op) {
416
- if (f) throw new TypeError("Generator is already executing.");
417
- while (_) try {
418
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
419
- if (y = 0, t) op = [op[0] & 2, t.value];
420
- switch (op[0]) {
421
- case 0: case 1: t = op; break;
422
- case 4: _.label++; return { value: op[1], done: false };
423
- case 5: _.label++; y = op[1]; op = [0]; continue;
424
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
425
- default:
426
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
427
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
428
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
429
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
430
- if (t[2]) _.ops.pop();
431
- _.trys.pop(); continue;
432
- }
433
- op = body.call(thisArg, _);
434
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
435
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
436
- }
437
- };
438
- // global state managers
439
- var CONCURRENT_PROMISES = {};
440
- var CONCURRENT_PROMISES_TS = {};
441
- var FOCUS_REVALIDATORS = {};
442
- var RECONNECT_REVALIDATORS = {};
443
- var CACHE_REVALIDATORS = {};
444
- var MUTATION_TS = {};
445
- var MUTATION_END_TS = {};
446
- // generate strictly increasing timestamps
447
- var now = (function () {
448
- var ts = 0;
449
- return function () { return ++ts; };
450
- })();
451
- // setup DOM events listeners for `focus` and `reconnect` actions
452
- if (!IS_SERVER) {
453
- var revalidate_1 = function (revalidators) {
454
- if (!defaultConfig.isDocumentVisible() || !defaultConfig.isOnline())
455
- return;
456
- for (var key in revalidators) {
457
- if (revalidators[key][0])
458
- revalidators[key][0]();
459
- }
460
- };
461
- if (typeof defaultConfig.registerOnFocus === 'function') {
462
- defaultConfig.registerOnFocus(function () { return revalidate_1(FOCUS_REVALIDATORS); });
463
- }
464
- if (typeof defaultConfig.registerOnReconnect === 'function') {
465
- defaultConfig.registerOnReconnect(function () { return revalidate_1(RECONNECT_REVALIDATORS); });
466
- }
467
- }
468
- var trigger = function (_key, shouldRevalidate) {
469
- if (shouldRevalidate === void 0) { shouldRevalidate = true; }
470
- // we are ignoring the second argument which correspond to the arguments
471
- // the fetcher will receive when key is an array
472
- var _a = cache.serializeKey(_key), key = _a[0], keyErr = _a[2], keyValidating = _a[3];
473
- if (!key)
474
- return Promise.resolve();
475
- var updaters = CACHE_REVALIDATORS[key];
476
- if (key && updaters) {
477
- var currentData = cache.get(key);
478
- var currentError = cache.get(keyErr);
479
- var currentIsValidating = cache.get(keyValidating);
480
- var promises = [];
481
- for (var i = 0; i < updaters.length; ++i) {
482
- promises.push(updaters[i](shouldRevalidate, currentData, currentError, currentIsValidating, i > 0));
483
- }
484
- // return new updated value
485
- return Promise.all(promises).then(function () { return cache.get(key); });
486
- }
487
- return Promise.resolve(cache.get(key));
488
- };
489
- var broadcastState = function (key, data, error, isValidating) {
490
- var updaters = CACHE_REVALIDATORS[key];
491
- if (key && updaters) {
492
- for (var i = 0; i < updaters.length; ++i) {
493
- updaters[i](false, data, error, isValidating);
494
- }
495
- }
496
- };
497
- var mutate = function (_key, _data, shouldRevalidate) {
498
- if (shouldRevalidate === void 0) { shouldRevalidate = true; }
499
- return __awaiter(void 0, void 0, void 0, function () {
500
- var _a, key, keyErr, beforeMutationTs, beforeConcurrentPromisesTs, data, error, isAsyncMutation, err_1, shouldAbort, updaters, promises, i;
501
- return __generator(this, function (_b) {
502
- switch (_b.label) {
503
- case 0:
504
- _a = cache.serializeKey(_key), key = _a[0], keyErr = _a[2];
505
- if (!key)
506
- return [2 /*return*/];
507
- // if there is no new data to update, let's just revalidate the key
508
- if (typeof _data === 'undefined')
509
- return [2 /*return*/, trigger(_key, shouldRevalidate)
510
- // update global timestamps
511
- ];
512
- // update global timestamps
513
- MUTATION_TS[key] = now() - 1;
514
- MUTATION_END_TS[key] = 0;
515
- beforeMutationTs = MUTATION_TS[key];
516
- beforeConcurrentPromisesTs = CONCURRENT_PROMISES_TS[key];
517
- isAsyncMutation = false;
518
- if (_data && typeof _data === 'function') {
519
- // `_data` is a function, call it passing current cache value
520
- try {
521
- _data = _data(cache.get(key));
522
- }
523
- catch (err) {
524
- // if `_data` function throws an error synchronously, it shouldn't be cached
525
- _data = undefined;
526
- error = err;
527
- }
528
- }
529
- if (!(_data && typeof _data.then === 'function')) return [3 /*break*/, 5];
530
- // `_data` is a promise
531
- isAsyncMutation = true;
532
- _b.label = 1;
533
- case 1:
534
- _b.trys.push([1, 3, , 4]);
535
- return [4 /*yield*/, _data];
536
- case 2:
537
- data = _b.sent();
538
- return [3 /*break*/, 4];
539
- case 3:
540
- err_1 = _b.sent();
541
- error = err_1;
542
- return [3 /*break*/, 4];
543
- case 4: return [3 /*break*/, 6];
544
- case 5:
545
- data = _data;
546
- _b.label = 6;
547
- case 6:
548
- shouldAbort = function () {
549
- // check if other mutations have occurred since we've started this mutation
550
- if (beforeMutationTs !== MUTATION_TS[key] ||
551
- beforeConcurrentPromisesTs !== CONCURRENT_PROMISES_TS[key]) {
552
- if (error)
553
- throw error;
554
- return true;
555
- }
556
- };
557
- // if there's a race we don't update cache or broadcast change, just return the data
558
- if (shouldAbort())
559
- return [2 /*return*/, data];
560
- if (typeof data !== 'undefined') {
561
- // update cached data
562
- cache.set(key, data);
563
- }
564
- // always update or reset the error
565
- cache.set(keyErr, error);
566
- // reset the timestamp to mark the mutation has ended
567
- MUTATION_END_TS[key] = now() - 1;
568
- if (!isAsyncMutation) {
569
- // we skip broadcasting if there's another mutation happened synchronously
570
- if (shouldAbort())
571
- return [2 /*return*/, data];
572
- }
573
- updaters = CACHE_REVALIDATORS[key];
574
- if (updaters) {
575
- promises = [];
576
- for (i = 0; i < updaters.length; ++i) {
577
- promises.push(updaters[i](!!shouldRevalidate, data, error, undefined, i > 0));
578
- }
579
- // return new updated value
580
- return [2 /*return*/, Promise.all(promises).then(function () {
581
- if (error)
582
- throw error;
583
- return cache.get(key);
584
- })];
585
- }
586
- // throw error or return data to be used by caller of mutate
587
- if (error)
588
- throw error;
589
- return [2 /*return*/, data];
590
- }
591
- });
592
- });
593
- };
594
- function useSWR() {
595
- var _this = this;
596
- var args = [];
597
- for (var _i = 0; _i < arguments.length; _i++) {
598
- args[_i] = arguments[_i];
599
- }
600
- var _key = args[0];
601
- var config = Object.assign({}, defaultConfig, useContext(SWRConfigContext), args.length > 2
602
- ? args[2]
603
- : args.length === 2 && typeof args[1] === 'object'
604
- ? args[1]
605
- : {});
606
- // in typescript args.length > 2 is not same as args.lenth === 3
607
- // we do a safe type assertion here
608
- // args.length === 3
609
- var fn = (args.length > 2
610
- ? args[1]
611
- : args.length === 2 && typeof args[1] === 'function'
612
- ? args[1]
613
- : /**
614
- pass fn as null will disable revalidate
615
- https://paco.sh/blog/shared-hook-state-with-swr
616
- */
617
- args[1] === null
618
- ? args[1]
619
- : config.fetcher);
620
- // we assume `key` as the identifier of the request
621
- // `key` can change but `fn` shouldn't
622
- // (because `revalidate` only depends on `key`)
623
- // `keyErr` is the cache key for error objects
624
- var _a = cache.serializeKey(_key), key = _a[0], fnArgs = _a[1], keyErr = _a[2], keyValidating = _a[3];
625
- var configRef = useRef(config);
626
- useIsomorphicLayoutEffect(function () {
627
- configRef.current = config;
628
- });
629
- var willRevalidateOnMount = function () {
630
- return (config.revalidateOnMount ||
631
- (!config.initialData && config.revalidateOnMount === undefined));
632
- };
633
- var resolveData = function () {
634
- var cachedData = cache.get(key);
635
- return typeof cachedData === 'undefined' ? config.initialData : cachedData;
636
- };
637
- var resolveIsValidating = function () {
638
- return !!cache.get(keyValidating) || (key && willRevalidateOnMount());
639
- };
640
- var initialData = resolveData();
641
- var initialError = cache.get(keyErr);
642
- var initialIsValidating = resolveIsValidating();
643
- // if a state is accessed (data, error or isValidating),
644
- // we add the state to dependencies so if the state is
645
- // updated in the future, we can trigger a rerender
646
- var stateDependencies = useRef({
647
- data: false,
648
- error: false,
649
- isValidating: false
650
- });
651
- var stateRef = useRef({
652
- data: initialData,
653
- error: initialError,
654
- isValidating: initialIsValidating
655
- });
656
- // display the data label in the React DevTools next to SWR hooks
657
- useDebugValue(stateRef.current.data);
658
- var rerender = useState({})[1];
659
- var dispatch = useCallback(function (payload) {
660
- var shouldUpdateState = false;
661
- for (var k in payload) {
662
- // @ts-ignore
663
- if (stateRef.current[k] === payload[k]) {
664
- continue;
665
- }
666
- // @ts-ignore
667
- stateRef.current[k] = payload[k];
668
- // @ts-ignore
669
- if (stateDependencies.current[k]) {
670
- shouldUpdateState = true;
671
- }
672
- }
673
- if (shouldUpdateState) {
674
- // if component is unmounted, should skip rerender
675
- // if component is not mounted, should skip rerender
676
- if (unmountedRef.current || !initialMountedRef.current)
677
- return;
678
- rerender({});
679
- }
680
- },
681
- // config.suspense isn't allowed to change during the lifecycle
682
- // eslint-disable-next-line react-hooks/exhaustive-deps
683
- []);
684
- // error ref inside revalidate (is last request errored?)
685
- var unmountedRef = useRef(false);
686
- var keyRef = useRef(key);
687
- // check if component is mounted in suspense mode
688
- var initialMountedRef = useRef(false);
689
- // do unmount check for callbacks
690
- var eventsCallback = useCallback(function (event) {
691
- var _a;
692
- var params = [];
693
- for (var _i = 1; _i < arguments.length; _i++) {
694
- params[_i - 1] = arguments[_i];
695
- }
696
- if (unmountedRef.current)
697
- return;
698
- if (!initialMountedRef.current)
699
- return;
700
- if (key !== keyRef.current)
701
- return;
702
- // @ts-ignore
703
- (_a = configRef.current)[event].apply(_a, params);
704
- }, [key]);
705
- var boundMutate = useCallback(function (data, shouldRevalidate) {
706
- return mutate(keyRef.current, data, shouldRevalidate);
707
- }, []);
708
- var addRevalidator = function (revalidators, callback) {
709
- if (!revalidators[key]) {
710
- revalidators[key] = [callback];
711
- }
712
- else {
713
- revalidators[key].push(callback);
714
- }
715
- return function () {
716
- var keyedRevalidators = revalidators[key];
717
- var index = keyedRevalidators.indexOf(callback);
718
- if (index >= 0) {
719
- // O(1): faster than splice
720
- keyedRevalidators[index] =
721
- keyedRevalidators[keyedRevalidators.length - 1];
722
- keyedRevalidators.pop();
723
- }
724
- };
725
- };
726
- // start a revalidation
727
- var revalidate = useCallback(function (revalidateOpts) {
728
- if (revalidateOpts === void 0) { revalidateOpts = {}; }
729
- return __awaiter(_this, void 0, void 0, function () {
730
- var _a, retryCount, _b, dedupe, loading, shouldDeduping, newData, startAt, newState, err_2;
731
- return __generator(this, function (_c) {
732
- switch (_c.label) {
733
- case 0:
734
- if (!key || !fn)
735
- return [2 /*return*/, false];
736
- if (unmountedRef.current)
737
- return [2 /*return*/, false];
738
- if (configRef.current.isPaused())
739
- return [2 /*return*/, false];
740
- _a = revalidateOpts.retryCount, retryCount = _a === void 0 ? 0 : _a, _b = revalidateOpts.dedupe, dedupe = _b === void 0 ? false : _b;
741
- loading = true;
742
- shouldDeduping = typeof CONCURRENT_PROMISES[key] !== 'undefined' && dedupe;
743
- _c.label = 1;
744
- case 1:
745
- _c.trys.push([1, 6, , 7]);
746
- dispatch({
747
- isValidating: true
748
- });
749
- cache.set(keyValidating, true);
750
- if (!shouldDeduping) {
751
- // also update other hooks
752
- broadcastState(key, stateRef.current.data, stateRef.current.error, true);
753
- }
754
- newData = void 0;
755
- startAt = void 0;
756
- if (!shouldDeduping) return [3 /*break*/, 3];
757
- // there's already an ongoing request,
758
- // this one needs to be deduplicated.
759
- startAt = CONCURRENT_PROMISES_TS[key];
760
- return [4 /*yield*/, CONCURRENT_PROMISES[key]];
761
- case 2:
762
- newData = _c.sent();
763
- return [3 /*break*/, 5];
764
- case 3:
765
- // if no cache being rendered currently (it shows a blank page),
766
- // we trigger the loading slow event.
767
- if (config.loadingTimeout && !cache.get(key)) {
768
- setTimeout(function () {
769
- if (loading)
770
- eventsCallback('onLoadingSlow', key, config);
771
- }, config.loadingTimeout);
772
- }
773
- if (fnArgs !== null) {
774
- CONCURRENT_PROMISES[key] = fn.apply(void 0, fnArgs);
775
- }
776
- else {
777
- CONCURRENT_PROMISES[key] = fn(key);
778
- }
779
- CONCURRENT_PROMISES_TS[key] = startAt = now();
780
- return [4 /*yield*/, CONCURRENT_PROMISES[key]];
781
- case 4:
782
- newData = _c.sent();
783
- setTimeout(function () {
784
- delete CONCURRENT_PROMISES[key];
785
- delete CONCURRENT_PROMISES_TS[key];
786
- }, config.dedupingInterval);
787
- // trigger the success event,
788
- // only do this for the original request.
789
- eventsCallback('onSuccess', newData, key, config);
790
- _c.label = 5;
791
- case 5:
792
- // if there're other ongoing request(s), started after the current one,
793
- // we need to ignore the current one to avoid possible race conditions:
794
- // req1------------------>res1 (current one)
795
- // req2---------------->res2
796
- // the request that fired later will always be kept.
797
- if (CONCURRENT_PROMISES_TS[key] > startAt) {
798
- return [2 /*return*/, false];
799
- }
800
- // if there're other mutations(s), overlapped with the current revalidation:
801
- // case 1:
802
- // req------------------>res
803
- // mutate------>end
804
- // case 2:
805
- // req------------>res
806
- // mutate------>end
807
- // case 3:
808
- // req------------------>res
809
- // mutate-------...---------->
810
- // we have to ignore the revalidation result (res) because it's no longer fresh.
811
- // meanwhile, a new revalidation should be triggered when the mutation ends.
812
- if (MUTATION_TS[key] &&
813
- // case 1
814
- (startAt <= MUTATION_TS[key] ||
815
- // case 2
816
- startAt <= MUTATION_END_TS[key] ||
817
- // case 3
818
- MUTATION_END_TS[key] === 0)) {
819
- dispatch({ isValidating: false });
820
- return [2 /*return*/, false];
821
- }
822
- cache.set(keyErr, undefined);
823
- cache.set(keyValidating, false);
824
- newState = {
825
- isValidating: false
826
- };
827
- if (typeof stateRef.current.error !== 'undefined') {
828
- // we don't have an error
829
- newState.error = undefined;
830
- }
831
- if (!config.compare(stateRef.current.data, newData)) {
832
- // deep compare to avoid extra re-render
833
- // data changed
834
- newState.data = newData;
835
- }
836
- if (!config.compare(cache.get(key), newData)) {
837
- cache.set(key, newData);
838
- }
839
- // merge the new state
840
- dispatch(newState);
841
- if (!shouldDeduping) {
842
- // also update other hooks
843
- broadcastState(key, newData, newState.error, false);
844
- }
845
- return [3 /*break*/, 7];
846
- case 6:
847
- err_2 = _c.sent();
848
- delete CONCURRENT_PROMISES[key];
849
- delete CONCURRENT_PROMISES_TS[key];
850
- if (configRef.current.isPaused()) {
851
- dispatch({
852
- isValidating: false
853
- });
854
- return [2 /*return*/, false];
855
- }
856
- cache.set(keyErr, err_2);
857
- // get a new error
858
- // don't use deep equal for errors
859
- if (stateRef.current.error !== err_2) {
860
- // we keep the stale data
861
- dispatch({
862
- isValidating: false,
863
- error: err_2
864
- });
865
- if (!shouldDeduping) {
866
- // also broadcast to update other hooks
867
- broadcastState(key, undefined, err_2, false);
868
- }
869
- }
870
- // events and retry
871
- eventsCallback('onError', err_2, key, config);
872
- if (config.shouldRetryOnError) {
873
- // when retrying, we always enable deduping
874
- eventsCallback('onErrorRetry', err_2, key, config, revalidate, {
875
- retryCount: retryCount + 1,
876
- dedupe: true
877
- });
878
- }
879
- return [3 /*break*/, 7];
880
- case 7:
881
- loading = false;
882
- return [2 /*return*/, true];
883
- }
884
- });
885
- });
886
- },
887
- // dispatch is immutable, and `eventsCallback`, `fnArgs`, `keyErr`, and `keyValidating` are based on `key`,
888
- // so we can them from the deps array.
889
- //
890
- // FIXME:
891
- // `fn` and `config` might be changed during the lifecycle,
892
- // but they might be changed every render like this.
893
- // useSWR('key', () => fetch('/api/'), { suspense: true })
894
- // So we omit the values from the deps array
895
- // even though it might cause unexpected behaviors.
896
- // eslint-disable-next-line react-hooks/exhaustive-deps
897
- [key]);
898
- // mounted (client side rendering)
899
- useIsomorphicLayoutEffect(function () {
900
- if (!key)
901
- return undefined;
902
- // after `key` updates, we need to mark it as mounted
903
- unmountedRef.current = false;
904
- var isUpdating = initialMountedRef.current;
905
- initialMountedRef.current = true;
906
- // after the component is mounted (hydrated),
907
- // we need to update the data from the cache
908
- // and trigger a revalidation
909
- var currentHookData = stateRef.current.data;
910
- var latestKeyedData = resolveData();
911
- // update the state if the key changed (not the inital render) or cache updated
912
- keyRef.current = key;
913
- if (!config.compare(currentHookData, latestKeyedData)) {
914
- dispatch({ data: latestKeyedData });
915
- }
916
- // revalidate with deduping
917
- var softRevalidate = function () { return revalidate({ dedupe: true }); };
918
- // trigger a revalidation
919
- if (isUpdating || willRevalidateOnMount()) {
920
- if (typeof latestKeyedData !== 'undefined' && !IS_SERVER) {
921
- // delay revalidate if there's cache
922
- // to not block the rendering
923
- // @ts-ignore it's safe to use requestAnimationFrame in browser
924
- rAF(softRevalidate);
925
- }
926
- else {
927
- softRevalidate();
928
- }
929
- }
930
- var pending = false;
931
- var onFocus = function () {
932
- if (pending || !configRef.current.revalidateOnFocus)
933
- return;
934
- pending = true;
935
- softRevalidate();
936
- setTimeout(function () { return (pending = false); }, configRef.current.focusThrottleInterval);
937
- };
938
- var onReconnect = function () {
939
- if (configRef.current.revalidateOnReconnect) {
940
- softRevalidate();
941
- }
942
- };
943
- // register global cache update listener
944
- var onUpdate = function (shouldRevalidate, updatedData, updatedError, updatedIsValidating, dedupe) {
945
- if (shouldRevalidate === void 0) { shouldRevalidate = true; }
946
- if (dedupe === void 0) { dedupe = true; }
947
- // update hook state
948
- var newState = {};
949
- var needUpdate = false;
950
- if (typeof updatedData !== 'undefined' &&
951
- !config.compare(stateRef.current.data, updatedData)) {
952
- newState.data = updatedData;
953
- needUpdate = true;
954
- }
955
- // always update error
956
- // because it can be `undefined`
957
- if (stateRef.current.error !== updatedError) {
958
- newState.error = updatedError;
959
- needUpdate = true;
960
- }
961
- if (typeof updatedIsValidating !== 'undefined' &&
962
- stateRef.current.isValidating !== updatedIsValidating) {
963
- newState.isValidating = updatedIsValidating;
964
- needUpdate = true;
965
- }
966
- if (needUpdate) {
967
- dispatch(newState);
968
- }
969
- if (shouldRevalidate) {
970
- if (dedupe) {
971
- return softRevalidate();
972
- }
973
- else {
974
- return revalidate();
975
- }
976
- }
977
- return false;
978
- };
979
- var unsubFocus = addRevalidator(FOCUS_REVALIDATORS, onFocus);
980
- var unsubReconnect = addRevalidator(RECONNECT_REVALIDATORS, onReconnect);
981
- var unsubUpdate = addRevalidator(CACHE_REVALIDATORS, onUpdate);
982
- return function () {
983
- // cleanup
984
- dispatch = function () { return null; };
985
- // mark it as unmounted
986
- unmountedRef.current = true;
987
- unsubFocus();
988
- unsubReconnect();
989
- unsubUpdate();
990
- };
991
- }, [key, revalidate]);
992
- useIsomorphicLayoutEffect(function () {
993
- var timer = null;
994
- var tick = function () { return __awaiter(_this, void 0, void 0, function () {
995
- return __generator(this, function (_a) {
996
- switch (_a.label) {
997
- case 0:
998
- if (!(!stateRef.current.error &&
999
- (configRef.current.refreshWhenHidden ||
1000
- configRef.current.isDocumentVisible()) &&
1001
- (configRef.current.refreshWhenOffline || configRef.current.isOnline()))) return [3 /*break*/, 2];
1002
- // only revalidate when the page is visible
1003
- // if API request errored, we stop polling in this round
1004
- // and let the error retry function handle it
1005
- return [4 /*yield*/, revalidate({ dedupe: true })];
1006
- case 1:
1007
- // only revalidate when the page is visible
1008
- // if API request errored, we stop polling in this round
1009
- // and let the error retry function handle it
1010
- _a.sent();
1011
- _a.label = 2;
1012
- case 2:
1013
- // Read the latest refreshInterval
1014
- if (configRef.current.refreshInterval && timer) {
1015
- timer = setTimeout(tick, configRef.current.refreshInterval);
1016
- }
1017
- return [2 /*return*/];
1018
- }
1019
- });
1020
- }); };
1021
- if (configRef.current.refreshInterval) {
1022
- timer = setTimeout(tick, configRef.current.refreshInterval);
1023
- }
1024
- return function () {
1025
- if (timer) {
1026
- clearTimeout(timer);
1027
- timer = null;
1028
- }
1029
- };
1030
- }, [
1031
- config.refreshInterval,
1032
- config.refreshWhenHidden,
1033
- config.refreshWhenOffline,
1034
- revalidate
1035
- ]);
1036
- // suspense
1037
- var latestData;
1038
- var latestError;
1039
- if (config.suspense) {
1040
- // in suspense mode, we can't return empty state
1041
- // (it should be suspended)
1042
- // try to get data and error from cache
1043
- latestData = cache.get(key);
1044
- latestError = cache.get(keyErr);
1045
- if (typeof latestData === 'undefined') {
1046
- latestData = initialData;
1047
- }
1048
- if (typeof latestError === 'undefined') {
1049
- latestError = initialError;
1050
- }
1051
- if (typeof latestData === 'undefined' &&
1052
- typeof latestError === 'undefined') {
1053
- // need to start the request if it hasn't
1054
- if (!CONCURRENT_PROMISES[key]) {
1055
- // trigger revalidate immediately
1056
- // to get the promise
1057
- // in this revalidate, should not rerender
1058
- revalidate();
1059
- }
1060
- if (CONCURRENT_PROMISES[key] &&
1061
- typeof CONCURRENT_PROMISES[key].then === 'function') {
1062
- // if it is a promise
1063
- throw CONCURRENT_PROMISES[key];
1064
- }
1065
- // it's a value, return it directly (override)
1066
- latestData = CONCURRENT_PROMISES[key];
1067
- }
1068
- if (typeof latestData === 'undefined' && latestError) {
1069
- // in suspense mode, throw error if there's no content
1070
- throw latestError;
1071
- }
1072
- }
1073
- // define returned state
1074
- // can be memorized since the state is a ref
1075
- var memoizedState = useMemo(function () {
1076
- // revalidate will be deprecated in the 1.x release
1077
- // because mutate() covers the same use case of revalidate().
1078
- // This remains only for backward compatibility
1079
- var state = { revalidate: revalidate, mutate: boundMutate };
1080
- Object.defineProperties(state, {
1081
- error: {
1082
- // `key` might be changed in the upcoming hook re-render,
1083
- // but the previous state will stay
1084
- // so we need to match the latest key and data (fallback to `initialData`)
1085
- get: function () {
1086
- stateDependencies.current.error = true;
1087
- if (config.suspense) {
1088
- return latestError;
1089
- }
1090
- return keyRef.current === key ? stateRef.current.error : initialError;
1091
- },
1092
- enumerable: true
1093
- },
1094
- data: {
1095
- get: function () {
1096
- stateDependencies.current.data = true;
1097
- if (config.suspense) {
1098
- return latestData;
1099
- }
1100
- return keyRef.current === key ? stateRef.current.data : initialData;
1101
- },
1102
- enumerable: true
1103
- },
1104
- isValidating: {
1105
- get: function () {
1106
- stateDependencies.current.isValidating = true;
1107
- return key ? stateRef.current.isValidating : false;
1108
- },
1109
- enumerable: true
1110
- }
1111
- });
1112
- return state;
1113
- // `config.suspense` isn't allowed to change during the lifecycle.
1114
- // `boundMutate` is immutable, and the immutability of `revalidate` depends on `key`
1115
- // so we can omit them from the deps array,
1116
- // but we put it to enable react-hooks/exhaustive-deps rule.
1117
- // `initialData` and `initialError` are not initial values
1118
- // because they are changed during the lifecycle
1119
- // so we should add them in the deps array.
1120
- }, [
1121
- revalidate,
1122
- initialData,
1123
- initialError,
1124
- boundMutate,
1125
- key,
1126
- config.suspense,
1127
- latestError,
1128
- latestData
1129
- ]);
1130
- return memoizedState;
1131
- }
1132
- Object.defineProperty(SWRConfigContext.Provider, 'default', {
1133
- value: defaultConfig
1134
- });
1135
- var SWRConfig = SWRConfigContext.Provider;
1136
-
1137
- var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1138
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1139
- return new (P || (P = Promise))(function (resolve, reject) {
1140
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1141
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1142
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1143
- step((generator = generator.apply(thisArg, _arguments || [])).next());
1144
- });
1145
- };
1146
- var __generator$1 = (undefined && undefined.__generator) || function (thisArg, body) {
1147
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1148
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1149
- function verb(n) { return function (v) { return step([n, v]); }; }
1150
- function step(op) {
1151
- if (f) throw new TypeError("Generator is already executing.");
1152
- while (_) try {
1153
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1154
- if (y = 0, t) op = [op[0] & 2, t.value];
1155
- switch (op[0]) {
1156
- case 0: case 1: t = op; break;
1157
- case 4: _.label++; return { value: op[1], done: false };
1158
- case 5: _.label++; y = op[1]; op = [0]; continue;
1159
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
1160
- default:
1161
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1162
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1163
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1164
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1165
- if (t[2]) _.ops.pop();
1166
- _.trys.pop(); continue;
1167
- }
1168
- op = body.call(thisArg, _);
1169
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1170
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1171
- }
1172
- };
1173
- var __rest = (undefined && undefined.__rest) || function (s, e) {
1174
- var t = {};
1175
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1176
- t[p] = s[p];
1177
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1178
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1179
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1180
- t[p[i]] = s[p[i]];
1181
- }
1182
- return t;
1183
- };
1184
-
1185
- var _this = undefined;
137
+ var _this$4 = undefined;
1186
138
 
1187
139
  var dataHandler = function () {
1188
140
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
@@ -1248,7 +200,7 @@ var dataHandler = function () {
1248
200
  return _context.stop();
1249
201
  }
1250
202
  }
1251
- }, _callee, _this, [[0, 20]]);
203
+ }, _callee, _this$4, [[0, 20]]);
1252
204
  }));
1253
205
 
1254
206
  return function dataHandler(_x, _x2) {
@@ -1444,9 +396,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
1444
396
 
1445
397
  var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
1446
398
 
1447
- var _this$1 = undefined;
399
+ var _this$3 = undefined;
1448
400
 
1449
- var SignupForm = function SignupForm(props) {
401
+ var SignupForm$1 = function SignupForm(props) {
1450
402
  var handleSubmit = function () {
1451
403
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
1452
404
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -1607,7 +559,7 @@ var SignupForm = function SignupForm(props) {
1607
559
  return _context.stop();
1608
560
  }
1609
561
  }
1610
- }, _callee, _this$1);
562
+ }, _callee, _this$3);
1611
563
  }));
1612
564
 
1613
565
  return function loadInitData() {
@@ -1674,7 +626,7 @@ var SignupForm = function SignupForm(props) {
1674
626
  return _context2.stop();
1675
627
  }
1676
628
  }
1677
- }, _callee2, _this$1);
629
+ }, _callee2, _this$3);
1678
630
  }));
1679
631
 
1680
632
  return function handleOccupationChanged(_x) {
@@ -1824,7 +776,7 @@ var SignupForm = function SignupForm(props) {
1824
776
 
1825
777
  var _this$2 = undefined;
1826
778
 
1827
- var SignupForm$1 = function SignupForm(props) {
779
+ var SignupForm = function SignupForm(props) {
1828
780
  var handleSubmit = function () {
1829
781
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
1830
782
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -2359,10 +1311,10 @@ var iron = /*#__PURE__*/Object.freeze({
2359
1311
  getSession: getSession
2360
1312
  });
2361
1313
 
2362
- var toStr = Object.prototype.toString;
1314
+ var toStr$5 = Object.prototype.toString;
2363
1315
 
2364
1316
  var isArguments = function isArguments(value) {
2365
- var str = toStr.call(value);
1317
+ var str = toStr$5.call(value);
2366
1318
  var isArgs = str === '[object Arguments]';
2367
1319
  if (!isArgs) {
2368
1320
  isArgs = str !== '[object Array]' &&
@@ -2370,16 +1322,16 @@ var isArguments = function isArguments(value) {
2370
1322
  typeof value === 'object' &&
2371
1323
  typeof value.length === 'number' &&
2372
1324
  value.length >= 0 &&
2373
- toStr.call(value.callee) === '[object Function]';
1325
+ toStr$5.call(value.callee) === '[object Function]';
2374
1326
  }
2375
1327
  return isArgs;
2376
1328
  };
2377
1329
 
2378
- var keysShim;
1330
+ var keysShim$1;
2379
1331
  if (!Object.keys) {
2380
1332
  // modified from https://github.com/es-shims/es5-shim
2381
1333
  var has$1 = Object.prototype.hasOwnProperty;
2382
- var toStr$1 = Object.prototype.toString;
1334
+ var toStr$4 = Object.prototype.toString;
2383
1335
  var isArgs = isArguments; // eslint-disable-line global-require
2384
1336
  var isEnumerable = Object.prototype.propertyIsEnumerable;
2385
1337
  var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
@@ -2452,11 +1404,11 @@ if (!Object.keys) {
2452
1404
  }
2453
1405
  };
2454
1406
 
2455
- keysShim = function keys(object) {
1407
+ keysShim$1 = function keys(object) {
2456
1408
  var isObject = object !== null && typeof object === 'object';
2457
- var isFunction = toStr$1.call(object) === '[object Function]';
1409
+ var isFunction = toStr$4.call(object) === '[object Function]';
2458
1410
  var isArguments = isArgs(object);
2459
- var isString = isObject && toStr$1.call(object) === '[object String]';
1411
+ var isString = isObject && toStr$4.call(object) === '[object String]';
2460
1412
  var theKeys = [];
2461
1413
 
2462
1414
  if (!isObject && !isFunction && !isArguments) {
@@ -2494,17 +1446,17 @@ if (!Object.keys) {
2494
1446
  return theKeys;
2495
1447
  };
2496
1448
  }
2497
- var implementation = keysShim;
1449
+ var implementation$3 = keysShim$1;
2498
1450
 
2499
- var slice = Array.prototype.slice;
1451
+ var slice$1 = Array.prototype.slice;
2500
1452
 
2501
1453
 
2502
1454
  var origKeys = Object.keys;
2503
- var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
1455
+ var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
2504
1456
 
2505
1457
  var originalKeys = Object.keys;
2506
1458
 
2507
- keysShim$1.shim = function shimObjectKeys() {
1459
+ keysShim.shim = function shimObjectKeys() {
2508
1460
  if (Object.keys) {
2509
1461
  var keysWorksWithArguments = (function () {
2510
1462
  // Safari 5.0 bug
@@ -2514,27 +1466,27 @@ keysShim$1.shim = function shimObjectKeys() {
2514
1466
  if (!keysWorksWithArguments) {
2515
1467
  Object.keys = function keys(object) { // eslint-disable-line func-name-matching
2516
1468
  if (isArguments(object)) {
2517
- return originalKeys(slice.call(object));
1469
+ return originalKeys(slice$1.call(object));
2518
1470
  }
2519
1471
  return originalKeys(object);
2520
1472
  };
2521
1473
  }
2522
1474
  } else {
2523
- Object.keys = keysShim$1;
1475
+ Object.keys = keysShim;
2524
1476
  }
2525
- return Object.keys || keysShim$1;
1477
+ return Object.keys || keysShim;
2526
1478
  };
2527
1479
 
2528
- var objectKeys = keysShim$1;
1480
+ var objectKeys = keysShim;
2529
1481
 
2530
- var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1482
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
2531
1483
 
2532
- var toStr$2 = Object.prototype.toString;
1484
+ var toStr$3 = Object.prototype.toString;
2533
1485
  var concat = Array.prototype.concat;
2534
1486
  var origDefineProperty = Object.defineProperty;
2535
1487
 
2536
1488
  var isFunction = function (fn) {
2537
- return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
1489
+ return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
2538
1490
  };
2539
1491
 
2540
1492
  var arePropertyDescriptorsSupported = function () {
@@ -2571,7 +1523,7 @@ var defineProperty = function (object, name, value, predicate) {
2571
1523
  var defineProperties = function (object, map) {
2572
1524
  var predicates = arguments.length > 2 ? arguments[2] : {};
2573
1525
  var props = objectKeys(map);
2574
- if (hasSymbols) {
1526
+ if (hasSymbols$4) {
2575
1527
  props = concat.call(props, Object.getOwnPropertySymbols(map));
2576
1528
  }
2577
1529
  for (var i = 0; i < props.length; i += 1) {
@@ -2583,6 +1535,59 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
2583
1535
 
2584
1536
  var defineProperties_1 = defineProperties;
2585
1537
 
1538
+ /* eslint no-invalid-this: 1 */
1539
+
1540
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1541
+ var slice = Array.prototype.slice;
1542
+ var toStr$2 = Object.prototype.toString;
1543
+ var funcType = '[object Function]';
1544
+
1545
+ var implementation$2 = function bind(that) {
1546
+ var target = this;
1547
+ if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
1548
+ throw new TypeError(ERROR_MESSAGE + target);
1549
+ }
1550
+ var args = slice.call(arguments, 1);
1551
+
1552
+ var bound;
1553
+ var binder = function () {
1554
+ if (this instanceof bound) {
1555
+ var result = target.apply(
1556
+ this,
1557
+ args.concat(slice.call(arguments))
1558
+ );
1559
+ if (Object(result) === result) {
1560
+ return result;
1561
+ }
1562
+ return this;
1563
+ } else {
1564
+ return target.apply(
1565
+ that,
1566
+ args.concat(slice.call(arguments))
1567
+ );
1568
+ }
1569
+ };
1570
+
1571
+ var boundLength = Math.max(0, target.length - args.length);
1572
+ var boundArgs = [];
1573
+ for (var i = 0; i < boundLength; i++) {
1574
+ boundArgs.push('$' + i);
1575
+ }
1576
+
1577
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1578
+
1579
+ if (target.prototype) {
1580
+ var Empty = function Empty() {};
1581
+ Empty.prototype = target.prototype;
1582
+ bound.prototype = new Empty();
1583
+ Empty.prototype = null;
1584
+ }
1585
+
1586
+ return bound;
1587
+ };
1588
+
1589
+ var functionBind = Function.prototype.bind || implementation$2;
1590
+
2586
1591
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
2587
1592
  var shams = function hasSymbols() {
2588
1593
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -2606,7 +1611,7 @@ var shams = function hasSymbols() {
2606
1611
 
2607
1612
  var symVal = 42;
2608
1613
  obj[sym] = symVal;
2609
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1614
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
2610
1615
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
2611
1616
 
2612
1617
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -2624,10 +1629,10 @@ var shams = function hasSymbols() {
2624
1629
  return true;
2625
1630
  };
2626
1631
 
2627
- var origSymbol = commonjsGlobal.Symbol;
1632
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
2628
1633
 
2629
1634
 
2630
- var hasSymbols$1 = function hasNativeSymbols() {
1635
+ var hasSymbols$3 = function hasNativeSymbols() {
2631
1636
  if (typeof origSymbol !== 'function') { return false; }
2632
1637
  if (typeof Symbol !== 'function') { return false; }
2633
1638
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -2636,79 +1641,34 @@ var hasSymbols$1 = function hasNativeSymbols() {
2636
1641
  return shams();
2637
1642
  };
2638
1643
 
2639
- /* eslint no-invalid-this: 1 */
2640
-
2641
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
2642
- var slice$1 = Array.prototype.slice;
2643
- var toStr$3 = Object.prototype.toString;
2644
- var funcType = '[object Function]';
2645
-
2646
- var implementation$1 = function bind(that) {
2647
- var target = this;
2648
- if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
2649
- throw new TypeError(ERROR_MESSAGE + target);
2650
- }
2651
- var args = slice$1.call(arguments, 1);
2652
-
2653
- var bound;
2654
- var binder = function () {
2655
- if (this instanceof bound) {
2656
- var result = target.apply(
2657
- this,
2658
- args.concat(slice$1.call(arguments))
2659
- );
2660
- if (Object(result) === result) {
2661
- return result;
2662
- }
2663
- return this;
2664
- } else {
2665
- return target.apply(
2666
- that,
2667
- args.concat(slice$1.call(arguments))
2668
- );
2669
- }
2670
- };
2671
-
2672
- var boundLength = Math.max(0, target.length - args.length);
2673
- var boundArgs = [];
2674
- for (var i = 0; i < boundLength; i++) {
2675
- boundArgs.push('$' + i);
2676
- }
1644
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2677
1645
 
2678
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1646
+ var undefined$1;
2679
1647
 
2680
- if (target.prototype) {
2681
- var Empty = function Empty() {};
2682
- Empty.prototype = target.prototype;
2683
- bound.prototype = new Empty();
2684
- Empty.prototype = null;
2685
- }
1648
+ var $SyntaxError$1 = SyntaxError;
1649
+ var $Function = Function;
1650
+ var $TypeError$5 = TypeError;
2686
1651
 
2687
- return bound;
1652
+ // eslint-disable-next-line consistent-return
1653
+ var getEvalledConstructor = function (expressionSyntax) {
1654
+ try {
1655
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1656
+ } catch (e) {}
2688
1657
  };
2689
1658
 
2690
- var functionBind = Function.prototype.bind || implementation$1;
2691
-
2692
- /* globals
2693
- Atomics,
2694
- SharedArrayBuffer,
2695
- */
2696
-
2697
- var undefined$1;
2698
-
2699
- var $TypeError = TypeError;
2700
-
2701
- var $gOPD = Object.getOwnPropertyDescriptor;
2702
- if ($gOPD) {
1659
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
1660
+ if ($gOPD$2) {
2703
1661
  try {
2704
- $gOPD({}, '');
1662
+ $gOPD$2({}, '');
2705
1663
  } catch (e) {
2706
- $gOPD = null; // this is IE 8, which has a broken gOPD
1664
+ $gOPD$2 = null; // this is IE 8, which has a broken gOPD
2707
1665
  }
2708
1666
  }
2709
1667
 
2710
- var throwTypeError = function () { throw new $TypeError(); };
2711
- var ThrowTypeError = $gOPD
1668
+ var throwTypeError = function () {
1669
+ throw new $TypeError$5();
1670
+ };
1671
+ var ThrowTypeError = $gOPD$2
2712
1672
  ? (function () {
2713
1673
  try {
2714
1674
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -2717,7 +1677,7 @@ var ThrowTypeError = $gOPD
2717
1677
  } catch (calleeThrows) {
2718
1678
  try {
2719
1679
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2720
- return $gOPD(arguments, 'callee').get;
1680
+ return $gOPD$2(arguments, 'callee').get;
2721
1681
  } catch (gOPDthrows) {
2722
1682
  return throwTypeError;
2723
1683
  }
@@ -2725,206 +1685,354 @@ var ThrowTypeError = $gOPD
2725
1685
  }())
2726
1686
  : throwTypeError;
2727
1687
 
2728
- var hasSymbols$2 = hasSymbols$1();
1688
+ var hasSymbols$2 = hasSymbols$3();
2729
1689
 
2730
1690
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2731
- var generatorFunction = undefined$1;
2732
- var asyncFunction = undefined$1;
2733
- var asyncGenFunction = undefined$1;
1691
+
1692
+ var needsEval = {};
2734
1693
 
2735
1694
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
2736
1695
 
2737
1696
  var INTRINSICS = {
1697
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
2738
1698
  '%Array%': Array,
2739
1699
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
2740
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
2741
1700
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
2742
- '%ArrayPrototype%': Array.prototype,
2743
- '%ArrayProto_entries%': Array.prototype.entries,
2744
- '%ArrayProto_forEach%': Array.prototype.forEach,
2745
- '%ArrayProto_keys%': Array.prototype.keys,
2746
- '%ArrayProto_values%': Array.prototype.values,
2747
1701
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
2748
- '%AsyncFunction%': asyncFunction,
2749
- '%AsyncFunctionPrototype%': undefined$1,
2750
- '%AsyncGenerator%': undefined$1,
2751
- '%AsyncGeneratorFunction%': asyncGenFunction,
2752
- '%AsyncGeneratorPrototype%': undefined$1,
2753
- '%AsyncIteratorPrototype%': undefined$1,
1702
+ '%AsyncFunction%': needsEval,
1703
+ '%AsyncGenerator%': needsEval,
1704
+ '%AsyncGeneratorFunction%': needsEval,
1705
+ '%AsyncIteratorPrototype%': needsEval,
2754
1706
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1707
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
2755
1708
  '%Boolean%': Boolean,
2756
- '%BooleanPrototype%': Boolean.prototype,
2757
1709
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
2758
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
2759
1710
  '%Date%': Date,
2760
- '%DatePrototype%': Date.prototype,
2761
1711
  '%decodeURI%': decodeURI,
2762
1712
  '%decodeURIComponent%': decodeURIComponent,
2763
1713
  '%encodeURI%': encodeURI,
2764
1714
  '%encodeURIComponent%': encodeURIComponent,
2765
1715
  '%Error%': Error,
2766
- '%ErrorPrototype%': Error.prototype,
2767
1716
  '%eval%': eval, // eslint-disable-line no-eval
2768
1717
  '%EvalError%': EvalError,
2769
- '%EvalErrorPrototype%': EvalError.prototype,
2770
1718
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
2771
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
2772
1719
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
2773
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
2774
- '%Function%': Function,
2775
- '%FunctionPrototype%': Function.prototype,
2776
- '%Generator%': undefined$1,
2777
- '%GeneratorFunction%': generatorFunction,
2778
- '%GeneratorPrototype%': undefined$1,
1720
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1721
+ '%Function%': $Function,
1722
+ '%GeneratorFunction%': needsEval,
2779
1723
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
2780
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
2781
1724
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
2782
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
2783
1725
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
2784
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
2785
1726
  '%isFinite%': isFinite,
2786
1727
  '%isNaN%': isNaN,
2787
1728
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
2788
1729
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
2789
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
2790
1730
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
2791
1731
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
2792
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
2793
1732
  '%Math%': Math,
2794
1733
  '%Number%': Number,
2795
- '%NumberPrototype%': Number.prototype,
2796
1734
  '%Object%': Object,
2797
- '%ObjectPrototype%': Object.prototype,
2798
- '%ObjProto_toString%': Object.prototype.toString,
2799
- '%ObjProto_valueOf%': Object.prototype.valueOf,
2800
1735
  '%parseFloat%': parseFloat,
2801
1736
  '%parseInt%': parseInt,
2802
1737
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
2803
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
2804
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
2805
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
2806
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
2807
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
2808
1738
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
2809
1739
  '%RangeError%': RangeError,
2810
- '%RangeErrorPrototype%': RangeError.prototype,
2811
1740
  '%ReferenceError%': ReferenceError,
2812
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
2813
1741
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
2814
1742
  '%RegExp%': RegExp,
2815
- '%RegExpPrototype%': RegExp.prototype,
2816
1743
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
2817
1744
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
2818
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
2819
1745
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
2820
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
2821
1746
  '%String%': String,
2822
1747
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
2823
- '%StringPrototype%': String.prototype,
2824
1748
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
2825
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
2826
- '%SyntaxError%': SyntaxError,
2827
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1749
+ '%SyntaxError%': $SyntaxError$1,
2828
1750
  '%ThrowTypeError%': ThrowTypeError,
2829
1751
  '%TypedArray%': TypedArray,
2830
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
2831
- '%TypeError%': $TypeError,
2832
- '%TypeErrorPrototype%': $TypeError.prototype,
1752
+ '%TypeError%': $TypeError$5,
2833
1753
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
2834
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
2835
1754
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
2836
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
2837
1755
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
2838
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
2839
1756
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
2840
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
2841
1757
  '%URIError%': URIError,
2842
- '%URIErrorPrototype%': URIError.prototype,
2843
1758
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
2844
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
2845
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
2846
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
2847
- };
1759
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1760
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1761
+ };
1762
+
1763
+ var doEval = function doEval(name) {
1764
+ var value;
1765
+ if (name === '%AsyncFunction%') {
1766
+ value = getEvalledConstructor('async function () {}');
1767
+ } else if (name === '%GeneratorFunction%') {
1768
+ value = getEvalledConstructor('function* () {}');
1769
+ } else if (name === '%AsyncGeneratorFunction%') {
1770
+ value = getEvalledConstructor('async function* () {}');
1771
+ } else if (name === '%AsyncGenerator%') {
1772
+ var fn = doEval('%AsyncGeneratorFunction%');
1773
+ if (fn) {
1774
+ value = fn.prototype;
1775
+ }
1776
+ } else if (name === '%AsyncIteratorPrototype%') {
1777
+ var gen = doEval('%AsyncGenerator%');
1778
+ if (gen) {
1779
+ value = getProto(gen.prototype);
1780
+ }
1781
+ }
2848
1782
 
1783
+ INTRINSICS[name] = value;
2849
1784
 
1785
+ return value;
1786
+ };
1787
+
1788
+ var LEGACY_ALIASES = {
1789
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1790
+ '%ArrayPrototype%': ['Array', 'prototype'],
1791
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1792
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1793
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1794
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1795
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1796
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1797
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1798
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1799
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1800
+ '%DatePrototype%': ['Date', 'prototype'],
1801
+ '%ErrorPrototype%': ['Error', 'prototype'],
1802
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1803
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1804
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1805
+ '%FunctionPrototype%': ['Function', 'prototype'],
1806
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1807
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1808
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1809
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1810
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1811
+ '%JSONParse%': ['JSON', 'parse'],
1812
+ '%JSONStringify%': ['JSON', 'stringify'],
1813
+ '%MapPrototype%': ['Map', 'prototype'],
1814
+ '%NumberPrototype%': ['Number', 'prototype'],
1815
+ '%ObjectPrototype%': ['Object', 'prototype'],
1816
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1817
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1818
+ '%PromisePrototype%': ['Promise', 'prototype'],
1819
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1820
+ '%Promise_all%': ['Promise', 'all'],
1821
+ '%Promise_reject%': ['Promise', 'reject'],
1822
+ '%Promise_resolve%': ['Promise', 'resolve'],
1823
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1824
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1825
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1826
+ '%SetPrototype%': ['Set', 'prototype'],
1827
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1828
+ '%StringPrototype%': ['String', 'prototype'],
1829
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1830
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1831
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1832
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1833
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1834
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1835
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1836
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1837
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1838
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1839
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1840
+ };
1841
+
1842
+
1843
+
1844
+ var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
1845
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2850
1846
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1847
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2851
1848
 
2852
1849
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2853
1850
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2854
1851
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2855
1852
  var stringToPath = function stringToPath(string) {
1853
+ var first = $strSlice(string, 0, 1);
1854
+ var last = $strSlice(string, -1);
1855
+ if (first === '%' && last !== '%') {
1856
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
1857
+ } else if (last === '%' && first !== '%') {
1858
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
1859
+ }
2856
1860
  var result = [];
2857
1861
  $replace(string, rePropName, function (match, number, quote, subString) {
2858
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1862
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2859
1863
  });
2860
1864
  return result;
2861
1865
  };
2862
1866
  /* end adaptation */
2863
1867
 
2864
1868
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2865
- if (!(name in INTRINSICS)) {
2866
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1869
+ var intrinsicName = name;
1870
+ var alias;
1871
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1872
+ alias = LEGACY_ALIASES[intrinsicName];
1873
+ intrinsicName = '%' + alias[0] + '%';
2867
1874
  }
2868
1875
 
2869
- // istanbul ignore if // hopefully this is impossible to test :-)
2870
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
2871
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1876
+ if (src(INTRINSICS, intrinsicName)) {
1877
+ var value = INTRINSICS[intrinsicName];
1878
+ if (value === needsEval) {
1879
+ value = doEval(intrinsicName);
1880
+ }
1881
+ if (typeof value === 'undefined' && !allowMissing) {
1882
+ throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1883
+ }
1884
+
1885
+ return {
1886
+ alias: alias,
1887
+ name: intrinsicName,
1888
+ value: value
1889
+ };
2872
1890
  }
2873
1891
 
2874
- return INTRINSICS[name];
1892
+ throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
2875
1893
  };
2876
1894
 
2877
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1895
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2878
1896
  if (typeof name !== 'string' || name.length === 0) {
2879
- throw new TypeError('intrinsic name must be a non-empty string');
1897
+ throw new $TypeError$5('intrinsic name must be a non-empty string');
2880
1898
  }
2881
1899
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2882
- throw new TypeError('"allowMissing" argument must be a boolean');
1900
+ throw new $TypeError$5('"allowMissing" argument must be a boolean');
2883
1901
  }
2884
1902
 
2885
1903
  var parts = stringToPath(name);
1904
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1905
+
1906
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1907
+ var intrinsicRealName = intrinsic.name;
1908
+ var value = intrinsic.value;
1909
+ var skipFurtherCaching = false;
1910
+
1911
+ var alias = intrinsic.alias;
1912
+ if (alias) {
1913
+ intrinsicBaseName = alias[0];
1914
+ $spliceApply(parts, $concat$2([0, 1], alias));
1915
+ }
1916
+
1917
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1918
+ var part = parts[i];
1919
+ var first = $strSlice(part, 0, 1);
1920
+ var last = $strSlice(part, -1);
1921
+ if (
1922
+ (
1923
+ (first === '"' || first === "'" || first === '`')
1924
+ || (last === '"' || last === "'" || last === '`')
1925
+ )
1926
+ && first !== last
1927
+ ) {
1928
+ throw new $SyntaxError$1('property names with quotes must have matching quotes');
1929
+ }
1930
+ if (part === 'constructor' || !isOwn) {
1931
+ skipFurtherCaching = true;
1932
+ }
1933
+
1934
+ intrinsicBaseName += '.' + part;
1935
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
2886
1936
 
2887
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2888
- for (var i = 1; i < parts.length; i += 1) {
2889
- if (value != null) {
2890
- if ($gOPD && (i + 1) >= parts.length) {
2891
- var desc = $gOPD(value, parts[i]);
2892
- if (!allowMissing && !(parts[i] in value)) {
2893
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1937
+ if (src(INTRINSICS, intrinsicRealName)) {
1938
+ value = INTRINSICS[intrinsicRealName];
1939
+ } else if (value != null) {
1940
+ if (!(part in value)) {
1941
+ if (!allowMissing) {
1942
+ throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
1943
+ }
1944
+ return void undefined$1;
1945
+ }
1946
+ if ($gOPD$2 && (i + 1) >= parts.length) {
1947
+ var desc = $gOPD$2(value, part);
1948
+ isOwn = !!desc;
1949
+
1950
+ // By convention, when a data property is converted to an accessor
1951
+ // property to emulate a data property that does not suffer from
1952
+ // the override mistake, that accessor's getter is marked with
1953
+ // an `originalValue` property. Here, when we detect this, we
1954
+ // uphold the illusion by pretending to see that original data
1955
+ // property, i.e., returning the value rather than the getter
1956
+ // itself.
1957
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1958
+ value = desc.get;
1959
+ } else {
1960
+ value = value[part];
2894
1961
  }
2895
- value = desc ? (desc.get || desc.value) : value[parts[i]];
2896
1962
  } else {
2897
- value = value[parts[i]];
1963
+ isOwn = src(value, part);
1964
+ value = value[part];
1965
+ }
1966
+
1967
+ if (isOwn && !skipFurtherCaching) {
1968
+ INTRINSICS[intrinsicRealName] = value;
2898
1969
  }
2899
1970
  }
2900
1971
  }
2901
1972
  return value;
2902
1973
  };
2903
1974
 
2904
- var $Function = GetIntrinsic('%Function%');
2905
- var $apply = $Function.apply;
2906
- var $call = $Function.call;
1975
+ var callBind = createCommonjsModule(function (module) {
1976
+
2907
1977
 
2908
- var callBind = function callBind() {
2909
- return functionBind.apply($call, arguments);
1978
+
1979
+
1980
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1981
+ var $call = getIntrinsic('%Function.prototype.call%');
1982
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1983
+
1984
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1985
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1986
+ var $max = getIntrinsic('%Math.max%');
1987
+
1988
+ if ($defineProperty) {
1989
+ try {
1990
+ $defineProperty({}, 'a', { value: 1 });
1991
+ } catch (e) {
1992
+ // IE 8 has a broken defineProperty
1993
+ $defineProperty = null;
1994
+ }
1995
+ }
1996
+
1997
+ module.exports = function callBind(originalFunction) {
1998
+ var func = $reflectApply(functionBind, $call, arguments);
1999
+ if ($gOPD && $defineProperty) {
2000
+ var desc = $gOPD(func, 'length');
2001
+ if (desc.configurable) {
2002
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2003
+ $defineProperty(
2004
+ func,
2005
+ 'length',
2006
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2007
+ );
2008
+ }
2009
+ }
2010
+ return func;
2910
2011
  };
2911
2012
 
2912
- var apply = function applyBind() {
2913
- return functionBind.apply($apply, arguments);
2013
+ var applyBind = function applyBind() {
2014
+ return $reflectApply(functionBind, $apply, arguments);
2914
2015
  };
2915
- callBind.apply = apply;
2916
2016
 
2917
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2017
+ if ($defineProperty) {
2018
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2019
+ } else {
2020
+ module.exports.apply = applyBind;
2021
+ }
2022
+ });
2023
+ callBind.apply;
2024
+
2025
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2918
2026
 
2919
- var callBound = function callBoundIntrinsic(name, allowMissing) {
2920
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2921
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2027
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2028
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2029
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2922
2030
  return callBind(intrinsic);
2923
2031
  }
2924
2032
  return intrinsic;
2925
2033
  };
2926
2034
 
2927
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2035
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2928
2036
 
2929
2037
  if ($defineProperty) {
2930
2038
  try {
@@ -2937,7 +2045,7 @@ if ($defineProperty) {
2937
2045
 
2938
2046
 
2939
2047
 
2940
- var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2048
+ var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
2941
2049
 
2942
2050
  // eslint-disable-next-line max-params
2943
2051
  var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
@@ -2951,7 +2059,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2951
2059
  }
2952
2060
 
2953
2061
  // fallback for ES3
2954
- if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
2062
+ if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
2955
2063
  // a non-enumerable existing property
2956
2064
  return false;
2957
2065
  }
@@ -2966,15 +2074,13 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2966
2074
  return true;
2967
2075
  };
2968
2076
 
2969
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2970
-
2971
- var $TypeError$1 = GetIntrinsic('%TypeError%');
2972
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2077
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2078
+ var $SyntaxError = getIntrinsic('%SyntaxError%');
2973
2079
 
2974
2080
 
2975
2081
 
2976
2082
  var predicates = {
2977
- // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
2083
+ // https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
2978
2084
  'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
2979
2085
  if (Type(Desc) !== 'Object') {
2980
2086
  return false;
@@ -2997,7 +2103,7 @@ var predicates = {
2997
2103
  var isData = src(Desc, '[[Value]]');
2998
2104
  var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
2999
2105
  if (isData && IsAccessor) {
3000
- throw new $TypeError$1('Property Descriptors may not be both accessor and data descriptors');
2106
+ throw new $TypeError$4('Property Descriptors may not be both accessor and data descriptors');
3001
2107
  }
3002
2108
  return true;
3003
2109
  }
@@ -3009,13 +2115,13 @@ var assertRecord = function assertRecord(Type, recordType, argumentName, value)
3009
2115
  throw new $SyntaxError('unknown record type: ' + recordType);
3010
2116
  }
3011
2117
  if (!predicate(Type, value)) {
3012
- throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2118
+ throw new $TypeError$4(argumentName + ' must be a ' + recordType);
3013
2119
  }
3014
2120
  };
3015
2121
 
3016
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2122
+ // https://262.ecma-international.org/5.1/#sec-8
3017
2123
 
3018
- var Type = function Type(x) {
2124
+ var Type$1 = function Type(x) {
3019
2125
  if (x === null) {
3020
2126
  return 'Null';
3021
2127
  }
@@ -3036,23 +2142,26 @@ var Type = function Type(x) {
3036
2142
  }
3037
2143
  };
3038
2144
 
3039
- // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2145
+ // https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values
3040
2146
 
3041
- var Type$1 = function Type$1(x) {
2147
+ var Type = function Type(x) {
3042
2148
  if (typeof x === 'symbol') {
3043
2149
  return 'Symbol';
3044
2150
  }
3045
- return Type(x);
2151
+ if (typeof x === 'bigint') {
2152
+ return 'BigInt';
2153
+ }
2154
+ return Type$1(x);
3046
2155
  };
3047
2156
 
3048
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2157
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
3049
2158
 
3050
2159
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
3051
2160
  if (typeof Desc === 'undefined') {
3052
2161
  return Desc;
3053
2162
  }
3054
2163
 
3055
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2164
+ assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3056
2165
 
3057
2166
  var obj = {};
3058
2167
  if ('[[Value]]' in Desc) {
@@ -3076,7 +2185,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
3076
2185
  return obj;
3077
2186
  };
3078
2187
 
3079
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2188
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
3080
2189
  if ($gOPD$1) {
3081
2190
  try {
3082
2191
  $gOPD$1([], 'length');
@@ -3088,65 +2197,85 @@ if ($gOPD$1) {
3088
2197
 
3089
2198
  var getOwnPropertyDescriptor = $gOPD$1;
3090
2199
 
3091
- var $Array = GetIntrinsic('%Array%');
2200
+ var $Array = getIntrinsic('%Array%');
3092
2201
 
3093
2202
  // eslint-disable-next-line global-require
3094
- var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2203
+ var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
3095
2204
 
3096
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2205
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
3097
2206
 
3098
2207
  var IsArray = $Array.isArray || function IsArray(argument) {
3099
- return toStr$4(argument) === '[object Array]';
2208
+ return toStr$1(argument) === '[object Array]';
3100
2209
  };
3101
2210
 
3102
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2211
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
3103
2212
 
3104
2213
  var IsPropertyKey = function IsPropertyKey(argument) {
3105
2214
  return typeof argument === 'string' || typeof argument === 'symbol';
3106
2215
  };
3107
2216
 
3108
- var regexExec = RegExp.prototype.exec;
3109
- var gOPD = Object.getOwnPropertyDescriptor;
2217
+ var hasSymbols$1 = shams();
2218
+ var hasToStringTag$1 = hasSymbols$1 && !!Symbol.toStringTag;
2219
+ var has;
2220
+ var $exec;
2221
+ var isRegexMarker;
2222
+ var badStringifier;
3110
2223
 
3111
- var tryRegexExecCall = function tryRegexExec(value) {
3112
- try {
3113
- var lastIndex = value.lastIndex;
3114
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
2224
+ if (hasToStringTag$1) {
2225
+ has = callBound$1('Object.prototype.hasOwnProperty');
2226
+ $exec = callBound$1('RegExp.prototype.exec');
2227
+ isRegexMarker = {};
3115
2228
 
3116
- regexExec.call(value);
3117
- return true;
3118
- } catch (e) {
3119
- return false;
3120
- } finally {
3121
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2229
+ var throwRegexMarker = function () {
2230
+ throw isRegexMarker;
2231
+ };
2232
+ badStringifier = {
2233
+ toString: throwRegexMarker,
2234
+ valueOf: throwRegexMarker
2235
+ };
2236
+
2237
+ if (typeof Symbol.toPrimitive === 'symbol') {
2238
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
3122
2239
  }
3123
- };
3124
- var toStr$5 = Object.prototype.toString;
2240
+ }
2241
+
2242
+ var $toString = callBound$1('Object.prototype.toString');
2243
+ var gOPD = Object.getOwnPropertyDescriptor;
3125
2244
  var regexClass = '[object RegExp]';
3126
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
3127
2245
 
3128
- var isRegex = function isRegex(value) {
3129
- if (!value || typeof value !== 'object') {
3130
- return false;
3131
- }
3132
- if (!hasToStringTag) {
3133
- return toStr$5.call(value) === regexClass;
3134
- }
2246
+ var isRegex = hasToStringTag$1
2247
+ // eslint-disable-next-line consistent-return
2248
+ ? function isRegex(value) {
2249
+ if (!value || typeof value !== 'object') {
2250
+ return false;
2251
+ }
3135
2252
 
3136
- var descriptor = gOPD(value, 'lastIndex');
3137
- var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
3138
- if (!hasLastIndexDataProperty) {
3139
- return false;
2253
+ var descriptor = gOPD(value, 'lastIndex');
2254
+ var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
2255
+ if (!hasLastIndexDataProperty) {
2256
+ return false;
2257
+ }
2258
+
2259
+ try {
2260
+ $exec(value, badStringifier);
2261
+ } catch (e) {
2262
+ return e === isRegexMarker;
2263
+ }
3140
2264
  }
2265
+ : function isRegex(value) {
2266
+ // In older browsers, typeof regex incorrectly returns 'function'
2267
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2268
+ return false;
2269
+ }
3141
2270
 
3142
- return tryRegexExecCall(value);
3143
- };
2271
+ return $toString(value) === regexClass;
2272
+ };
3144
2273
 
3145
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2274
+ // http://262.ecma-international.org/5.1/#sec-9.2
3146
2275
 
3147
2276
  var ToBoolean = function ToBoolean(value) { return !!value; };
3148
2277
 
3149
- var $match = GetIntrinsic('%Symbol.match%', true);
2278
+ var $match = getIntrinsic('%Symbol.match%', true);
3150
2279
 
3151
2280
 
3152
2281
 
@@ -3168,6 +2297,27 @@ var IsRegExp = function IsRegExp(argument) {
3168
2297
  };
3169
2298
 
3170
2299
  var fnToStr = Function.prototype.toString;
2300
+ var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2301
+ var badArrayLike;
2302
+ var isCallableMarker;
2303
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2304
+ try {
2305
+ badArrayLike = Object.defineProperty({}, 'length', {
2306
+ get: function () {
2307
+ throw isCallableMarker;
2308
+ }
2309
+ });
2310
+ isCallableMarker = {};
2311
+ // eslint-disable-next-line no-throw-literal
2312
+ reflectApply(function () { throw 42; }, null, badArrayLike);
2313
+ } catch (_) {
2314
+ if (_ !== isCallableMarker) {
2315
+ reflectApply = null;
2316
+ }
2317
+ }
2318
+ } else {
2319
+ reflectApply = null;
2320
+ }
3171
2321
 
3172
2322
  var constructorRegex = /^\s*class\b/;
3173
2323
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -3188,36 +2338,52 @@ var tryFunctionObject = function tryFunctionToStr(value) {
3188
2338
  return false;
3189
2339
  }
3190
2340
  };
3191
- var toStr$6 = Object.prototype.toString;
2341
+ var toStr = Object.prototype.toString;
3192
2342
  var fnClass = '[object Function]';
3193
2343
  var genClass = '[object GeneratorFunction]';
3194
- var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
3195
-
3196
- var isCallable = function isCallable(value) {
3197
- if (!value) { return false; }
3198
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
3199
- if (typeof value === 'function' && !value.prototype) { return true; }
3200
- if (hasToStringTag$1) { return tryFunctionObject(value); }
3201
- if (isES6ClassFn(value)) { return false; }
3202
- var strClass = toStr$6.call(value);
3203
- return strClass === fnClass || strClass === genClass;
3204
- };
2344
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2345
+ /* globals document: false */
2346
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2347
+
2348
+ var isCallable = reflectApply
2349
+ ? function isCallable(value) {
2350
+ if (value === documentDotAll) { return true; }
2351
+ if (!value) { return false; }
2352
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2353
+ if (typeof value === 'function' && !value.prototype) { return true; }
2354
+ try {
2355
+ reflectApply(value, null, badArrayLike);
2356
+ } catch (e) {
2357
+ if (e !== isCallableMarker) { return false; }
2358
+ }
2359
+ return !isES6ClassFn(value);
2360
+ }
2361
+ : function isCallable(value) {
2362
+ if (value === documentDotAll) { return true; }
2363
+ if (!value) { return false; }
2364
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2365
+ if (typeof value === 'function' && !value.prototype) { return true; }
2366
+ if (hasToStringTag) { return tryFunctionObject(value); }
2367
+ if (isES6ClassFn(value)) { return false; }
2368
+ var strClass = toStr.call(value);
2369
+ return strClass === fnClass || strClass === genClass;
2370
+ };
3205
2371
 
3206
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2372
+ // http://262.ecma-international.org/5.1/#sec-9.11
3207
2373
 
3208
2374
  var IsCallable = isCallable;
3209
2375
 
3210
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2376
+ var $TypeError$3 = getIntrinsic('%TypeError%');
3211
2377
 
3212
2378
 
3213
2379
 
3214
2380
 
3215
2381
 
3216
- // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2382
+ // https://262.ecma-international.org/5.1/#sec-8.10.5
3217
2383
 
3218
2384
  var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
3219
- if (Type$1(Obj) !== 'Object') {
3220
- throw new $TypeError$2('ToPropertyDescriptor requires an object');
2385
+ if (Type(Obj) !== 'Object') {
2386
+ throw new $TypeError$3('ToPropertyDescriptor requires an object');
3221
2387
  }
3222
2388
 
3223
2389
  var desc = {};
@@ -3236,29 +2402,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
3236
2402
  if (src(Obj, 'get')) {
3237
2403
  var getter = Obj.get;
3238
2404
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
3239
- throw new TypeError('getter must be a function');
2405
+ throw new $TypeError$3('getter must be a function');
3240
2406
  }
3241
2407
  desc['[[Get]]'] = getter;
3242
2408
  }
3243
2409
  if (src(Obj, 'set')) {
3244
2410
  var setter = Obj.set;
3245
2411
  if (typeof setter !== 'undefined' && !IsCallable(setter)) {
3246
- throw new $TypeError$2('setter must be a function');
2412
+ throw new $TypeError$3('setter must be a function');
3247
2413
  }
3248
2414
  desc['[[Set]]'] = setter;
3249
2415
  }
3250
2416
 
3251
2417
  if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
3252
- throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2418
+ throw new $TypeError$3('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
3253
2419
  }
3254
2420
  return desc;
3255
2421
  };
3256
2422
 
3257
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2423
+ var $TypeError$2 = getIntrinsic('%TypeError%');
3258
2424
 
3259
2425
 
3260
2426
 
3261
- var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2427
+ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
3262
2428
 
3263
2429
 
3264
2430
 
@@ -3268,14 +2434,14 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
3268
2434
 
3269
2435
 
3270
2436
 
3271
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2437
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
3272
2438
 
3273
2439
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
3274
- if (Type$1(O) !== 'Object') {
3275
- throw new $TypeError$3('Assertion failed: O must be an Object');
2440
+ if (Type(O) !== 'Object') {
2441
+ throw new $TypeError$2('Assertion failed: O must be an Object');
3276
2442
  }
3277
2443
  if (!IsPropertyKey(P)) {
3278
- throw new $TypeError$3('Assertion failed: P must be a Property Key');
2444
+ throw new $TypeError$2('Assertion failed: P must be a Property Key');
3279
2445
  }
3280
2446
  if (!src(O, P)) {
3281
2447
  return void 0;
@@ -3286,7 +2452,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
3286
2452
  var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
3287
2453
  return {
3288
2454
  '[[Configurable]]': !(arrayLength || regexLastIndex),
3289
- '[[Enumerable]]': $isEnumerable$1(O, P),
2455
+ '[[Enumerable]]': $isEnumerable(O, P),
3290
2456
  '[[Value]]': O[P],
3291
2457
  '[[Writable]]': true
3292
2458
  };
@@ -3294,14 +2460,14 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
3294
2460
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
3295
2461
  };
3296
2462
 
3297
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2463
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
3298
2464
 
3299
2465
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
3300
2466
  if (typeof Desc === 'undefined') {
3301
2467
  return false;
3302
2468
  }
3303
2469
 
3304
- assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2470
+ assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3305
2471
 
3306
2472
  if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
3307
2473
  return false;
@@ -3314,14 +2480,14 @@ var isPrimitive = function isPrimitive(value) {
3314
2480
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
3315
2481
  };
3316
2482
 
3317
- var $Object = GetIntrinsic('%Object%');
2483
+ var $Object$1 = getIntrinsic('%Object%');
3318
2484
 
3319
2485
 
3320
2486
 
3321
- var $preventExtensions = $Object.preventExtensions;
3322
- var $isExtensible = $Object.isExtensible;
2487
+ var $preventExtensions = $Object$1.preventExtensions;
2488
+ var $isExtensible = $Object$1.isExtensible;
3323
2489
 
3324
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2490
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
3325
2491
 
3326
2492
  var IsExtensible = $preventExtensions
3327
2493
  ? function IsExtensible(obj) {
@@ -3335,7 +2501,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
3335
2501
  return a !== a;
3336
2502
  };
3337
2503
 
3338
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2504
+ // http://262.ecma-international.org/5.1/#sec-9.12
3339
2505
 
3340
2506
  var SameValue = function SameValue(x, y) {
3341
2507
  if (x === y) { // 0 === -0, but they are not identical.
@@ -3345,7 +2511,7 @@ var SameValue = function SameValue(x, y) {
3345
2511
  return _isNaN(x) && _isNaN(y);
3346
2512
  };
3347
2513
 
3348
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2514
+ var $TypeError$1 = getIntrinsic('%TypeError%');
3349
2515
 
3350
2516
 
3351
2517
 
@@ -3357,18 +2523,18 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
3357
2523
 
3358
2524
 
3359
2525
 
3360
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2526
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
3361
2527
 
3362
2528
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
3363
- if (Type$1(O) !== 'Object') {
3364
- throw new $TypeError$4('Assertion failed: Type(O) is not Object');
2529
+ if (Type(O) !== 'Object') {
2530
+ throw new $TypeError$1('Assertion failed: Type(O) is not Object');
3365
2531
  }
3366
2532
  if (!IsPropertyKey(P)) {
3367
- throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2533
+ throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
3368
2534
  }
3369
2535
  var oldDesc = OrdinaryGetOwnProperty(O, P);
3370
- var extensible = oldDesc || IsExtensible(O);
3371
- var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2536
+ var extensible = !oldDesc || IsExtensible(O);
2537
+ var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
3372
2538
  if (immutable || !extensible) {
3373
2539
  return false;
3374
2540
  }
@@ -3387,44 +2553,44 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
3387
2553
  );
3388
2554
  };
3389
2555
 
3390
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2556
+ var $TypeError = getIntrinsic('%TypeError%');
3391
2557
 
3392
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2558
+ // http://262.ecma-international.org/5.1/#sec-9.10
3393
2559
 
3394
2560
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
3395
2561
  if (value == null) {
3396
- throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2562
+ throw new $TypeError(optMessage || ('Cannot call method on ' + value));
3397
2563
  }
3398
2564
  return value;
3399
2565
  };
3400
2566
 
3401
2567
  var RequireObjectCoercible = CheckObjectCoercible;
3402
2568
 
3403
- var $Object$1 = GetIntrinsic('%Object%');
2569
+ var $Object = getIntrinsic('%Object%');
3404
2570
 
3405
2571
 
3406
2572
 
3407
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2573
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
3408
2574
 
3409
2575
  var ToObject = function ToObject(value) {
3410
2576
  RequireObjectCoercible(value);
3411
- return $Object$1(value);
2577
+ return $Object(value);
3412
2578
  };
3413
2579
 
3414
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
2580
+ var $gOPD = Object.getOwnPropertyDescriptor;
3415
2581
  var $getOwnNames = Object.getOwnPropertyNames;
3416
2582
  var $getSymbols = Object.getOwnPropertySymbols;
3417
- var $concat = callBound('Array.prototype.concat');
3418
- var $reduce = callBound('Array.prototype.reduce');
2583
+ var $concat$1 = callBound$1('Array.prototype.concat');
2584
+ var $reduce = callBound$1('Array.prototype.reduce');
3419
2585
  var getAll = $getSymbols ? function (obj) {
3420
- return $concat($getOwnNames(obj), $getSymbols(obj));
2586
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
3421
2587
  } : $getOwnNames;
3422
2588
 
3423
- var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
2589
+ var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
3424
2590
 
3425
- var implementation$2 = function getOwnPropertyDescriptors(value) {
2591
+ var implementation$1 = function getOwnPropertyDescriptors(value) {
3426
2592
  RequireObjectCoercible(value);
3427
- if (!isES5) {
2593
+ if (!isES5$1) {
3428
2594
  throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
3429
2595
  }
3430
2596
 
@@ -3432,7 +2598,7 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
3432
2598
  return $reduce(
3433
2599
  getAll(O),
3434
2600
  function (acc, key) {
3435
- var descriptor = $gOPD$2(O, key);
2601
+ var descriptor = $gOPD(O, key);
3436
2602
  if (typeof descriptor !== 'undefined') {
3437
2603
  CreateDataProperty(acc, key, descriptor);
3438
2604
  }
@@ -3442,34 +2608,40 @@ var implementation$2 = function getOwnPropertyDescriptors(value) {
3442
2608
  );
3443
2609
  };
3444
2610
 
3445
- var polyfill = function getPolyfill() {
3446
- return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
2611
+ var polyfill$2 = function getPolyfill() {
2612
+ return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
3447
2613
  };
3448
2614
 
3449
- var shim = function shimGetOwnPropertyDescriptors() {
3450
- var polyfill$1 = polyfill();
2615
+ var shim$1 = function shimGetOwnPropertyDescriptors() {
2616
+ var polyfill = polyfill$2();
3451
2617
  defineProperties_1(
3452
2618
  Object,
3453
- { getOwnPropertyDescriptors: polyfill$1 },
3454
- { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
2619
+ { getOwnPropertyDescriptors: polyfill },
2620
+ { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
3455
2621
  );
3456
- return polyfill$1;
2622
+ return polyfill;
3457
2623
  };
3458
2624
 
3459
- defineProperties_1(implementation$2, {
3460
- getPolyfill: polyfill,
3461
- implementation: implementation$2,
3462
- shim: shim
2625
+ var bound = callBind(polyfill$2(), Object);
2626
+
2627
+ defineProperties_1(bound, {
2628
+ getPolyfill: polyfill$2,
2629
+ implementation: implementation$1,
2630
+ shim: shim$1
3463
2631
  });
3464
2632
 
3465
- var object_getownpropertydescriptors = implementation$2;
2633
+ var object_getownpropertydescriptors = bound;
2634
+
2635
+ // TODO; semver-major: remove
3466
2636
 
3467
- var isES5$1 = typeof Object.defineProperty === 'function'
2637
+ var callBound = callBound$1;
2638
+
2639
+ var isES5 = typeof Object.defineProperty === 'function'
3468
2640
  && typeof Object.defineProperties === 'function';
3469
2641
 
3470
2642
  var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
3471
2643
 
3472
- if (!isES5$1 || !hasProto) {
2644
+ if (!isES5 || !hasProto) {
3473
2645
  throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
3474
2646
  }
3475
2647
 
@@ -3482,15 +2654,15 @@ if (typeof Promise !== 'function') {
3482
2654
 
3483
2655
 
3484
2656
  var $slice = callBound('Array.prototype.slice');
3485
- var $concat$1 = callBound('Array.prototype.concat');
2657
+ var $concat = callBound('Array.prototype.concat');
3486
2658
  var $forEach = callBound('Array.prototype.forEach');
3487
2659
 
3488
- var hasSymbols$3 = hasSymbols$1();
2660
+ var hasSymbols = hasSymbols$3();
3489
2661
 
3490
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
3491
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2662
+ var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2663
+ var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
3492
2664
 
3493
- var implementation$3 = function promisify(orig) {
2665
+ var implementation = function promisify(orig) {
3494
2666
  if (typeof orig !== 'function') {
3495
2667
  var error = new TypeError('The "original" argument must be of type function');
3496
2668
  error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
@@ -3498,7 +2670,7 @@ var implementation$3 = function promisify(orig) {
3498
2670
  throw error;
3499
2671
  }
3500
2672
 
3501
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2673
+ if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
3502
2674
  var customFunction = orig[kCustomPromisifiedSymbol];
3503
2675
  if (typeof customFunction !== 'function') {
3504
2676
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -3520,7 +2692,7 @@ var implementation$3 = function promisify(orig) {
3520
2692
  var args = $slice(arguments);
3521
2693
  var self = this; // eslint-disable-line no-invalid-this
3522
2694
  return new Promise(function (resolve, reject) {
3523
- orig.apply(self, $concat$1(args, function (err) {
2695
+ orig.apply(self, $concat(args, function (err) {
3524
2696
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
3525
2697
  if (err) {
3526
2698
  reject(err);
@@ -3550,17 +2722,17 @@ var implementation$3 = function promisify(orig) {
3550
2722
 
3551
2723
  var custom = kCustomPromisifiedSymbol;
3552
2724
  var customPromisifyArgs = kCustomPromisifyArgsSymbol;
3553
- implementation$3.custom = custom;
3554
- implementation$3.customPromisifyArgs = customPromisifyArgs;
2725
+ implementation.custom = custom;
2726
+ implementation.customPromisifyArgs = customPromisifyArgs;
3555
2727
 
3556
2728
  var polyfill$1 = function getPolyfill() {
3557
2729
  if (typeof util.promisify === 'function') {
3558
2730
  return util.promisify;
3559
2731
  }
3560
- return implementation$3;
2732
+ return implementation;
3561
2733
  };
3562
2734
 
3563
- var shim$1 = function shimUtilPromisify() {
2735
+ var shim = function shimUtilPromisify() {
3564
2736
  var polyfill = polyfill$1();
3565
2737
  if (polyfill !== util.promisify) {
3566
2738
  Object.defineProperty(util, 'promisify', {
@@ -3573,20 +2745,20 @@ var shim$1 = function shimUtilPromisify() {
3573
2745
  return polyfill;
3574
2746
  };
3575
2747
 
3576
- var polyfill$2 = polyfill$1();
2748
+ var polyfill = polyfill$1();
3577
2749
 
3578
2750
 
3579
2751
  /* eslint-disable no-unused-vars */
3580
2752
  var boundPromisify = function promisify(orig) {
3581
2753
  /* eslint-enable no-unused-vars */
3582
- return polyfill$2.apply(util, arguments);
2754
+ return polyfill.apply(util, arguments);
3583
2755
  };
3584
2756
  defineProperties_1(boundPromisify, {
3585
- custom: polyfill$2.custom,
3586
- customPromisifyArgs: polyfill$2.customPromisifyArgs,
2757
+ custom: polyfill.custom,
2758
+ customPromisifyArgs: polyfill.customPromisifyArgs,
3587
2759
  getPolyfill: polyfill$1,
3588
- implementation: implementation$3,
3589
- shim: shim$1
2760
+ implementation: implementation,
2761
+ shim: shim
3590
2762
  });
3591
2763
 
3592
2764
  var util_promisify = boundPromisify;
@@ -3627,16 +2799,16 @@ function connect() {
3627
2799
 
3628
2800
  var db = connect;
3629
2801
 
3630
- var _this$3 = undefined;
2802
+ var _this$1 = undefined;
3631
2803
 
3632
- var config = {
2804
+ var config$1 = {
3633
2805
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3634
2806
  user: 'nasp',
3635
2807
  password: 'uRNkF9SkfXQs6AKK',
3636
2808
  database: 'user'
3637
2809
  };
3638
2810
 
3639
- var findUser = function () {
2811
+ var findUser$1 = function () {
3640
2812
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(email) {
3641
2813
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
3642
2814
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
@@ -3648,7 +2820,7 @@ var findUser = function () {
3648
2820
  _context.prev = 1;
3649
2821
 
3650
2822
 
3651
- db$1 = db(config);
2823
+ db$1 = db(config$1);
3652
2824
 
3653
2825
  query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
3654
2826
  _context.next = 6;
@@ -3744,7 +2916,7 @@ var findUser = function () {
3744
2916
  };
3745
2917
  }();
3746
2918
 
3747
- var updateUser = function () {
2919
+ var updateUser$1 = function () {
3748
2920
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3749
2921
  var db$1, query, res, hash, columns, i, column, occupation_name;
3750
2922
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3757,7 +2929,7 @@ var updateUser = function () {
3757
2929
 
3758
2930
  validateUserData(data);
3759
2931
 
3760
- db$1 = db(config);
2932
+ db$1 = db(config$1);
3761
2933
 
3762
2934
  _context2.next = 6;
3763
2935
  return db$1.beginTransaction();
@@ -3864,7 +3036,7 @@ var updateUser = function () {
3864
3036
 
3865
3037
  return _context2.abrupt('return', {
3866
3038
  error: '',
3867
- user: findUser(data.email)
3039
+ user: findUser$1(data.email)
3868
3040
  });
3869
3041
 
3870
3042
  case 45:
@@ -3976,7 +3148,7 @@ var getOccupationNameById = function () {
3976
3148
  return _context3.stop();
3977
3149
  }
3978
3150
  }
3979
- }, _callee3, _this$3);
3151
+ }, _callee3, _this$1);
3980
3152
  }));
3981
3153
 
3982
3154
  return function getOccupationNameById(_x5, _x6) {
@@ -3984,7 +3156,7 @@ var getOccupationNameById = function () {
3984
3156
  };
3985
3157
  }();
3986
3158
 
3987
- var createUser = function () {
3159
+ var createUser$1 = function () {
3988
3160
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(data) {
3989
3161
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3990
3162
  return regenerator.wrap(function _callee4$(_context4) {
@@ -3997,7 +3169,7 @@ var createUser = function () {
3997
3169
 
3998
3170
  validateUserData(data, true);
3999
3171
 
4000
- db$1 = db(config);
3172
+ db$1 = db(config$1);
4001
3173
 
4002
3174
  _context4.next = 6;
4003
3175
  return db$1.beginTransaction();
@@ -4093,7 +3265,7 @@ var createUser = function () {
4093
3265
  case 39:
4094
3266
  return _context4.abrupt('return', {
4095
3267
  error: '',
4096
- user: findUser(data.email)
3268
+ user: findUser$1(data.email)
4097
3269
  });
4098
3270
 
4099
3271
  case 42:
@@ -4131,7 +3303,7 @@ var createUser = function () {
4131
3303
  };
4132
3304
  }();
4133
3305
 
4134
- var createUser$1 = function () {
3306
+ var createUser = function () {
4135
3307
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
4136
3308
  var res;
4137
3309
  return regenerator.wrap(function _callee$(_context) {
@@ -4139,7 +3311,7 @@ var createUser$1 = function () {
4139
3311
  switch (_context.prev = _context.next) {
4140
3312
  case 0:
4141
3313
  _context.next = 2;
4142
- return createUser(data);
3314
+ return createUser$1(data);
4143
3315
 
4144
3316
  case 2:
4145
3317
  res = _context.sent;
@@ -4167,7 +3339,7 @@ var createUser$1 = function () {
4167
3339
  };
4168
3340
  }();
4169
3341
 
4170
- var updateUser$1 = function () {
3342
+ var updateUser = function () {
4171
3343
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
4172
3344
  var res;
4173
3345
  return regenerator.wrap(function _callee2$(_context2) {
@@ -4175,7 +3347,7 @@ var updateUser$1 = function () {
4175
3347
  switch (_context2.prev = _context2.next) {
4176
3348
  case 0:
4177
3349
  _context2.next = 2;
4178
- return updateUser(data);
3350
+ return updateUser$1(data);
4179
3351
 
4180
3352
  case 2:
4181
3353
  res = _context2.sent;
@@ -4203,7 +3375,7 @@ var updateUser$1 = function () {
4203
3375
  };
4204
3376
  }();
4205
3377
 
4206
- var findUser$1 = function () {
3378
+ var findUser = function () {
4207
3379
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref4) {
4208
3380
  var email = _ref4.email,
4209
3381
  password = _ref4.password;
@@ -4213,7 +3385,7 @@ var findUser$1 = function () {
4213
3385
  switch (_context3.prev = _context3.next) {
4214
3386
  case 0:
4215
3387
  _context3.next = 2;
4216
- return findUser(email, password);
3388
+ return findUser$1(email, password);
4217
3389
 
4218
3390
  case 2:
4219
3391
  res = _context3.sent;
@@ -4243,9 +3415,9 @@ var findUser$1 = function () {
4243
3415
 
4244
3416
  var user = /*#__PURE__*/Object.freeze({
4245
3417
  __proto__: null,
4246
- createUser: createUser$1,
4247
- updateUser: updateUser$1,
4248
- findUser: findUser$1
3418
+ createUser: createUser,
3419
+ updateUser: updateUser,
3420
+ findUser: findUser
4249
3421
  });
4250
3422
 
4251
3423
  var localStrategy = new Local.Strategy({
@@ -4253,7 +3425,7 @@ var localStrategy = new Local.Strategy({
4253
3425
  passwordField: 'password'
4254
3426
  }, function (email, password, done) {
4255
3427
 
4256
- findUser$1({ email: email, password: password }).then(function (user) {
3428
+ findUser({ email: email, password: password }).then(function (user) {
4257
3429
  done(null, user);
4258
3430
  }).catch(function (error) {
4259
3431
  done(error);
@@ -4265,9 +3437,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
4265
3437
  localStrategy: localStrategy
4266
3438
  });
4267
3439
 
4268
- var _this$4 = undefined;
3440
+ var _this = undefined;
4269
3441
 
4270
- var config$1 = {
3442
+ var config = {
4271
3443
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
4272
3444
  user: 'nasp',
4273
3445
  password: 'uRNkF9SkfXQs6AKK',
@@ -4281,7 +3453,7 @@ var getOccupation = function () {
4281
3453
  while (1) {
4282
3454
  switch (_context.prev = _context.next) {
4283
3455
  case 0:
4284
- db$1 = db(config$1);
3456
+ db$1 = db(config);
4285
3457
  query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
4286
3458
  _context.next = 4;
4287
3459
  return db$1.query(query, [type]);
@@ -4299,7 +3471,7 @@ var getOccupation = function () {
4299
3471
  return _context.stop();
4300
3472
  }
4301
3473
  }
4302
- }, _callee, _this$4);
3474
+ }, _callee, _this);
4303
3475
  }));
4304
3476
 
4305
3477
  return function getOccupation(_x) {
@@ -4314,7 +3486,7 @@ var getFieldsAndOptions = function () {
4314
3486
  while (1) {
4315
3487
  switch (_context2.prev = _context2.next) {
4316
3488
  case 0:
4317
- db$1 = db(config$1);
3489
+ db$1 = db(config);
4318
3490
  query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
4319
3491
  _context2.next = 4;
4320
3492
  return db$1.query(query, [occupation]);
@@ -4362,7 +3534,7 @@ var getFieldsAndOptions = function () {
4362
3534
  return _context2.stop();
4363
3535
  }
4364
3536
  }
4365
- }, _callee2, _this$4);
3537
+ }, _callee2, _this);
4366
3538
  }));
4367
3539
 
4368
3540
  return function getFieldsAndOptions(_x2) {
@@ -4433,8 +3605,8 @@ var ProcessData = (function () {
4433
3605
  })();
4434
3606
 
4435
3607
  var LoginForm_1 = LoginForm;
4436
- var SignupForm_1 = SignupForm;
4437
- var ProfileForm_1 = SignupForm$1;
3608
+ var SignupForm_1 = SignupForm$1;
3609
+ var ProfileForm_1 = SignupForm;
4438
3610
  var AuthCookies_1 = authCookies;
4439
3611
  var AuthHooks_1 = hooks;
4440
3612
  var Iron_1 = iron;