@mjhls/mjh-framework 1.0.769 → 1.0.770-beta.0

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 (294) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +27 -28
  4. package/dist/cjs/AD300x250x600.js +27 -28
  5. package/dist/cjs/AD728x90.js +30 -31
  6. package/dist/cjs/ADFloatingFooter.js +29 -30
  7. package/dist/cjs/ADFooter.js +14 -15
  8. package/dist/cjs/ADGutter.js +29 -30
  9. package/dist/cjs/{ADInfeed-32dc37f4.js → ADInfeed-547e399f.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +29 -30
  11. package/dist/cjs/ADSponsoredResources.js +29 -30
  12. package/dist/cjs/ADWebcast.js +29 -30
  13. package/dist/cjs/ADWelcome.js +30 -31
  14. package/dist/cjs/{ADlgInfeed-a8dc2b08.js → ADlgInfeed-84cd6750.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +29 -31
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +16 -17
  18. package/dist/cjs/AlphabeticList.js +24 -25
  19. package/dist/cjs/ArticleCarousel.js +23 -24
  20. package/dist/cjs/ArticleProgramLandingPage.js +55 -56
  21. package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
  22. package/dist/cjs/ArticleSeriesListing.js +59 -60
  23. package/dist/cjs/Auth.js +335 -821
  24. package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
  25. package/dist/cjs/Beam.js +9 -9
  26. package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
  27. package/dist/cjs/Breadcrumbs.js +27 -29
  28. package/dist/cjs/CMEDeck.js +83 -83
  29. package/dist/cjs/Column1.js +11 -14
  30. package/dist/cjs/Column2.js +32 -35
  31. package/dist/cjs/Column3.js +55 -58
  32. package/dist/cjs/ConferenceArticleCard.js +23 -24
  33. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  34. package/dist/cjs/DeckContent.js +94 -98
  35. package/dist/cjs/DeckQueue.js +86 -90
  36. package/dist/cjs/{Dfp-80146e98.js → Dfp-ce7ac168.js} +30 -31
  37. package/dist/cjs/EventsDeck.js +131 -138
  38. package/dist/cjs/ExternalResources.js +77 -78
  39. package/dist/cjs/Feature.js +25 -27
  40. package/dist/cjs/ForbesHero.js +40 -41
  41. package/dist/cjs/GridContent.js +177 -181
  42. package/dist/cjs/GridHero.js +42 -43
  43. package/dist/cjs/GroupDeck.js +58 -59
  44. package/dist/cjs/HamMagazine.js +131 -136
  45. package/dist/cjs/Header.js +11 -13
  46. package/dist/cjs/Hero.js +12 -13
  47. package/dist/cjs/HighlightenVideo.js +17 -18
  48. package/dist/cjs/HorizontalArticleListing.js +69 -70
  49. package/dist/cjs/HorizontalHero.js +25 -26
  50. package/dist/cjs/IssueContentDeck.js +72 -77
  51. package/dist/cjs/IssueDeck.js +70 -75
  52. package/dist/cjs/IssueLanding.js +40 -41
  53. package/dist/cjs/LeftNav.js +36 -38
  54. package/dist/cjs/MasterDeck.js +70 -71
  55. package/dist/cjs/MediaSeriesLanding.js +37 -39
  56. package/dist/cjs/NavDvm.js +75 -80
  57. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  58. package/dist/cjs/NavMagazine.js +138 -143
  59. package/dist/cjs/NavNative.js +115 -123
  60. package/dist/cjs/NavNormal.js +48 -53
  61. package/dist/cjs/OncliveHero.js +20 -20
  62. package/dist/cjs/OncliveLargeHero.js +66 -67
  63. package/dist/cjs/PageFilter.js +14 -15
  64. package/dist/cjs/PartnerDetailListing.js +106 -107
  65. package/dist/cjs/PdfDownload.js +8 -9
  66. package/dist/cjs/PopUpModal.js +19 -21
  67. package/dist/cjs/PubSection.js +39 -40
  68. package/dist/cjs/PubToc.js +16 -17
  69. package/dist/cjs/PublicationDeck.js +61 -66
  70. package/dist/cjs/PublicationLanding.js +83 -83
  71. package/dist/cjs/QueueDeckExpanded.js +292 -292
  72. package/dist/cjs/RecentNews.js +23 -24
  73. package/dist/cjs/RelatedContent.js +24 -25
  74. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  75. package/dist/cjs/RolesDeck.js +27 -32
  76. package/dist/cjs/Search.js +18 -22
  77. package/dist/cjs/Segment.js +7 -7
  78. package/dist/cjs/SeriesListingDeck.js +38 -39
  79. package/dist/cjs/{SeriesSlider-8b500128.js → SeriesSlider-0a4b30a7.js} +37 -38
  80. package/dist/cjs/SetCookie.js +1 -1
  81. package/dist/cjs/SideFooter.js +35 -36
  82. package/dist/cjs/SocialIcons.js +9 -10
  83. package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
  84. package/dist/cjs/SocialShare.js +29 -31
  85. package/dist/cjs/TaxonomyCard.js +57 -62
  86. package/dist/cjs/TaxonomyDescription.js +52 -53
  87. package/dist/cjs/TemplateNormal.js +72 -73
  88. package/dist/cjs/ThumbnailCard.js +20 -22
  89. package/dist/cjs/Ustream.js +26 -27
  90. package/dist/cjs/VerticalHero.js +17 -18
  91. package/dist/cjs/VideoProgramLandingPage.js +71 -75
  92. package/dist/cjs/VideoSeriesCard.js +31 -32
  93. package/dist/cjs/VideoSeriesFilter.js +19 -19
  94. package/dist/cjs/VideoSeriesLandingPage.js +46 -47
  95. package/dist/cjs/VideoSeriesListing.js +76 -77
  96. package/dist/cjs/View.js +263 -257
  97. package/dist/cjs/YahooHero.js +39 -40
  98. package/dist/cjs/YoutubeGroup.js +62 -63
  99. package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
  100. package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
  101. package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
  102. package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
  103. package/dist/cjs/{_set-species-a8cfdb84.js → _set-species-f92c67c5.js} +4 -4
  104. package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
  105. package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-533d476a.js} +8 -8
  106. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  107. package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
  108. package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
  109. package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
  110. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  111. package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
  112. package/dist/cjs/{extends-1e24fc8d.js → extends-60837c34.js} +1 -1
  113. package/dist/cjs/getQuery.js +1 -1
  114. package/dist/cjs/getRelatedArticle.js +13 -424
  115. package/dist/cjs/getRootDocGroup.js +7 -7
  116. package/dist/cjs/getSerializers.js +43 -43
  117. package/dist/cjs/{getTargeting-497b581d.js → getTargeting-9af0ef69.js} +3 -3
  118. package/dist/cjs/getTargeting.js +7 -7
  119. package/dist/cjs/iconBase-68959171.js +3 -0
  120. package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
  121. package/dist/cjs/{index-33d0daca.js → index-4ec63018.js} +902 -925
  122. package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
  123. package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
  124. package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
  125. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  126. package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
  127. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  128. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  129. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  130. package/dist/cjs/index.js +160 -162
  131. package/dist/cjs/{inherits-2eb23889.js → inherits-c9f99d47.js} +5 -5
  132. package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
  133. package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
  134. package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
  135. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  136. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  137. package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
  138. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  139. package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
  140. package/dist/cjs/timeDifferenceCalc.js +1 -1
  141. package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
  142. package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
  143. package/dist/cjs/urlFor.js +2 -2
  144. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  145. package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
  146. package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
  147. package/dist/esm/AD.js +7 -7
  148. package/dist/esm/AD300x250.js +24 -24
  149. package/dist/esm/AD300x250x600.js +24 -24
  150. package/dist/esm/AD728x90.js +27 -27
  151. package/dist/esm/ADFloatingFooter.js +26 -26
  152. package/dist/esm/ADFooter.js +11 -11
  153. package/dist/esm/ADGutter.js +26 -26
  154. package/dist/esm/{ADInfeed-6315ccfc.js → ADInfeed-892282a8.js} +9 -9
  155. package/dist/esm/ADSkyscraper.js +26 -26
  156. package/dist/esm/ADSponsoredResources.js +26 -26
  157. package/dist/esm/ADWebcast.js +26 -26
  158. package/dist/esm/ADWelcome.js +27 -27
  159. package/dist/esm/{ADlgInfeed-4e05a45c.js → ADlgInfeed-4cc9ead9.js} +8 -8
  160. package/dist/esm/AccordionPanel.js +24 -24
  161. package/dist/esm/AdSlot.js +23 -23
  162. package/dist/esm/AdSlotsProvider.js +13 -13
  163. package/dist/esm/AlphabeticList.js +21 -21
  164. package/dist/esm/ArticleCarousel.js +20 -20
  165. package/dist/esm/ArticleProgramLandingPage.js +52 -52
  166. package/dist/esm/ArticleSeriesLandingPage.js +35 -35
  167. package/dist/esm/ArticleSeriesListing.js +54 -54
  168. package/dist/esm/Auth.js +322 -804
  169. package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
  170. package/dist/esm/Beam.js +9 -9
  171. package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
  172. package/dist/esm/Breadcrumbs.js +17 -17
  173. package/dist/esm/CMEDeck.js +79 -79
  174. package/dist/esm/Column1.js +5 -5
  175. package/dist/esm/Column2.js +26 -26
  176. package/dist/esm/Column3.js +48 -48
  177. package/dist/esm/ConferenceArticleCard.js +19 -19
  178. package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
  179. package/dist/esm/DeckContent.js +76 -76
  180. package/dist/esm/DeckQueue.js +64 -64
  181. package/dist/esm/{Dfp-8bfbd310.js → Dfp-e9a07597.js} +20 -20
  182. package/dist/esm/EventsDeck.js +84 -84
  183. package/dist/esm/ExternalResources.js +71 -71
  184. package/dist/esm/Feature.js +18 -18
  185. package/dist/esm/ForbesHero.js +34 -34
  186. package/dist/esm/GridContent.js +139 -139
  187. package/dist/esm/GridHero.js +36 -36
  188. package/dist/esm/GroupDeck.js +46 -46
  189. package/dist/esm/HamMagazine.js +105 -105
  190. package/dist/esm/Header.js +7 -7
  191. package/dist/esm/Hero.js +9 -9
  192. package/dist/esm/HighlightenVideo.js +14 -14
  193. package/dist/esm/HorizontalArticleListing.js +66 -66
  194. package/dist/esm/HorizontalHero.js +21 -21
  195. package/dist/esm/IssueContentDeck.js +49 -49
  196. package/dist/esm/IssueDeck.js +46 -46
  197. package/dist/esm/IssueLanding.js +37 -37
  198. package/dist/esm/LeftNav.js +32 -32
  199. package/dist/esm/MasterDeck.js +64 -64
  200. package/dist/esm/MediaSeriesLanding.js +30 -30
  201. package/dist/esm/NavDvm.js +57 -57
  202. package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
  203. package/dist/esm/NavMagazine.js +114 -114
  204. package/dist/esm/NavNative.js +91 -91
  205. package/dist/esm/NavNormal.js +36 -36
  206. package/dist/esm/OncliveHero.js +17 -16
  207. package/dist/esm/OncliveLargeHero.js +59 -59
  208. package/dist/esm/PageFilter.js +12 -12
  209. package/dist/esm/PartnerDetailListing.js +102 -102
  210. package/dist/esm/PdfDownload.js +6 -6
  211. package/dist/esm/PopUpModal.js +14 -14
  212. package/dist/esm/PubSection.js +36 -36
  213. package/dist/esm/PubToc.js +13 -13
  214. package/dist/esm/PublicationDeck.js +38 -38
  215. package/dist/esm/PublicationLanding.js +59 -55
  216. package/dist/esm/QueueDeckExpanded.js +272 -272
  217. package/dist/esm/RecentNews.js +20 -20
  218. package/dist/esm/RelatedContent.js +19 -19
  219. package/dist/esm/RelatedTopicsDropdown.js +11 -11
  220. package/dist/esm/RolesDeck.js +13 -13
  221. package/dist/esm/Search.js +12 -12
  222. package/dist/esm/Segment.js +7 -7
  223. package/dist/esm/SeriesListingDeck.js +33 -33
  224. package/dist/esm/{SeriesSlider-00ad2992.js → SeriesSlider-f629bded.js} +27 -27
  225. package/dist/esm/SetCookie.js +1 -1
  226. package/dist/esm/SideFooter.js +31 -31
  227. package/dist/esm/SocialIcons.js +7 -7
  228. package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
  229. package/dist/esm/SocialShare.js +25 -25
  230. package/dist/esm/TaxonomyCard.js +41 -41
  231. package/dist/esm/TaxonomyDescription.js +47 -47
  232. package/dist/esm/TemplateNormal.js +66 -66
  233. package/dist/esm/ThumbnailCard.js +13 -13
  234. package/dist/esm/Ustream.js +23 -23
  235. package/dist/esm/VerticalHero.js +13 -13
  236. package/dist/esm/VideoProgramLandingPage.js +61 -61
  237. package/dist/esm/VideoSeriesCard.js +24 -24
  238. package/dist/esm/VideoSeriesFilter.js +16 -16
  239. package/dist/esm/VideoSeriesLandingPage.js +39 -39
  240. package/dist/esm/VideoSeriesListing.js +70 -70
  241. package/dist/esm/View.js +247 -237
  242. package/dist/esm/YahooHero.js +34 -34
  243. package/dist/esm/YoutubeGroup.js +46 -46
  244. package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
  245. package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
  246. package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
  247. package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
  248. package/dist/esm/{_set-species-494ed292.js → _set-species-3f8319f5.js} +4 -4
  249. package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
  250. package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-502f13b4.js} +8 -8
  251. package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
  252. package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
  253. package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
  254. package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
  255. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  256. package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
  257. package/dist/esm/{extends-31d65aba.js → extends-eb69e8ac.js} +1 -1
  258. package/dist/esm/getQuery.js +1 -1
  259. package/dist/esm/getRelatedArticle.js +13 -424
  260. package/dist/esm/getRootDocGroup.js +7 -7
  261. package/dist/esm/getSerializers.js +43 -43
  262. package/dist/esm/{getTargeting-2d402d66.js → getTargeting-7211f12c.js} +2 -2
  263. package/dist/esm/getTargeting.js +7 -7
  264. package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
  265. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  266. package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
  267. package/dist/esm/{index-47730283.js → index-c6e49ea4.js} +844 -860
  268. package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
  269. package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
  270. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  271. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  272. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  273. package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
  274. package/dist/esm/index.js +129 -128
  275. package/dist/esm/{inherits-5906fbea.js → inherits-fb9b6e8f.js} +5 -5
  276. package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
  277. package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
  278. package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
  279. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  280. package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
  281. package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
  282. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  283. package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
  284. package/dist/esm/timeDifferenceCalc.js +1 -1
  285. package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
  286. package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
  287. package/dist/esm/urlFor.js +1 -1
  288. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  289. package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
  290. package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
  291. package/package.json +1 -1
  292. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  293. package/dist/cjs/index-bd6c9f56.js +0 -211
  294. package/dist/esm/index-db3bb315.js +0 -207
package/dist/cjs/Auth.js CHANGED
@@ -2,35 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var asyncToGenerator = require('./asyncToGenerator-2edcb6ad.js');
6
- var stringify = require('./stringify-01cf47f7.js');
7
- var slicedToArray = require('./slicedToArray-db24842a.js');
8
- var React = require('react');
9
- var Router = require('next/router');
10
- var _extends = require('./extends-1e24fc8d.js');
11
- var reactBootstrap = require('react-bootstrap');
12
- var useSWR = require('swr');
13
- var index = require('./index-bd6c9f56.js');
14
- var Local = require('passport-local');
15
- var mysql = require('mysql');
16
- var util = require('./util-6f784d85.js');
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
+
17
7
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
18
- require('./es6.string.iterator-20d42c53.js');
19
- require('./_to-object-821a2927.js');
20
- require('./web.dom.iterable-4480325a.js');
8
+ require('./_to-object-329a650b.js');
9
+ require('./es6.string.iterator-cc0bbaa4.js');
21
10
  require('./_library-dd23b178.js');
22
- require('./core.get-iterator-method-b4615fd3.js');
23
- require('./_set-species-a8cfdb84.js');
24
- require('./_iter-detect-2613ffa1.js');
11
+ require('./_iter-detect-60b2f026.js');
12
+ require('./core.get-iterator-method-f62321d4.js');
25
13
  require('./_object-pie-68c5bcbc.js');
26
-
27
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
28
-
29
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
30
- var Router__default = /*#__PURE__*/_interopDefaultLegacy(Router);
31
- var useSWR__default = /*#__PURE__*/_interopDefaultLegacy(useSWR);
32
- var Local__default = /*#__PURE__*/_interopDefaultLegacy(Local);
33
- var mysql__default = /*#__PURE__*/_interopDefaultLegacy(mysql);
14
+ var _extends$1 = require('./extends-60837c34.js');
15
+ require('./web.dom.iterable-a0e279c1.js');
16
+ var React = require('react');
17
+ var React__default = _interopDefault(React);
18
+ var Router = require('next/router');
19
+ var Router__default = _interopDefault(Router);
20
+ var slicedToArray = require('./slicedToArray-8f385299.js');
21
+ var stringify = require('./stringify-7c5aff47.js');
22
+ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
23
+ require('./_set-species-f92c67c5.js');
24
+ var reactBootstrap = require('react-bootstrap');
25
+ var util = require('./util-f2c1b65b.js');
26
+ var useSWR = _interopDefault(require('swr'));
27
+ var cookie = require('cookie');
28
+ var Local = _interopDefault(require('passport-local'));
29
+ var mysql = _interopDefault(require('mysql'));
34
30
 
35
31
  var returnFormField = function returnFormField(_ref) {
36
32
  var name = _ref.name,
@@ -69,21 +65,21 @@ var returnFormField = function returnFormField(_ref) {
69
65
  }
70
66
 
71
67
  if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
72
- return React__default['default'].createElement(
68
+ return React__default.createElement(
73
69
  reactBootstrap.Form.Group,
74
- _extends._extends({}, opts, { controlId: name }),
75
- React__default['default'].createElement(
70
+ _extends$1._extends({}, opts, { controlId: name }),
71
+ React__default.createElement(
76
72
  reactBootstrap.Form.Label,
77
73
  { kye: name + '_label' },
78
74
  label,
79
- required && React__default['default'].createElement(
75
+ required && React__default.createElement(
80
76
  'span',
81
77
  { style: { color: 'red' } },
82
78
  '*'
83
79
  )
84
80
  ),
85
- React__default['default'].createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
86
- React__default['default'].createElement(
81
+ React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
82
+ React__default.createElement(
87
83
  reactBootstrap.Form.Control.Feedback,
88
84
  { key: name + '_feedback', type: 'invalid' },
89
85
  errors[name]
@@ -91,28 +87,28 @@ var returnFormField = function returnFormField(_ref) {
91
87
  );
92
88
  }
93
89
  if (type == 'select') {
94
- return React__default['default'].createElement(
90
+ return React__default.createElement(
95
91
  reactBootstrap.Form.Group,
96
- _extends._extends({}, opts, { key: name, controlId: name }),
97
- React__default['default'].createElement(
92
+ _extends$1._extends({}, opts, { key: name, controlId: name }),
93
+ React__default.createElement(
98
94
  reactBootstrap.Form.Label,
99
95
  { key: name + '_' + label },
100
96
  label,
101
- required && React__default['default'].createElement(
97
+ required && React__default.createElement(
102
98
  'span',
103
99
  { key: name + '_required_span', style: { color: 'red' } },
104
100
  '*'
105
101
  )
106
102
  ),
107
- React__default['default'].createElement(
103
+ React__default.createElement(
108
104
  reactBootstrap.Form.Control,
109
105
  { key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
110
- React__default['default'].createElement('option', { value: '', key: name + '_options_empty' }),
106
+ React__default.createElement('option', { value: '', key: name + '_options_empty' }),
111
107
  options.map(function (option, index) {
112
108
  var value = option.value ? option.value : option;
113
109
  var label = option.label ? option.label : option;
114
110
  var key = name + '_options_' + index;
115
- return React__default['default'].createElement(
111
+ return React__default.createElement(
116
112
  'option',
117
113
  { key: key, value: value },
118
114
  label
@@ -123,25 +119,25 @@ var returnFormField = function returnFormField(_ref) {
123
119
  }
124
120
 
125
121
  if (type == 'radio' || type == 'checkbox') {
126
- return React__default['default'].createElement(
122
+ return React__default.createElement(
127
123
  reactBootstrap.Form.Group,
128
124
  opts,
129
- React__default['default'].createElement(
125
+ React__default.createElement(
130
126
  reactBootstrap.Form.Label,
131
127
  null,
132
128
  label,
133
- required && React__default['default'].createElement(
129
+ required && React__default.createElement(
134
130
  'span',
135
131
  { style: { color: 'red' } },
136
132
  '*'
137
133
  )
138
134
  ),
139
135
  options.map(function (option, index) {
140
- return React__default['default'].createElement(
136
+ return React__default.createElement(
141
137
  reactBootstrap.Form.Check,
142
138
  { type: type, key: index, required: required },
143
- React__default['default'].createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
144
- React__default['default'].createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
139
+ React__default.createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
140
+ React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
145
141
  );
146
142
  })
147
143
  );
@@ -227,7 +223,7 @@ function useUser() {
227
223
  redirectTo = _ref.redirectTo,
228
224
  redirectIfFound = _ref.redirectIfFound;
229
225
 
230
- var _useSWR = useSWR__default['default']('/api/auth/user', dataHandler),
226
+ var _useSWR = useSWR('/api/auth/user', dataHandler),
231
227
  data = _useSWR.data,
232
228
  error = _useSWR.error;
233
229
 
@@ -242,7 +238,7 @@ function useUser() {
242
238
  redirectTo && !redirectIfFound && !hasUser ||
243
239
  // If redirectIfFound is also set, redirect if the user was found
244
240
  redirectIfFound && hasUser) {
245
- Router__default['default'].push(redirectTo);
241
+ Router__default.push(redirectTo);
246
242
  }
247
243
  }, [redirectTo, redirectIfFound, finished, hasUser]);
248
244
 
@@ -348,43 +344,43 @@ var LoginForm = function LoginForm(props) {
348
344
  loading = _useState4[0],
349
345
  setLoading = _useState4[1];
350
346
 
351
- return React__default['default'].createElement(
347
+ return React__default.createElement(
352
348
  reactBootstrap.Form,
353
349
  { className: 'login', onSubmit: handleSubmit },
354
- React__default['default'].createElement(
350
+ React__default.createElement(
355
351
  'h1',
356
352
  null,
357
353
  'Login'
358
354
  ),
359
- React__default['default'].createElement('hr', null),
355
+ React__default.createElement('hr', null),
360
356
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
361
357
  returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
362
- React__default['default'].createElement('hr', null),
363
- React__default['default'].createElement(
358
+ React__default.createElement('hr', null),
359
+ React__default.createElement(
364
360
  reactBootstrap.Form.Row,
365
361
  null,
366
- React__default['default'].createElement(
362
+ React__default.createElement(
367
363
  reactBootstrap.Form.Group,
368
364
  { as: reactBootstrap.Col },
369
- React__default['default'].createElement(
365
+ React__default.createElement(
370
366
  'a',
371
367
  { href: '/auth/signup' },
372
368
  'I don\'t have an account'
373
369
  )
374
370
  ),
375
- React__default['default'].createElement(
371
+ React__default.createElement(
376
372
  reactBootstrap.Form.Group,
377
373
  { as: reactBootstrap.Col, className: 'text-right' },
378
- !loading && React__default['default'].createElement(
374
+ !loading && React__default.createElement(
379
375
  reactBootstrap.Button,
380
376
  { type: 'submit' },
381
377
  'Login'
382
378
  ),
383
- loading && React__default['default'].createElement(
379
+ loading && React__default.createElement(
384
380
  reactBootstrap.Button,
385
381
  { variant: 'primary', disabled: true },
386
- React__default['default'].createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
387
- React__default['default'].createElement(
382
+ React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
383
+ React__default.createElement(
388
384
  'span',
389
385
  { className: 'sr-only' },
390
386
  'Loading...'
@@ -392,12 +388,12 @@ var LoginForm = function LoginForm(props) {
392
388
  )
393
389
  )
394
390
  ),
395
- errorMsg && React__default['default'].createElement(
391
+ errorMsg && React__default.createElement(
396
392
  'p',
397
393
  { className: 'error' },
398
394
  errorMsg
399
395
  ),
400
- React__default['default'].createElement(
396
+ React__default.createElement(
401
397
  'style',
402
398
  { jsx: 'true'.toString() },
403
399
  '\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -653,29 +649,29 @@ var SignupForm = function SignupForm(props) {
653
649
  loading = _useState14[0],
654
650
  setLoading = _useState14[1];
655
651
 
656
- return React__default['default'].createElement(
652
+ return React__default.createElement(
657
653
  reactBootstrap.Form,
658
654
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
659
- React__default['default'].createElement(
655
+ React__default.createElement(
660
656
  'h1',
661
657
  null,
662
658
  'Sign Up'
663
659
  ),
664
- React__default['default'].createElement('hr', null),
660
+ React__default.createElement('hr', null),
665
661
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
666
- React__default['default'].createElement(
662
+ React__default.createElement(
667
663
  reactBootstrap.Form.Row,
668
664
  null,
669
665
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
670
666
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
671
667
  ),
672
- React__default['default'].createElement(
668
+ React__default.createElement(
673
669
  reactBootstrap.Form.Row,
674
670
  null,
675
671
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
676
672
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
677
673
  ),
678
- React__default['default'].createElement(
674
+ React__default.createElement(
679
675
  reactBootstrap.Form.Row,
680
676
  null,
681
677
  returnFormField({
@@ -689,7 +685,7 @@ var SignupForm = function SignupForm(props) {
689
685
  }),
690
686
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
691
687
  ),
692
- React__default['default'].createElement(
688
+ React__default.createElement(
693
689
  reactBootstrap.Form.Row,
694
690
  null,
695
691
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
@@ -736,38 +732,38 @@ var SignupForm = function SignupForm(props) {
736
732
  required: true,
737
733
  options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
738
734
  }),
739
- React__default['default'].createElement('hr', null),
740
- React__default['default'].createElement(
735
+ React__default.createElement('hr', null),
736
+ React__default.createElement(
741
737
  reactBootstrap.Form.Row,
742
738
  null,
743
- React__default['default'].createElement(
739
+ React__default.createElement(
744
740
  reactBootstrap.Form.Group,
745
741
  { as: reactBootstrap.Col },
746
- React__default['default'].createElement(
742
+ React__default.createElement(
747
743
  'a',
748
744
  { href: '/auth/login' },
749
745
  'I already have an account'
750
746
  )
751
747
  ),
752
- React__default['default'].createElement(
748
+ React__default.createElement(
753
749
  reactBootstrap.Form.Group,
754
750
  { as: reactBootstrap.Col, className: 'text-right' },
755
- !loading && React__default['default'].createElement(
751
+ !loading && React__default.createElement(
756
752
  reactBootstrap.Button,
757
753
  { type: 'submit' },
758
754
  'Sign Up'
759
755
  ),
760
- loading && React__default['default'].createElement(
756
+ loading && React__default.createElement(
761
757
  reactBootstrap.Button,
762
758
  { variant: 'primary', disabled: true },
763
- React__default['default'].createElement(reactBootstrap.Spinner, {
759
+ React__default.createElement(reactBootstrap.Spinner, {
764
760
  as: 'span',
765
761
  animation: 'border',
766
762
  role: 'status',
767
763
  'aria-hidden': 'true',
768
764
  size: 'sm'
769
765
  }),
770
- React__default['default'].createElement(
766
+ React__default.createElement(
771
767
  'span',
772
768
  { className: 'sr-only' },
773
769
  'Loading...'
@@ -775,12 +771,12 @@ var SignupForm = function SignupForm(props) {
775
771
  )
776
772
  )
777
773
  ),
778
- errorMsg && React__default['default'].createElement(
774
+ errorMsg && React__default.createElement(
779
775
  'p',
780
776
  { className: 'error' },
781
777
  errorMsg
782
778
  ),
783
- React__default['default'].createElement(
779
+ React__default.createElement(
784
780
  'style',
785
781
  { jsx: 'true'.toString() },
786
782
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
@@ -1070,32 +1066,32 @@ var SignupForm$1 = function SignupForm(props) {
1070
1066
  loading = _useState18[0],
1071
1067
  setLoading = _useState18[1];
1072
1068
 
1073
- return React__default['default'].createElement(
1069
+ return React__default.createElement(
1074
1070
  reactBootstrap.Form,
1075
1071
  { className: 'login', id: 'signupForm', onSubmit: handleSubmit },
1076
- React__default['default'].createElement(
1072
+ React__default.createElement(
1077
1073
  'h1',
1078
1074
  null,
1079
1075
  'Profile'
1080
1076
  ),
1081
- React__default['default'].createElement('hr', null),
1082
- userData ? React__default['default'].createElement(
1083
- React__default['default'].Fragment,
1077
+ React__default.createElement('hr', null),
1078
+ userData ? React__default.createElement(
1079
+ React__default.Fragment,
1084
1080
  null,
1085
1081
  returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
1086
- React__default['default'].createElement(
1082
+ React__default.createElement(
1087
1083
  reactBootstrap.Form.Row,
1088
1084
  null,
1089
1085
  returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
1090
1086
  returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
1091
1087
  ),
1092
- React__default['default'].createElement(
1088
+ React__default.createElement(
1093
1089
  reactBootstrap.Form.Row,
1094
1090
  null,
1095
1091
  returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
1096
1092
  returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
1097
1093
  ),
1098
- React__default['default'].createElement(
1094
+ React__default.createElement(
1099
1095
  reactBootstrap.Form.Row,
1100
1096
  null,
1101
1097
  returnFormField({
@@ -1110,7 +1106,7 @@ var SignupForm$1 = function SignupForm(props) {
1110
1106
  }),
1111
1107
  countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
1112
1108
  ),
1113
- React__default['default'].createElement(
1109
+ React__default.createElement(
1114
1110
  reactBootstrap.Form.Row,
1115
1111
  null,
1116
1112
  countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
@@ -1160,29 +1156,29 @@ var SignupForm$1 = function SignupForm(props) {
1160
1156
  required: true,
1161
1157
  options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
1162
1158
  }),
1163
- React__default['default'].createElement('hr', null),
1164
- React__default['default'].createElement(
1159
+ React__default.createElement('hr', null),
1160
+ React__default.createElement(
1165
1161
  reactBootstrap.Form.Row,
1166
1162
  null,
1167
- React__default['default'].createElement(
1163
+ React__default.createElement(
1168
1164
  reactBootstrap.Form.Group,
1169
1165
  { as: reactBootstrap.Col },
1170
- !loading && React__default['default'].createElement(
1166
+ !loading && React__default.createElement(
1171
1167
  reactBootstrap.Button,
1172
1168
  { type: 'submit' },
1173
1169
  'Update'
1174
1170
  ),
1175
- loading && React__default['default'].createElement(
1171
+ loading && React__default.createElement(
1176
1172
  reactBootstrap.Button,
1177
1173
  { variant: 'primary', disabled: true },
1178
- React__default['default'].createElement(reactBootstrap.Spinner, {
1174
+ React__default.createElement(reactBootstrap.Spinner, {
1179
1175
  as: 'span',
1180
1176
  animation: 'border',
1181
1177
  role: 'status',
1182
1178
  'aria-hidden': 'true',
1183
1179
  size: 'sm'
1184
1180
  }),
1185
- React__default['default'].createElement(
1181
+ React__default.createElement(
1186
1182
  'span',
1187
1183
  { className: 'sr-only' },
1188
1184
  'Loading...'
@@ -1190,24 +1186,24 @@ var SignupForm$1 = function SignupForm(props) {
1190
1186
  )
1191
1187
  )
1192
1188
  )
1193
- ) : React__default['default'].createElement(reactBootstrap.Spinner, {
1189
+ ) : React__default.createElement(reactBootstrap.Spinner, {
1194
1190
  as: 'span',
1195
1191
  animation: 'border',
1196
1192
  role: 'status',
1197
1193
  'aria-hidden': 'true',
1198
1194
  size: 'sm'
1199
1195
  }),
1200
- errorMsg && React__default['default'].createElement(
1196
+ errorMsg && React__default.createElement(
1201
1197
  'p',
1202
1198
  { className: 'error' },
1203
1199
  errorMsg
1204
1200
  ),
1205
- successMsg && React__default['default'].createElement(
1201
+ successMsg && React__default.createElement(
1206
1202
  'p',
1207
1203
  { className: 'success' },
1208
1204
  successMsg
1209
1205
  ),
1210
- React__default['default'].createElement(
1206
+ React__default.createElement(
1211
1207
  'style',
1212
1208
  { jsx: 'true'.toString() },
1213
1209
  ' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
@@ -1220,7 +1216,7 @@ var MAX_AGE = 60 * 60 * 8; // 8 hours
1220
1216
 
1221
1217
  function setTokenCookie(res, token, eKey) {
1222
1218
  var cookies_serailized = [];
1223
- cookies_serailized.push(index.serialize_1(TOKEN_NAME, token, {
1219
+ cookies_serailized.push(cookie.serialize(TOKEN_NAME, token, {
1224
1220
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1225
1221
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1226
1222
  //httpOnly: true,
@@ -1229,7 +1225,7 @@ function setTokenCookie(res, token, eKey) {
1229
1225
  //sameSite: 'lax',
1230
1226
  }));
1231
1227
 
1232
- cookies_serailized.push(index.serialize_1('eKey', eKey, {
1228
+ cookies_serailized.push(cookie.serialize('eKey', eKey, {
1233
1229
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1234
1230
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1235
1231
  //httpOnly: true,
@@ -1243,12 +1239,12 @@ function setTokenCookie(res, token, eKey) {
1243
1239
 
1244
1240
  function removeTokenCookie(res) {
1245
1241
  var cookies_serailized = [];
1246
- cookies_serailized.push(index.serialize_1(TOKEN_NAME, '', {
1242
+ cookies_serailized.push(cookie.serialize(TOKEN_NAME, '', {
1247
1243
  maxAge: -1,
1248
1244
  expires: new Date(Date.now() - MAX_AGE * 1000),
1249
1245
  path: '/'
1250
1246
  }));
1251
- cookies_serailized.push(index.serialize_1('eKey', '', {
1247
+ cookies_serailized.push(cookie.serialize('eKey', '', {
1252
1248
  maxAge: -1,
1253
1249
  expires: new Date(Date.now() - MAX_AGE * 1000),
1254
1250
  path: '/'
@@ -1262,8 +1258,8 @@ function parseCookies(req) {
1262
1258
  if (req.cookies) return req.cookies;
1263
1259
 
1264
1260
  // For pages we do need to parse the cookies.
1265
- var cookie = req.headers ? req.headers.cookie : null;
1266
- return index.parse_1(cookie || '');
1261
+ var cookie$1 = req.headers ? req.headers.cookie : null;
1262
+ return cookie.parse(cookie$1 || '');
1267
1263
  }
1268
1264
 
1269
1265
  function getTokenCookie(req) {
@@ -1549,59 +1545,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1549
1545
 
1550
1546
  var defineProperties_1 = defineProperties;
1551
1547
 
1552
- /* eslint no-invalid-this: 1 */
1553
-
1554
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1555
- var slice$1 = Array.prototype.slice;
1556
- var toStr$3 = Object.prototype.toString;
1557
- var funcType = '[object Function]';
1558
-
1559
- var implementation$1 = function bind(that) {
1560
- var target = this;
1561
- if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1562
- throw new TypeError(ERROR_MESSAGE + target);
1563
- }
1564
- var args = slice$1.call(arguments, 1);
1565
-
1566
- var bound;
1567
- var binder = function () {
1568
- if (this instanceof bound) {
1569
- var result = target.apply(
1570
- this,
1571
- args.concat(slice$1.call(arguments))
1572
- );
1573
- if (Object(result) === result) {
1574
- return result;
1575
- }
1576
- return this;
1577
- } else {
1578
- return target.apply(
1579
- that,
1580
- args.concat(slice$1.call(arguments))
1581
- );
1582
- }
1583
- };
1584
-
1585
- var boundLength = Math.max(0, target.length - args.length);
1586
- var boundArgs = [];
1587
- for (var i = 0; i < boundLength; i++) {
1588
- boundArgs.push('$' + i);
1589
- }
1590
-
1591
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1592
-
1593
- if (target.prototype) {
1594
- var Empty = function Empty() {};
1595
- Empty.prototype = target.prototype;
1596
- bound.prototype = new Empty();
1597
- Empty.prototype = null;
1598
- }
1599
-
1600
- return bound;
1601
- };
1602
-
1603
- var functionBind = Function.prototype.bind || implementation$1;
1604
-
1605
1548
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1606
1549
  var shams = function hasSymbols() {
1607
1550
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1655,21 +1598,68 @@ var hasSymbols$1 = function hasNativeSymbols() {
1655
1598
  return shams();
1656
1599
  };
1657
1600
 
1658
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1601
+ /* eslint no-invalid-this: 1 */
1659
1602
 
1660
- var undefined$1;
1603
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1604
+ var slice$1 = Array.prototype.slice;
1605
+ var toStr$3 = Object.prototype.toString;
1606
+ var funcType = '[object Function]';
1661
1607
 
1662
- var $SyntaxError = SyntaxError;
1663
- var $Function = Function;
1664
- var $TypeError = TypeError;
1608
+ var implementation$1 = function bind(that) {
1609
+ var target = this;
1610
+ if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
1611
+ throw new TypeError(ERROR_MESSAGE + target);
1612
+ }
1613
+ var args = slice$1.call(arguments, 1);
1665
1614
 
1666
- // eslint-disable-next-line consistent-return
1667
- var getEvalledConstructor = function (expressionSyntax) {
1668
- try {
1669
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1670
- } catch (e) {}
1615
+ var bound;
1616
+ var binder = function () {
1617
+ if (this instanceof bound) {
1618
+ var result = target.apply(
1619
+ this,
1620
+ args.concat(slice$1.call(arguments))
1621
+ );
1622
+ if (Object(result) === result) {
1623
+ return result;
1624
+ }
1625
+ return this;
1626
+ } else {
1627
+ return target.apply(
1628
+ that,
1629
+ args.concat(slice$1.call(arguments))
1630
+ );
1631
+ }
1632
+ };
1633
+
1634
+ var boundLength = Math.max(0, target.length - args.length);
1635
+ var boundArgs = [];
1636
+ for (var i = 0; i < boundLength; i++) {
1637
+ boundArgs.push('$' + i);
1638
+ }
1639
+
1640
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1641
+
1642
+ if (target.prototype) {
1643
+ var Empty = function Empty() {};
1644
+ Empty.prototype = target.prototype;
1645
+ bound.prototype = new Empty();
1646
+ Empty.prototype = null;
1647
+ }
1648
+
1649
+ return bound;
1671
1650
  };
1672
1651
 
1652
+ var functionBind = Function.prototype.bind || implementation$1;
1653
+
1654
+ /* globals
1655
+ Atomics,
1656
+ SharedArrayBuffer,
1657
+ */
1658
+
1659
+ var undefined$1;
1660
+
1661
+ var $TypeError = TypeError;
1662
+
1673
1663
  var $gOPD = Object.getOwnPropertyDescriptor;
1674
1664
  if ($gOPD) {
1675
1665
  try {
@@ -1679,9 +1669,7 @@ if ($gOPD) {
1679
1669
  }
1680
1670
  }
1681
1671
 
1682
- var throwTypeError = function () {
1683
- throw new $TypeError();
1684
- };
1672
+ var throwTypeError = function () { throw new $TypeError(); };
1685
1673
  var ThrowTypeError = $gOPD
1686
1674
  ? (function () {
1687
1675
  try {
@@ -1702,351 +1690,203 @@ var ThrowTypeError = $gOPD
1702
1690
  var hasSymbols$2 = hasSymbols$1();
1703
1691
 
1704
1692
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1705
-
1706
- var needsEval = {};
1693
+ var generatorFunction = undefined$1;
1694
+ var asyncFunction = undefined$1;
1695
+ var asyncGenFunction = undefined$1;
1707
1696
 
1708
1697
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1709
1698
 
1710
1699
  var INTRINSICS = {
1711
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1712
1700
  '%Array%': Array,
1713
1701
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1702
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1714
1703
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1704
+ '%ArrayPrototype%': Array.prototype,
1705
+ '%ArrayProto_entries%': Array.prototype.entries,
1706
+ '%ArrayProto_forEach%': Array.prototype.forEach,
1707
+ '%ArrayProto_keys%': Array.prototype.keys,
1708
+ '%ArrayProto_values%': Array.prototype.values,
1715
1709
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1716
- '%AsyncFunction%': needsEval,
1717
- '%AsyncGenerator%': needsEval,
1718
- '%AsyncGeneratorFunction%': needsEval,
1719
- '%AsyncIteratorPrototype%': needsEval,
1710
+ '%AsyncFunction%': asyncFunction,
1711
+ '%AsyncFunctionPrototype%': undefined$1,
1712
+ '%AsyncGenerator%': undefined$1,
1713
+ '%AsyncGeneratorFunction%': asyncGenFunction,
1714
+ '%AsyncGeneratorPrototype%': undefined$1,
1715
+ '%AsyncIteratorPrototype%': undefined$1,
1720
1716
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1721
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1722
1717
  '%Boolean%': Boolean,
1718
+ '%BooleanPrototype%': Boolean.prototype,
1723
1719
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1720
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1724
1721
  '%Date%': Date,
1722
+ '%DatePrototype%': Date.prototype,
1725
1723
  '%decodeURI%': decodeURI,
1726
1724
  '%decodeURIComponent%': decodeURIComponent,
1727
1725
  '%encodeURI%': encodeURI,
1728
1726
  '%encodeURIComponent%': encodeURIComponent,
1729
1727
  '%Error%': Error,
1728
+ '%ErrorPrototype%': Error.prototype,
1730
1729
  '%eval%': eval, // eslint-disable-line no-eval
1731
1730
  '%EvalError%': EvalError,
1731
+ '%EvalErrorPrototype%': EvalError.prototype,
1732
1732
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1733
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1733
1734
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1734
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1735
- '%Function%': $Function,
1736
- '%GeneratorFunction%': needsEval,
1735
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1736
+ '%Function%': Function,
1737
+ '%FunctionPrototype%': Function.prototype,
1738
+ '%Generator%': undefined$1,
1739
+ '%GeneratorFunction%': generatorFunction,
1740
+ '%GeneratorPrototype%': undefined$1,
1737
1741
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1742
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1738
1743
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1744
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1739
1745
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1746
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1740
1747
  '%isFinite%': isFinite,
1741
1748
  '%isNaN%': isNaN,
1742
1749
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1743
1750
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1751
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1744
1752
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1745
1753
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1754
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1746
1755
  '%Math%': Math,
1747
1756
  '%Number%': Number,
1757
+ '%NumberPrototype%': Number.prototype,
1748
1758
  '%Object%': Object,
1759
+ '%ObjectPrototype%': Object.prototype,
1760
+ '%ObjProto_toString%': Object.prototype.toString,
1761
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
1749
1762
  '%parseFloat%': parseFloat,
1750
1763
  '%parseInt%': parseInt,
1751
1764
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1765
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1766
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1767
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1768
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1769
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1752
1770
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1753
1771
  '%RangeError%': RangeError,
1772
+ '%RangeErrorPrototype%': RangeError.prototype,
1754
1773
  '%ReferenceError%': ReferenceError,
1774
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
1755
1775
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1756
1776
  '%RegExp%': RegExp,
1777
+ '%RegExpPrototype%': RegExp.prototype,
1757
1778
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1758
1779
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1780
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1759
1781
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1782
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1760
1783
  '%String%': String,
1761
1784
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1785
+ '%StringPrototype%': String.prototype,
1762
1786
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1763
- '%SyntaxError%': $SyntaxError,
1787
+ '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1788
+ '%SyntaxError%': SyntaxError,
1789
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
1764
1790
  '%ThrowTypeError%': ThrowTypeError,
1765
1791
  '%TypedArray%': TypedArray,
1792
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1766
1793
  '%TypeError%': $TypeError,
1794
+ '%TypeErrorPrototype%': $TypeError.prototype,
1767
1795
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1796
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1768
1797
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1798
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1769
1799
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1800
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1770
1801
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1802
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1771
1803
  '%URIError%': URIError,
1804
+ '%URIErrorPrototype%': URIError.prototype,
1772
1805
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1773
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1774
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1775
- };
1776
-
1777
- var doEval = function doEval(name) {
1778
- var value;
1779
- if (name === '%AsyncFunction%') {
1780
- value = getEvalledConstructor('async function () {}');
1781
- } else if (name === '%GeneratorFunction%') {
1782
- value = getEvalledConstructor('function* () {}');
1783
- } else if (name === '%AsyncGeneratorFunction%') {
1784
- value = getEvalledConstructor('async function* () {}');
1785
- } else if (name === '%AsyncGenerator%') {
1786
- var fn = doEval('%AsyncGeneratorFunction%');
1787
- if (fn) {
1788
- value = fn.prototype;
1789
- }
1790
- } else if (name === '%AsyncIteratorPrototype%') {
1791
- var gen = doEval('%AsyncGenerator%');
1792
- if (gen) {
1793
- value = getProto(gen.prototype);
1794
- }
1795
- }
1796
-
1797
- INTRINSICS[name] = value;
1798
-
1799
- return value;
1806
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
1807
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
1808
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1800
1809
  };
1801
1810
 
1802
- var LEGACY_ALIASES = {
1803
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1804
- '%ArrayPrototype%': ['Array', 'prototype'],
1805
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1806
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1807
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1808
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1809
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1810
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1811
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1812
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1813
- '%DataViewPrototype%': ['DataView', 'prototype'],
1814
- '%DatePrototype%': ['Date', 'prototype'],
1815
- '%ErrorPrototype%': ['Error', 'prototype'],
1816
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1817
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1818
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1819
- '%FunctionPrototype%': ['Function', 'prototype'],
1820
- '%Generator%': ['GeneratorFunction', 'prototype'],
1821
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1822
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1823
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1824
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1825
- '%JSONParse%': ['JSON', 'parse'],
1826
- '%JSONStringify%': ['JSON', 'stringify'],
1827
- '%MapPrototype%': ['Map', 'prototype'],
1828
- '%NumberPrototype%': ['Number', 'prototype'],
1829
- '%ObjectPrototype%': ['Object', 'prototype'],
1830
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1831
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1832
- '%PromisePrototype%': ['Promise', 'prototype'],
1833
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1834
- '%Promise_all%': ['Promise', 'all'],
1835
- '%Promise_reject%': ['Promise', 'reject'],
1836
- '%Promise_resolve%': ['Promise', 'resolve'],
1837
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1838
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1839
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1840
- '%SetPrototype%': ['Set', 'prototype'],
1841
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1842
- '%StringPrototype%': ['String', 'prototype'],
1843
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1844
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1845
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1846
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1847
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1848
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1849
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1850
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1851
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1852
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1853
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1854
- };
1855
-
1856
-
1857
1811
 
1858
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
1859
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
1860
1812
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1861
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1862
1813
 
1863
1814
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1864
1815
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1865
1816
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1866
1817
  var stringToPath = function stringToPath(string) {
1867
- var first = $strSlice(string, 0, 1);
1868
- var last = $strSlice(string, -1);
1869
- if (first === '%' && last !== '%') {
1870
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1871
- } else if (last === '%' && first !== '%') {
1872
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1873
- }
1874
1818
  var result = [];
1875
1819
  $replace(string, rePropName, function (match, number, quote, subString) {
1876
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
1820
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1877
1821
  });
1878
1822
  return result;
1879
1823
  };
1880
1824
  /* end adaptation */
1881
1825
 
1882
1826
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1883
- var intrinsicName = name;
1884
- var alias;
1885
- if (src(LEGACY_ALIASES, intrinsicName)) {
1886
- alias = LEGACY_ALIASES[intrinsicName];
1887
- intrinsicName = '%' + alias[0] + '%';
1827
+ if (!(name in INTRINSICS)) {
1828
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1888
1829
  }
1889
1830
 
1890
- if (src(INTRINSICS, intrinsicName)) {
1891
- var value = INTRINSICS[intrinsicName];
1892
- if (value === needsEval) {
1893
- value = doEval(intrinsicName);
1894
- }
1895
- if (typeof value === 'undefined' && !allowMissing) {
1896
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1897
- }
1898
-
1899
- return {
1900
- alias: alias,
1901
- name: intrinsicName,
1902
- value: value
1903
- };
1831
+ // istanbul ignore if // hopefully this is impossible to test :-)
1832
+ if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
1833
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1904
1834
  }
1905
1835
 
1906
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1836
+ return INTRINSICS[name];
1907
1837
  };
1908
1838
 
1909
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1839
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1910
1840
  if (typeof name !== 'string' || name.length === 0) {
1911
- throw new $TypeError('intrinsic name must be a non-empty string');
1841
+ throw new TypeError('intrinsic name must be a non-empty string');
1912
1842
  }
1913
1843
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1914
- throw new $TypeError('"allowMissing" argument must be a boolean');
1844
+ throw new TypeError('"allowMissing" argument must be a boolean');
1915
1845
  }
1916
1846
 
1917
1847
  var parts = stringToPath(name);
1918
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1919
-
1920
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1921
- var intrinsicRealName = intrinsic.name;
1922
- var value = intrinsic.value;
1923
- var skipFurtherCaching = false;
1924
1848
 
1925
- var alias = intrinsic.alias;
1926
- if (alias) {
1927
- intrinsicBaseName = alias[0];
1928
- $spliceApply(parts, $concat([0, 1], alias));
1929
- }
1930
-
1931
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1932
- var part = parts[i];
1933
- var first = $strSlice(part, 0, 1);
1934
- var last = $strSlice(part, -1);
1935
- if (
1936
- (
1937
- (first === '"' || first === "'" || first === '`')
1938
- || (last === '"' || last === "'" || last === '`')
1939
- )
1940
- && first !== last
1941
- ) {
1942
- throw new $SyntaxError('property names with quotes must have matching quotes');
1943
- }
1944
- if (part === 'constructor' || !isOwn) {
1945
- skipFurtherCaching = true;
1946
- }
1947
-
1948
- intrinsicBaseName += '.' + part;
1949
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1950
-
1951
- if (src(INTRINSICS, intrinsicRealName)) {
1952
- value = INTRINSICS[intrinsicRealName];
1953
- } else if (value != null) {
1954
- if (!(part in value)) {
1955
- if (!allowMissing) {
1956
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1957
- }
1958
- return void undefined$1;
1959
- }
1849
+ var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
1850
+ for (var i = 1; i < parts.length; i += 1) {
1851
+ if (value != null) {
1960
1852
  if ($gOPD && (i + 1) >= parts.length) {
1961
- var desc = $gOPD(value, part);
1962
- isOwn = !!desc;
1963
-
1964
- // By convention, when a data property is converted to an accessor
1965
- // property to emulate a data property that does not suffer from
1966
- // the override mistake, that accessor's getter is marked with
1967
- // an `originalValue` property. Here, when we detect this, we
1968
- // uphold the illusion by pretending to see that original data
1969
- // property, i.e., returning the value rather than the getter
1970
- // itself.
1971
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1972
- value = desc.get;
1973
- } else {
1974
- value = value[part];
1853
+ var desc = $gOPD(value, parts[i]);
1854
+ if (!allowMissing && !(parts[i] in value)) {
1855
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1975
1856
  }
1857
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
1976
1858
  } else {
1977
- isOwn = src(value, part);
1978
- value = value[part];
1979
- }
1980
-
1981
- if (isOwn && !skipFurtherCaching) {
1982
- INTRINSICS[intrinsicRealName] = value;
1859
+ value = value[parts[i]];
1983
1860
  }
1984
1861
  }
1985
1862
  }
1986
1863
  return value;
1987
1864
  };
1988
1865
 
1989
- var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
1990
-
1991
-
1992
-
1866
+ var $Function = GetIntrinsic('%Function%');
1867
+ var $apply = $Function.apply;
1868
+ var $call = $Function.call;
1993
1869
 
1994
- var $apply = getIntrinsic('%Function.prototype.apply%');
1995
- var $call = getIntrinsic('%Function.prototype.call%');
1996
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1997
-
1998
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1999
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2000
- var $max = getIntrinsic('%Math.max%');
2001
-
2002
- if ($defineProperty) {
2003
- try {
2004
- $defineProperty({}, 'a', { value: 1 });
2005
- } catch (e) {
2006
- // IE 8 has a broken defineProperty
2007
- $defineProperty = null;
2008
- }
2009
- }
2010
-
2011
- module.exports = function callBind(originalFunction) {
2012
- var func = $reflectApply(functionBind, $call, arguments);
2013
- if ($gOPD && $defineProperty) {
2014
- var desc = $gOPD(func, 'length');
2015
- if (desc.configurable) {
2016
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2017
- $defineProperty(
2018
- func,
2019
- 'length',
2020
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2021
- );
2022
- }
2023
- }
2024
- return func;
1870
+ var callBind = function callBind() {
1871
+ return functionBind.apply($call, arguments);
2025
1872
  };
2026
1873
 
2027
- var applyBind = function applyBind() {
2028
- return $reflectApply(functionBind, $apply, arguments);
1874
+ var apply = function applyBind() {
1875
+ return functionBind.apply($apply, arguments);
2029
1876
  };
1877
+ callBind.apply = apply;
2030
1878
 
2031
- if ($defineProperty) {
2032
- $defineProperty(module.exports, 'apply', { value: applyBind });
2033
- } else {
2034
- module.exports.apply = applyBind;
2035
- }
2036
- });
2037
- callBind.apply;
2038
-
2039
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
1879
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2040
1880
 
2041
1881
  var callBound = function callBoundIntrinsic(name, allowMissing) {
2042
- var intrinsic = getIntrinsic(name, !!allowMissing);
2043
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1882
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
1883
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2044
1884
  return callBind(intrinsic);
2045
1885
  }
2046
1886
  return intrinsic;
2047
1887
  };
2048
1888
 
2049
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1889
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2050
1890
 
2051
1891
  if ($defineProperty) {
2052
1892
  try {
@@ -2088,8 +1928,10 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2088
1928
  return true;
2089
1929
  };
2090
1930
 
2091
- var $TypeError$1 = getIntrinsic('%TypeError%');
2092
- var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
1931
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1932
+
1933
+ var $TypeError$1 = GetIntrinsic('%TypeError%');
1934
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
2093
1935
 
2094
1936
 
2095
1937
 
@@ -2126,14 +1968,14 @@ var predicates = {
2126
1968
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
2127
1969
  var predicate = predicates[recordType];
2128
1970
  if (typeof predicate !== 'function') {
2129
- throw new $SyntaxError$1('unknown record type: ' + recordType);
1971
+ throw new $SyntaxError('unknown record type: ' + recordType);
2130
1972
  }
2131
1973
  if (!predicate(Type, value)) {
2132
1974
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2133
1975
  }
2134
1976
  };
2135
1977
 
2136
- // https://ecma-international.org/ecma-262/5.1/#sec-8
1978
+ // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2137
1979
 
2138
1980
  var Type = function Type(x) {
2139
1981
  if (x === null) {
@@ -2156,19 +1998,16 @@ var Type = function Type(x) {
2156
1998
  }
2157
1999
  };
2158
2000
 
2159
- // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2001
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2160
2002
 
2161
2003
  var Type$1 = function Type$1(x) {
2162
2004
  if (typeof x === 'symbol') {
2163
2005
  return 'Symbol';
2164
2006
  }
2165
- if (typeof x === 'bigint') {
2166
- return 'BigInt';
2167
- }
2168
2007
  return Type(x);
2169
2008
  };
2170
2009
 
2171
- // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2010
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2172
2011
 
2173
2012
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2174
2013
  if (typeof Desc === 'undefined') {
@@ -2199,7 +2038,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2199
2038
  return obj;
2200
2039
  };
2201
2040
 
2202
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2041
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2203
2042
  if ($gOPD$1) {
2204
2043
  try {
2205
2044
  $gOPD$1([], 'length');
@@ -2211,85 +2050,65 @@ if ($gOPD$1) {
2211
2050
 
2212
2051
  var getOwnPropertyDescriptor = $gOPD$1;
2213
2052
 
2214
- var $Array = getIntrinsic('%Array%');
2053
+ var $Array = GetIntrinsic('%Array%');
2215
2054
 
2216
2055
  // eslint-disable-next-line global-require
2217
2056
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2218
2057
 
2219
- // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2058
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2220
2059
 
2221
2060
  var IsArray = $Array.isArray || function IsArray(argument) {
2222
2061
  return toStr$4(argument) === '[object Array]';
2223
2062
  };
2224
2063
 
2225
- // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2064
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2226
2065
 
2227
2066
  var IsPropertyKey = function IsPropertyKey(argument) {
2228
2067
  return typeof argument === 'string' || typeof argument === 'symbol';
2229
2068
  };
2230
2069
 
2231
- var hasSymbols$3 = hasSymbols$1();
2232
- var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2233
- var has$1;
2234
- var $exec;
2235
- var isRegexMarker;
2236
- var badStringifier;
2237
-
2238
- if (hasToStringTag) {
2239
- has$1 = callBound('Object.prototype.hasOwnProperty');
2240
- $exec = callBound('RegExp.prototype.exec');
2241
- isRegexMarker = {};
2242
-
2243
- var throwRegexMarker = function () {
2244
- throw isRegexMarker;
2245
- };
2246
- badStringifier = {
2247
- toString: throwRegexMarker,
2248
- valueOf: throwRegexMarker
2249
- };
2070
+ var regexExec = RegExp.prototype.exec;
2071
+ var gOPD = Object.getOwnPropertyDescriptor;
2250
2072
 
2251
- if (typeof Symbol.toPrimitive === 'symbol') {
2252
- badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2253
- }
2254
- }
2073
+ var tryRegexExecCall = function tryRegexExec(value) {
2074
+ try {
2075
+ var lastIndex = value.lastIndex;
2076
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
2255
2077
 
2256
- var $toString = callBound('Object.prototype.toString');
2257
- var gOPD = Object.getOwnPropertyDescriptor;
2078
+ regexExec.call(value);
2079
+ return true;
2080
+ } catch (e) {
2081
+ return false;
2082
+ } finally {
2083
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2084
+ }
2085
+ };
2086
+ var toStr$5 = Object.prototype.toString;
2258
2087
  var regexClass = '[object RegExp]';
2088
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2259
2089
 
2260
- var isRegex = hasToStringTag
2261
- // eslint-disable-next-line consistent-return
2262
- ? function isRegex(value) {
2263
- if (!value || typeof value !== 'object') {
2264
- return false;
2265
- }
2266
-
2267
- var descriptor = gOPD(value, 'lastIndex');
2268
- var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2269
- if (!hasLastIndexDataProperty) {
2270
- return false;
2271
- }
2090
+ var isRegex = function isRegex(value) {
2091
+ if (!value || typeof value !== 'object') {
2092
+ return false;
2093
+ }
2094
+ if (!hasToStringTag) {
2095
+ return toStr$5.call(value) === regexClass;
2096
+ }
2272
2097
 
2273
- try {
2274
- $exec(value, badStringifier);
2275
- } catch (e) {
2276
- return e === isRegexMarker;
2277
- }
2098
+ var descriptor = gOPD(value, 'lastIndex');
2099
+ var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2100
+ if (!hasLastIndexDataProperty) {
2101
+ return false;
2278
2102
  }
2279
- : function isRegex(value) {
2280
- // In older browsers, typeof regex incorrectly returns 'function'
2281
- if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2282
- return false;
2283
- }
2284
2103
 
2285
- return $toString(value) === regexClass;
2286
- };
2104
+ return tryRegexExecCall(value);
2105
+ };
2287
2106
 
2288
- // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2107
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2289
2108
 
2290
2109
  var ToBoolean = function ToBoolean(value) { return !!value; };
2291
2110
 
2292
- var $match = getIntrinsic('%Symbol.match%', true);
2111
+ var $match = GetIntrinsic('%Symbol.match%', true);
2293
2112
 
2294
2113
 
2295
2114
 
@@ -2311,27 +2130,6 @@ var IsRegExp = function IsRegExp(argument) {
2311
2130
  };
2312
2131
 
2313
2132
  var fnToStr = Function.prototype.toString;
2314
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2315
- var badArrayLike;
2316
- var isCallableMarker;
2317
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2318
- try {
2319
- badArrayLike = Object.defineProperty({}, 'length', {
2320
- get: function () {
2321
- throw isCallableMarker;
2322
- }
2323
- });
2324
- isCallableMarker = {};
2325
- // eslint-disable-next-line no-throw-literal
2326
- reflectApply(function () { throw 42; }, null, badArrayLike);
2327
- } catch (_) {
2328
- if (_ !== isCallableMarker) {
2329
- reflectApply = null;
2330
- }
2331
- }
2332
- } else {
2333
- reflectApply = null;
2334
- }
2335
2133
 
2336
2134
  var constructorRegex = /^\s*class\b/;
2337
2135
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2352,42 +2150,26 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2352
2150
  return false;
2353
2151
  }
2354
2152
  };
2355
- var toStr$5 = Object.prototype.toString;
2153
+ var toStr$6 = Object.prototype.toString;
2356
2154
  var fnClass = '[object Function]';
2357
2155
  var genClass = '[object GeneratorFunction]';
2358
2156
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2359
- /* globals document: false */
2360
- var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2361
-
2362
- var isCallable = reflectApply
2363
- ? function isCallable(value) {
2364
- if (value === documentDotAll) { return true; }
2365
- if (!value) { return false; }
2366
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2367
- if (typeof value === 'function' && !value.prototype) { return true; }
2368
- try {
2369
- reflectApply(value, null, badArrayLike);
2370
- } catch (e) {
2371
- if (e !== isCallableMarker) { return false; }
2372
- }
2373
- return !isES6ClassFn(value);
2374
- }
2375
- : function isCallable(value) {
2376
- if (value === documentDotAll) { return true; }
2377
- if (!value) { return false; }
2378
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2379
- if (typeof value === 'function' && !value.prototype) { return true; }
2380
- if (hasToStringTag$1) { return tryFunctionObject(value); }
2381
- if (isES6ClassFn(value)) { return false; }
2382
- var strClass = toStr$5.call(value);
2383
- return strClass === fnClass || strClass === genClass;
2384
- };
2385
2157
 
2386
- // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2158
+ var isCallable = function isCallable(value) {
2159
+ if (!value) { return false; }
2160
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2161
+ if (typeof value === 'function' && !value.prototype) { return true; }
2162
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2163
+ if (isES6ClassFn(value)) { return false; }
2164
+ var strClass = toStr$6.call(value);
2165
+ return strClass === fnClass || strClass === genClass;
2166
+ };
2167
+
2168
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2387
2169
 
2388
2170
  var IsCallable = isCallable;
2389
2171
 
2390
- var $TypeError$2 = getIntrinsic('%TypeError%');
2172
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
2391
2173
 
2392
2174
 
2393
2175
 
@@ -2416,7 +2198,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2416
2198
  if (src(Obj, 'get')) {
2417
2199
  var getter = Obj.get;
2418
2200
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2419
- throw new $TypeError$2('getter must be a function');
2201
+ throw new TypeError('getter must be a function');
2420
2202
  }
2421
2203
  desc['[[Get]]'] = getter;
2422
2204
  }
@@ -2434,7 +2216,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2434
2216
  return desc;
2435
2217
  };
2436
2218
 
2437
- var $TypeError$3 = getIntrinsic('%TypeError%');
2219
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
2438
2220
 
2439
2221
 
2440
2222
 
@@ -2448,7 +2230,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2448
2230
 
2449
2231
 
2450
2232
 
2451
- // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2233
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2452
2234
 
2453
2235
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2454
2236
  if (Type$1(O) !== 'Object') {
@@ -2474,7 +2256,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2474
2256
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2475
2257
  };
2476
2258
 
2477
- // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2259
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2478
2260
 
2479
2261
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2480
2262
  if (typeof Desc === 'undefined') {
@@ -2494,14 +2276,14 @@ var isPrimitive = function isPrimitive(value) {
2494
2276
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2495
2277
  };
2496
2278
 
2497
- var $Object = getIntrinsic('%Object%');
2279
+ var $Object = GetIntrinsic('%Object%');
2498
2280
 
2499
2281
 
2500
2282
 
2501
2283
  var $preventExtensions = $Object.preventExtensions;
2502
2284
  var $isExtensible = $Object.isExtensible;
2503
2285
 
2504
- // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2286
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2505
2287
 
2506
2288
  var IsExtensible = $preventExtensions
2507
2289
  ? function IsExtensible(obj) {
@@ -2515,7 +2297,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2515
2297
  return a !== a;
2516
2298
  };
2517
2299
 
2518
- // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2300
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2519
2301
 
2520
2302
  var SameValue = function SameValue(x, y) {
2521
2303
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2525,7 +2307,7 @@ var SameValue = function SameValue(x, y) {
2525
2307
  return _isNaN(x) && _isNaN(y);
2526
2308
  };
2527
2309
 
2528
- var $TypeError$4 = getIntrinsic('%TypeError%');
2310
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
2529
2311
 
2530
2312
 
2531
2313
 
@@ -2537,7 +2319,7 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
2537
2319
 
2538
2320
 
2539
2321
 
2540
- // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2322
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2541
2323
 
2542
2324
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2543
2325
  if (Type$1(O) !== 'Object') {
@@ -2547,8 +2329,8 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2547
2329
  throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2548
2330
  }
2549
2331
  var oldDesc = OrdinaryGetOwnProperty(O, P);
2550
- var extensible = !oldDesc || IsExtensible(O);
2551
- var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
2332
+ var extensible = oldDesc || IsExtensible(O);
2333
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2552
2334
  if (immutable || !extensible) {
2553
2335
  return false;
2554
2336
  }
@@ -2567,9 +2349,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2567
2349
  );
2568
2350
  };
2569
2351
 
2570
- var $TypeError$5 = getIntrinsic('%TypeError%');
2352
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
2571
2353
 
2572
- // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2354
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2573
2355
 
2574
2356
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2575
2357
  if (value == null) {
@@ -2580,11 +2362,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2580
2362
 
2581
2363
  var RequireObjectCoercible = CheckObjectCoercible;
2582
2364
 
2583
- var $Object$1 = getIntrinsic('%Object%');
2365
+ var $Object$1 = GetIntrinsic('%Object%');
2584
2366
 
2585
2367
 
2586
2368
 
2587
- // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2369
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2588
2370
 
2589
2371
  var ToObject = function ToObject(value) {
2590
2372
  RequireObjectCoercible(value);
@@ -2594,10 +2376,10 @@ var ToObject = function ToObject(value) {
2594
2376
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2595
2377
  var $getOwnNames = Object.getOwnPropertyNames;
2596
2378
  var $getSymbols = Object.getOwnPropertySymbols;
2597
- var $concat$1 = callBound('Array.prototype.concat');
2379
+ var $concat = callBound('Array.prototype.concat');
2598
2380
  var $reduce = callBound('Array.prototype.reduce');
2599
2381
  var getAll = $getSymbols ? function (obj) {
2600
- return $concat$1($getOwnNames(obj), $getSymbols(obj));
2382
+ return $concat($getOwnNames(obj), $getSymbols(obj));
2601
2383
  } : $getOwnNames;
2602
2384
 
2603
2385
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2636,281 +2418,13 @@ var shim = function shimGetOwnPropertyDescriptors() {
2636
2418
  return polyfill$1;
2637
2419
  };
2638
2420
 
2639
- var bound = callBind(polyfill(), Object);
2640
-
2641
- defineProperties_1(bound, {
2421
+ defineProperties_1(implementation$2, {
2642
2422
  getPolyfill: polyfill,
2643
2423
  implementation: implementation$2,
2644
2424
  shim: shim
2645
2425
  });
2646
2426
 
2647
- var object_getownpropertydescriptors = bound;
2648
-
2649
- /* globals
2650
- Atomics,
2651
- SharedArrayBuffer,
2652
- */
2653
-
2654
- var undefined$2;
2655
-
2656
- var $TypeError$6 = TypeError;
2657
-
2658
- var $gOPD$3 = Object.getOwnPropertyDescriptor;
2659
- if ($gOPD$3) {
2660
- try {
2661
- $gOPD$3({}, '');
2662
- } catch (e) {
2663
- $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2664
- }
2665
- }
2666
-
2667
- var throwTypeError$1 = function () { throw new $TypeError$6(); };
2668
- var ThrowTypeError$1 = $gOPD$3
2669
- ? (function () {
2670
- try {
2671
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2672
- arguments.callee; // IE 8 does not throw here
2673
- return throwTypeError$1;
2674
- } catch (calleeThrows) {
2675
- try {
2676
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2677
- return $gOPD$3(arguments, 'callee').get;
2678
- } catch (gOPDthrows) {
2679
- return throwTypeError$1;
2680
- }
2681
- }
2682
- }())
2683
- : throwTypeError$1;
2684
-
2685
- var hasSymbols$4 = hasSymbols$1();
2686
-
2687
- var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2688
- var generatorFunction = undefined$2;
2689
- var asyncFunction = undefined$2;
2690
- var asyncGenFunction = undefined$2;
2691
-
2692
- var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2693
-
2694
- var INTRINSICS$1 = {
2695
- '%Array%': Array,
2696
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2697
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2698
- '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2699
- '%ArrayPrototype%': Array.prototype,
2700
- '%ArrayProto_entries%': Array.prototype.entries,
2701
- '%ArrayProto_forEach%': Array.prototype.forEach,
2702
- '%ArrayProto_keys%': Array.prototype.keys,
2703
- '%ArrayProto_values%': Array.prototype.values,
2704
- '%AsyncFromSyncIteratorPrototype%': undefined$2,
2705
- '%AsyncFunction%': asyncFunction,
2706
- '%AsyncFunctionPrototype%': undefined$2,
2707
- '%AsyncGenerator%': undefined$2,
2708
- '%AsyncGeneratorFunction%': asyncGenFunction,
2709
- '%AsyncGeneratorPrototype%': undefined$2,
2710
- '%AsyncIteratorPrototype%': undefined$2,
2711
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2712
- '%Boolean%': Boolean,
2713
- '%BooleanPrototype%': Boolean.prototype,
2714
- '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2715
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2716
- '%Date%': Date,
2717
- '%DatePrototype%': Date.prototype,
2718
- '%decodeURI%': decodeURI,
2719
- '%decodeURIComponent%': decodeURIComponent,
2720
- '%encodeURI%': encodeURI,
2721
- '%encodeURIComponent%': encodeURIComponent,
2722
- '%Error%': Error,
2723
- '%ErrorPrototype%': Error.prototype,
2724
- '%eval%': eval, // eslint-disable-line no-eval
2725
- '%EvalError%': EvalError,
2726
- '%EvalErrorPrototype%': EvalError.prototype,
2727
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2728
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2729
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2730
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2731
- '%Function%': Function,
2732
- '%FunctionPrototype%': Function.prototype,
2733
- '%Generator%': undefined$2,
2734
- '%GeneratorFunction%': generatorFunction,
2735
- '%GeneratorPrototype%': undefined$2,
2736
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2737
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2738
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2739
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2740
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2741
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2742
- '%isFinite%': isFinite,
2743
- '%isNaN%': isNaN,
2744
- '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2745
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2746
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2747
- '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2748
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2749
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2750
- '%Math%': Math,
2751
- '%Number%': Number,
2752
- '%NumberPrototype%': Number.prototype,
2753
- '%Object%': Object,
2754
- '%ObjectPrototype%': Object.prototype,
2755
- '%ObjProto_toString%': Object.prototype.toString,
2756
- '%ObjProto_valueOf%': Object.prototype.valueOf,
2757
- '%parseFloat%': parseFloat,
2758
- '%parseInt%': parseInt,
2759
- '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2760
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2761
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2762
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2763
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2764
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2765
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2766
- '%RangeError%': RangeError,
2767
- '%RangeErrorPrototype%': RangeError.prototype,
2768
- '%ReferenceError%': ReferenceError,
2769
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
2770
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2771
- '%RegExp%': RegExp,
2772
- '%RegExpPrototype%': RegExp.prototype,
2773
- '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2774
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2775
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2776
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2777
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2778
- '%String%': String,
2779
- '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2780
- '%StringPrototype%': String.prototype,
2781
- '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2782
- '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2783
- '%SyntaxError%': SyntaxError,
2784
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
2785
- '%ThrowTypeError%': ThrowTypeError$1,
2786
- '%TypedArray%': TypedArray$1,
2787
- '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2788
- '%TypeError%': $TypeError$6,
2789
- '%TypeErrorPrototype%': $TypeError$6.prototype,
2790
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2791
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2792
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2793
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2794
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2795
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2796
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2797
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2798
- '%URIError%': URIError,
2799
- '%URIErrorPrototype%': URIError.prototype,
2800
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2801
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2802
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2803
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2804
- };
2805
-
2806
-
2807
- var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2808
-
2809
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2810
- var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2811
- var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2812
- var stringToPath$1 = function stringToPath(string) {
2813
- var result = [];
2814
- $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2815
- result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2816
- });
2817
- return result;
2818
- };
2819
- /* end adaptation */
2820
-
2821
- var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2822
- if (!(name in INTRINSICS$1)) {
2823
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2824
- }
2825
-
2826
- // istanbul ignore if // hopefully this is impossible to test :-)
2827
- if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2828
- throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2829
- }
2830
-
2831
- return INTRINSICS$1[name];
2832
- };
2833
-
2834
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2835
- if (typeof name !== 'string' || name.length === 0) {
2836
- throw new TypeError('intrinsic name must be a non-empty string');
2837
- }
2838
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2839
- throw new TypeError('"allowMissing" argument must be a boolean');
2840
- }
2841
-
2842
- var parts = stringToPath$1(name);
2843
-
2844
- var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2845
- for (var i = 1; i < parts.length; i += 1) {
2846
- if (value != null) {
2847
- if ($gOPD$3 && (i + 1) >= parts.length) {
2848
- var desc = $gOPD$3(value, parts[i]);
2849
- if (!allowMissing && !(parts[i] in value)) {
2850
- throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2851
- }
2852
- // By convention, when a data property is converted to an accessor
2853
- // property to emulate a data property that does not suffer from
2854
- // the override mistake, that accessor's getter is marked with
2855
- // an `originalValue` property. Here, when we detect this, we
2856
- // uphold the illusion by pretending to see that original data
2857
- // property, i.e., returning the value rather than the getter
2858
- // itself.
2859
- value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2860
- } else {
2861
- value = value[parts[i]];
2862
- }
2863
- }
2864
- }
2865
- return value;
2866
- };
2867
-
2868
- var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2869
-
2870
-
2871
-
2872
-
2873
-
2874
- var $apply = GetIntrinsic('%Function.prototype.apply%');
2875
- var $call = GetIntrinsic('%Function.prototype.call%');
2876
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2877
-
2878
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2879
-
2880
- if ($defineProperty) {
2881
- try {
2882
- $defineProperty({}, 'a', { value: 1 });
2883
- } catch (e) {
2884
- // IE 8 has a broken defineProperty
2885
- $defineProperty = null;
2886
- }
2887
- }
2888
-
2889
- module.exports = function callBind() {
2890
- return $reflectApply(functionBind, $call, arguments);
2891
- };
2892
-
2893
- var applyBind = function applyBind() {
2894
- return $reflectApply(functionBind, $apply, arguments);
2895
- };
2896
-
2897
- if ($defineProperty) {
2898
- $defineProperty(module.exports, 'apply', { value: applyBind });
2899
- } else {
2900
- module.exports.apply = applyBind;
2901
- }
2902
- });
2903
- callBind$1.apply;
2904
-
2905
- var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2906
-
2907
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2908
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2909
- if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2910
- return callBind$1(intrinsic);
2911
- }
2912
- return intrinsic;
2913
- };
2427
+ var object_getownpropertydescriptors = implementation$2;
2914
2428
 
2915
2429
  var isES5$1 = typeof Object.defineProperty === 'function'
2916
2430
  && typeof Object.defineProperties === 'function';
@@ -2929,14 +2443,14 @@ if (typeof Promise !== 'function') {
2929
2443
 
2930
2444
 
2931
2445
 
2932
- var $slice = callBound$1('Array.prototype.slice');
2933
- var $concat$2 = callBound$1('Array.prototype.concat');
2934
- var $forEach = callBound$1('Array.prototype.forEach');
2446
+ var $slice = callBound('Array.prototype.slice');
2447
+ var $concat$1 = callBound('Array.prototype.concat');
2448
+ var $forEach = callBound('Array.prototype.forEach');
2935
2449
 
2936
- var hasSymbols$5 = hasSymbols$1();
2450
+ var hasSymbols$3 = hasSymbols$1();
2937
2451
 
2938
- var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2939
- var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2452
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2453
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2940
2454
 
2941
2455
  var implementation$3 = function promisify(orig) {
2942
2456
  if (typeof orig !== 'function') {
@@ -2946,7 +2460,7 @@ var implementation$3 = function promisify(orig) {
2946
2460
  throw error;
2947
2461
  }
2948
2462
 
2949
- if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2463
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2950
2464
  var customFunction = orig[kCustomPromisifiedSymbol];
2951
2465
  if (typeof customFunction !== 'function') {
2952
2466
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2968,7 +2482,7 @@ var implementation$3 = function promisify(orig) {
2968
2482
  var args = $slice(arguments);
2969
2483
  var self = this; // eslint-disable-line no-invalid-this
2970
2484
  return new Promise(function (resolve, reject) {
2971
- orig.apply(self, $concat$2(args, function (err) {
2485
+ orig.apply(self, $concat$1(args, function (err) {
2972
2486
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2973
2487
  if (err) {
2974
2488
  reject(err);
@@ -3053,7 +2567,7 @@ function connect() {
3053
2567
  };
3054
2568
  }
3055
2569
 
3056
- var connection = mysql__default['default'].createConnection(config);
2570
+ var connection = mysql.createConnection(config);
3057
2571
  return {
3058
2572
  query: function query(sql, args) {
3059
2573
  return util.util.promisify(connection.query).call(connection, sql, args);
@@ -3247,7 +2761,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
3247
2761
  message = utf8.stringToBytes(message);
3248
2762
  else if (isBuffer(message))
3249
2763
  message = Array.prototype.slice.call(message, 0);
3250
- else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2764
+ else if (!Array.isArray(message))
3251
2765
  message = message.toString();
3252
2766
  // else, assume byte array already
3253
2767
 
@@ -4014,7 +3528,7 @@ var user = /*#__PURE__*/Object.freeze({
4014
3528
  findUser: findUser$1
4015
3529
  });
4016
3530
 
4017
- var localStrategy = new Local__default['default'].Strategy({
3531
+ var localStrategy = new Local.Strategy({
4018
3532
  usernameField: 'email',
4019
3533
  passwordField: 'password'
4020
3534
  }, function (email, password, done) {