@mjhls/mjh-framework 1.0.702-beta-v1 → 1.0.702

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 (268) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +19 -17
  3. package/dist/cjs/AD300x250x600.js +19 -17
  4. package/dist/cjs/AD728x90.js +20 -18
  5. package/dist/cjs/ADFloatingFooter.js +18 -16
  6. package/dist/cjs/ADFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +18 -16
  8. package/dist/cjs/{ADInfeed-38066a36.js → ADInfeed-ede153e2.js} +2 -2
  9. package/dist/cjs/ADSkyscraper.js +18 -16
  10. package/dist/cjs/ADSponsoredResources.js +18 -16
  11. package/dist/cjs/ADWebcast.js +18 -16
  12. package/dist/cjs/ADWelcome.js +18 -16
  13. package/dist/cjs/{ADlgInfeed-d95c9027.js → ADlgInfeed-6a121a0d.js} +2 -2
  14. package/dist/cjs/AccordionPanel.js +6 -6
  15. package/dist/cjs/AdSlot.js +19 -17
  16. package/dist/cjs/AdSlotsProvider.js +4 -2
  17. package/dist/cjs/AlphabeticList.js +9 -9
  18. package/dist/cjs/ArticleCarousel.js +16 -13
  19. package/dist/cjs/ArticleSeriesListing.js +27 -24
  20. package/dist/cjs/Auth.js +768 -486
  21. package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-d19285ed.js} +1 -1
  22. package/dist/cjs/Beam.js +19 -19
  23. package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-e53217a7.js} +23 -25
  24. package/dist/cjs/Breadcrumbs.js +5 -5
  25. package/dist/cjs/BrowseVideosListing.js +17 -14
  26. package/dist/cjs/CMEDeck.js +26 -23
  27. package/dist/cjs/Column2.js +15 -13
  28. package/dist/cjs/Column3.js +24 -22
  29. package/dist/cjs/ConferenceArticleCard.js +2 -2
  30. package/dist/cjs/DeckContent.js +33 -30
  31. package/dist/cjs/DeckQueue.js +32 -29
  32. package/dist/cjs/{Dfp-390337bf.js → Dfp-13ff07b4.js} +13 -10
  33. package/dist/cjs/EventsDeck.js +35 -34
  34. package/dist/cjs/ExternalResources.js +35 -32
  35. package/dist/cjs/Feature.js +4 -3
  36. package/dist/cjs/ForbesHero.js +12 -9
  37. package/dist/cjs/GridContent.js +45 -42
  38. package/dist/cjs/GridHero.js +12 -9
  39. package/dist/cjs/GroupDeck.js +13 -13
  40. package/dist/cjs/HamMagazine.js +19 -17
  41. package/dist/cjs/Hero.js +1 -1
  42. package/dist/cjs/HighlightenVideo.js +1 -1
  43. package/dist/cjs/HorizontalHero.js +3 -3
  44. package/dist/cjs/IssueContentDeck.js +12 -9
  45. package/dist/cjs/IssueDeck.js +15 -12
  46. package/dist/cjs/IssueLanding.js +29 -26
  47. package/dist/cjs/LeftNav.js +18 -16
  48. package/dist/cjs/MasterDeck.js +37 -34
  49. package/dist/cjs/NavDvm.js +9 -9
  50. package/dist/cjs/NavMagazine.js +19 -17
  51. package/dist/cjs/NavNative.js +16 -14
  52. package/dist/cjs/NavNormal.js +10 -10
  53. package/dist/cjs/OncliveHero.js +2 -3
  54. package/dist/cjs/OncliveLargeHero.js +12 -9
  55. package/dist/cjs/PageFilter.js +5 -5
  56. package/dist/cjs/PartnerDetailListing.js +45 -1239
  57. package/dist/cjs/PdfDownload.js +1 -1
  58. package/dist/cjs/PopUpModal.js +5 -5
  59. package/dist/cjs/PublicationDeck.js +8 -5
  60. package/dist/cjs/PublicationLanding.js +60 -57
  61. package/dist/cjs/QueueDeckExpanded.js +36 -33
  62. package/dist/cjs/RecentNews.js +3 -3
  63. package/dist/cjs/RelatedContent.js +6 -3
  64. package/dist/cjs/Search.js +5 -5
  65. package/dist/cjs/Segment.js +20 -20
  66. package/dist/cjs/SetCookie.js +2 -2
  67. package/dist/cjs/SideFooter.js +16 -14
  68. package/dist/cjs/{SocialSearchComponent-56d49a1a.js → SocialSearchComponent-1ef1e6fb.js} +7 -7
  69. package/dist/cjs/TaxonomyCard.js +10 -7
  70. package/dist/cjs/TemplateNormal.js +33 -31
  71. package/dist/cjs/ThumbnailCard.js +5 -2
  72. package/dist/cjs/Ustream.js +10 -9
  73. package/dist/cjs/VerticalHero.js +2 -2
  74. package/dist/cjs/VideoSeriesCard.js +13 -10
  75. package/dist/cjs/VideoSeriesFilter.js +11 -11
  76. package/dist/cjs/VideoSeriesListing.js +27 -24
  77. package/dist/cjs/View.js +51 -48
  78. package/dist/cjs/YahooHero.js +12 -9
  79. package/dist/cjs/YoutubeGroup.js +17 -14
  80. package/dist/cjs/{_to-object-329a650b.js → _export-a917dedd.js} +31 -31
  81. package/dist/cjs/{_is-array-754e012d.js → _is-array-a82382b4.js} +11 -11
  82. package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-671c90bd.js} +10 -10
  83. package/dist/cjs/{_library-dd23b178.js → _library-4360b4e4.js} +1 -1
  84. package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-6bed508e.js} +2 -2
  85. package/dist/cjs/_object-sap-947ef6fb.js +16 -0
  86. package/dist/cjs/_prop-types_commonjs-external-1a8c9893.js +10 -0
  87. package/dist/cjs/_react-dom_commonjs-external-3c49a59a.js +9 -0
  88. package/dist/cjs/_react_commonjs-external-58b78ee1.js +10 -0
  89. package/dist/cjs/{_set-species-f92c67c5.js → _set-species-47156c42.js} +17 -17
  90. package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-fd8e35e7.js} +69 -69
  91. package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-05029198.js} +4 -3
  92. package/dist/cjs/core.get-iterator-method-07b02ac3.js +39 -0
  93. package/dist/cjs/{debounce-eb287781.js → debounce-fb3a46a9.js} +7 -7
  94. package/dist/cjs/{define-property-f4d12f4e.js → define-property-9b6df20e.js} +4 -4
  95. package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d3c0cfc0.js} +2 -2
  96. package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-e5f4ce45.js} +34 -34
  97. package/dist/cjs/{extends-60837c34.js → extends-5fde0677.js} +11 -11
  98. package/dist/cjs/{get-68c52cb1.js → get-70ef997d.js} +11 -11
  99. package/dist/cjs/getRelatedArticle.js +426 -15
  100. package/dist/cjs/getSerializers.js +33 -30
  101. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-5ca9bfaf.js} +2 -2
  102. package/dist/cjs/getTargeting.js +8 -8
  103. package/dist/cjs/{index-da796b8c.js → index-29e3f3a9.js} +11 -12
  104. package/dist/cjs/{index-3294d3bc.js → index-949261b4.js} +18 -19
  105. package/dist/cjs/{index-58dae365.js → index-b1ee7cd9.js} +335 -329
  106. package/dist/cjs/index-bd6c9f56.js +211 -0
  107. package/dist/cjs/{index-099d45ae.js → index-d7577df6.js} +12 -16
  108. package/dist/cjs/{index-39beccb3.js → index-ff69979f.js} +26 -21
  109. package/dist/cjs/{index.es-9110add6.js → index.es-e9d84959.js} +23 -5
  110. package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
  111. package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
  112. package/dist/cjs/{index.esm-4d410430.js → index.esm-8a8fa078.js} +3 -4
  113. package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
  114. package/dist/cjs/index.js +61 -57
  115. package/dist/cjs/{inherits-513d81cd.js → inherits-02a27fbf.js} +16 -16
  116. package/dist/cjs/{isSymbol-04666465.js → isSymbol-a0d5eb50.js} +5 -5
  117. package/dist/cjs/{js.cookie-a511c430.js → js.cookie-e4684873.js} +1 -1
  118. package/dist/cjs/{keys-a586b7a0.js → keys-1a65eb47.js} +5 -5
  119. package/dist/cjs/{lodash-7fd85bcf.js → lodash-257df6c4.js} +1 -1
  120. package/dist/cjs/{main-03ffa84c.js → main-1442052b.js} +90 -57
  121. package/dist/cjs/{moment-575fe24c.js → moment-29403f08.js} +11 -8
  122. package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-5604d0d1.js} +11 -13
  123. package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-d0ac47b9.js} +10 -10
  124. package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-03c20c7d.js} +1 -1
  125. package/dist/cjs/{stringify-7c5aff47.js → stringify-e064b7d0.js} +2 -2
  126. package/dist/cjs/timeDifferenceCalc.js +1 -1
  127. package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-d47f0c64.js} +13 -13
  128. package/dist/cjs/{typeof-725500bc.js → typeof-5763a25b.js} +84 -84
  129. package/dist/cjs/urlFor.js +1 -1
  130. package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-ede0bc7b.js} +5 -6
  131. package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-cd8a9ccb.js} +10 -10
  132. package/dist/esm/AD.js +1 -1
  133. package/dist/esm/AD300x250.js +21 -19
  134. package/dist/esm/AD300x250x600.js +21 -19
  135. package/dist/esm/AD728x90.js +22 -20
  136. package/dist/esm/ADFloatingFooter.js +20 -18
  137. package/dist/esm/ADFooter.js +5 -5
  138. package/dist/esm/ADGutter.js +20 -18
  139. package/dist/esm/{ADInfeed-7b1b2fcb.js → ADInfeed-d890d5ca.js} +4 -4
  140. package/dist/esm/ADSkyscraper.js +20 -18
  141. package/dist/esm/ADSponsoredResources.js +20 -18
  142. package/dist/esm/ADWebcast.js +20 -18
  143. package/dist/esm/ADWelcome.js +20 -18
  144. package/dist/esm/{ADlgInfeed-2afe92e6.js → ADlgInfeed-1d006b36.js} +4 -4
  145. package/dist/esm/AccordionPanel.js +6 -6
  146. package/dist/esm/AdSlot.js +19 -17
  147. package/dist/esm/AdSlotsProvider.js +4 -2
  148. package/dist/esm/AlphabeticList.js +9 -9
  149. package/dist/esm/ArticleCarousel.js +16 -13
  150. package/dist/esm/ArticleSeriesListing.js +27 -24
  151. package/dist/esm/Auth.js +763 -481
  152. package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-8ffb1deb.js} +1 -1
  153. package/dist/esm/Beam.js +19 -19
  154. package/dist/esm/{BlockContent-c409aca5.js → BlockContent-e6f64e62.js} +23 -21
  155. package/dist/esm/Breadcrumbs.js +5 -5
  156. package/dist/esm/BrowseVideosListing.js +17 -14
  157. package/dist/esm/CMEDeck.js +26 -23
  158. package/dist/esm/Column2.js +15 -13
  159. package/dist/esm/Column3.js +24 -22
  160. package/dist/esm/ConferenceArticleCard.js +2 -2
  161. package/dist/esm/DeckContent.js +33 -30
  162. package/dist/esm/DeckQueue.js +32 -29
  163. package/dist/esm/{Dfp-741c01be.js → Dfp-7db56716.js} +13 -10
  164. package/dist/esm/EventsDeck.js +35 -34
  165. package/dist/esm/ExternalResources.js +35 -32
  166. package/dist/esm/Feature.js +4 -3
  167. package/dist/esm/ForbesHero.js +12 -9
  168. package/dist/esm/GridContent.js +45 -42
  169. package/dist/esm/GridHero.js +12 -9
  170. package/dist/esm/GroupDeck.js +13 -13
  171. package/dist/esm/HamMagazine.js +19 -17
  172. package/dist/esm/Hero.js +1 -1
  173. package/dist/esm/HighlightenVideo.js +1 -1
  174. package/dist/esm/HorizontalHero.js +3 -3
  175. package/dist/esm/IssueContentDeck.js +12 -9
  176. package/dist/esm/IssueDeck.js +15 -12
  177. package/dist/esm/IssueLanding.js +29 -26
  178. package/dist/esm/LeftNav.js +18 -16
  179. package/dist/esm/MasterDeck.js +37 -34
  180. package/dist/esm/NavDvm.js +9 -9
  181. package/dist/esm/NavMagazine.js +19 -17
  182. package/dist/esm/NavNative.js +16 -14
  183. package/dist/esm/NavNormal.js +10 -10
  184. package/dist/esm/OncliveHero.js +2 -3
  185. package/dist/esm/OncliveLargeHero.js +12 -9
  186. package/dist/esm/PageFilter.js +5 -5
  187. package/dist/esm/PartnerDetailListing.js +45 -1238
  188. package/dist/esm/PdfDownload.js +1 -1
  189. package/dist/esm/PopUpModal.js +5 -5
  190. package/dist/esm/PublicationDeck.js +8 -5
  191. package/dist/esm/PublicationLanding.js +60 -57
  192. package/dist/esm/QueueDeckExpanded.js +36 -33
  193. package/dist/esm/RecentNews.js +3 -3
  194. package/dist/esm/RelatedContent.js +6 -3
  195. package/dist/esm/Search.js +5 -5
  196. package/dist/esm/Segment.js +20 -20
  197. package/dist/esm/SetCookie.js +2 -2
  198. package/dist/esm/SideFooter.js +16 -14
  199. package/dist/esm/{SocialSearchComponent-677ed3bd.js → SocialSearchComponent-4eae0149.js} +7 -7
  200. package/dist/esm/TaxonomyCard.js +10 -7
  201. package/dist/esm/TemplateNormal.js +35 -33
  202. package/dist/esm/ThumbnailCard.js +5 -2
  203. package/dist/esm/Ustream.js +10 -9
  204. package/dist/esm/VerticalHero.js +2 -2
  205. package/dist/esm/VideoSeriesCard.js +13 -10
  206. package/dist/esm/VideoSeriesFilter.js +11 -11
  207. package/dist/esm/VideoSeriesListing.js +27 -24
  208. package/dist/esm/View.js +56 -53
  209. package/dist/esm/YahooHero.js +12 -9
  210. package/dist/esm/YoutubeGroup.js +17 -14
  211. package/dist/esm/{_to-object-ded78eb9.js → _export-f7ec2adf.js} +3 -3
  212. package/dist/esm/{_is-array-49698029.js → _is-array-5bea6006.js} +10 -10
  213. package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-65720de7.js} +8 -8
  214. package/dist/esm/_library-90219a8d.js +3 -0
  215. package/dist/esm/{_object-pie-71ac75a4.js → _object-pie-8e2f6c3a.js} +1 -1
  216. package/dist/esm/_object-sap-146241c9.js +14 -0
  217. package/dist/esm/_prop-types_commonjs-external-9481d338.js +5 -0
  218. package/dist/esm/_react-dom_commonjs-external-f1a1ac81.js +5 -0
  219. package/dist/esm/_react_commonjs-external-22b61490.js +5 -0
  220. package/dist/esm/{_set-species-cede29f8.js → _set-species-26ee5c2a.js} +14 -14
  221. package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-0c61f551.js} +69 -69
  222. package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e761d404.js} +4 -3
  223. package/dist/esm/core.get-iterator-method-dbbb346b.js +36 -0
  224. package/dist/esm/{debounce-1a993acf.js → debounce-7b569c00.js} +6 -6
  225. package/dist/esm/{define-property-de3fc946.js → define-property-7a40a451.js} +4 -4
  226. package/dist/esm/{defineProperty-b798470d.js → defineProperty-a2ac5d3d.js} +2 -2
  227. package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-13b94db0.js} +27 -27
  228. package/dist/esm/{extends-cc5da797.js → extends-8e0228d5.js} +11 -11
  229. package/dist/esm/{get-5ee14cda.js → get-bb2155d5.js} +10 -10
  230. package/dist/esm/getRelatedArticle.js +426 -15
  231. package/dist/esm/getSerializers.js +33 -30
  232. package/dist/esm/{getTargeting-2acdec91.js → getTargeting-d97a1e83.js} +2 -2
  233. package/dist/esm/getTargeting.js +8 -8
  234. package/dist/esm/{index-ef6d5dcf.js → index-1295881c.js} +16 -17
  235. package/dist/esm/{index-3f4dd6f2.js → index-17490425.js} +12 -12
  236. package/dist/esm/{index-7779a6df.js → index-4540328d.js} +338 -332
  237. package/dist/esm/{index-5f9f807a.js → index-a4e850af.js} +11 -8
  238. package/dist/esm/index-db3bb315.js +207 -0
  239. package/dist/esm/{index-3849e3fe.js → index-f7fdcc91.js} +26 -21
  240. package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
  241. package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
  242. package/dist/esm/{index.esm-fd746768.js → index.esm-4838a32e.js} +3 -4
  243. package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
  244. package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
  245. package/dist/esm/index.js +60 -56
  246. package/dist/esm/{inherits-7ee3e0c1.js → inherits-d1948b66.js} +16 -16
  247. package/dist/esm/{isSymbol-807e927e.js → isSymbol-2b7f6e65.js} +1 -1
  248. package/dist/esm/{js.cookie-6874175c.js → js.cookie-2ce24ab0.js} +1 -1
  249. package/dist/esm/{keys-fc2d4c34.js → keys-e091cb65.js} +5 -5
  250. package/dist/esm/{lodash-ec8c6b48.js → lodash-2b866578.js} +1 -1
  251. package/dist/esm/{main-35ff7b4f.js → main-140f99b4.js} +88 -52
  252. package/dist/esm/{moment-e2f9b20c.js → moment-8797a4d3.js} +11 -9
  253. package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-40e8d28f.js} +11 -9
  254. package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-8818fe95.js} +10 -10
  255. package/dist/esm/{stringify-008c8802.js → stringify-dedf4a20.js} +2 -2
  256. package/dist/esm/timeDifferenceCalc.js +1 -1
  257. package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-02217419.js} +13 -13
  258. package/dist/esm/{typeof-08f2c380.js → typeof-a10a5616.js} +85 -85
  259. package/dist/esm/urlFor.js +1 -1
  260. package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-7b6316cf.js} +5 -3
  261. package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-c3ba4d37.js} +10 -10
  262. package/package.json +3 -3
  263. package/dist/cjs/_object-sap-5e74ba08.js +0 -16
  264. package/dist/cjs/core.get-iterator-method-f62321d4.js +0 -39
  265. package/dist/esm/_library-528f1934.js +0 -3
  266. package/dist/esm/_object-sap-4d59d5bd.js +0 -14
  267. package/dist/esm/core.get-iterator-method-54d2e411.js +0 -36
  268. /package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-2d74941c.js} +0 -0
package/dist/cjs/Auth.js CHANGED
@@ -5,24 +5,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
8
- require('./_to-object-329a650b.js');
9
- require('./es6.string.iterator-cc0bbaa4.js');
10
- require('./_library-dd23b178.js');
11
- require('./_iter-detect-60b2f026.js');
12
- require('./core.get-iterator-method-f62321d4.js');
13
- require('./_object-pie-68c5bcbc.js');
14
- var _extends = require('./extends-60837c34.js');
15
- require('./web.dom.iterable-a0e279c1.js');
8
+ require('./_export-a917dedd.js');
9
+ require('./es6.string.iterator-e5f4ce45.js');
10
+ require('./_library-4360b4e4.js');
11
+ require('./_iter-detect-671c90bd.js');
12
+ require('./core.get-iterator-method-07b02ac3.js');
13
+ require('./_object-pie-6bed508e.js');
14
+ var _extends = require('./extends-5fde0677.js');
15
+ require('./web.dom.iterable-cd8a9ccb.js');
16
16
  var React = require('react');
17
17
  var React__default = _interopDefault(React);
18
18
  var Router = require('next/router');
19
19
  var Router__default = _interopDefault(Router);
20
- var stringify = require('./stringify-7c5aff47.js');
21
- var slicedToArray = require('./slicedToArray-8f385299.js');
22
- var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
23
- require('./_set-species-f92c67c5.js');
20
+ var stringify = require('./stringify-e064b7d0.js');
21
+ var slicedToArray = require('./slicedToArray-d0ac47b9.js');
22
+ var asyncToGenerator = require('./asyncToGenerator-fd8e35e7.js');
23
+ require('./_set-species-47156c42.js');
24
24
  var reactBootstrap = require('react-bootstrap');
25
25
  var util = require('./util-f2c1b65b.js');
26
+ var index$4 = require('./index-bd6c9f56.js');
26
27
  var useSWR = _interopDefault(require('swr'));
27
28
  var Local = _interopDefault(require('passport-local'));
28
29
  var mysql = _interopDefault(require('mysql'));
@@ -146,9 +147,9 @@ var returnFormField = function returnFormField(_ref) {
146
147
  var _this = undefined;
147
148
 
148
149
  var dataHandler = function () {
149
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(api_url, body) {
150
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(api_url, body) {
150
151
  var res, result;
151
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
152
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
152
153
  while (1) {
153
154
  switch (_context.prev = _context.next) {
154
155
  case 0:
@@ -251,9 +252,9 @@ var hooks = /*#__PURE__*/Object.freeze({
251
252
 
252
253
  var LoginForm = function LoginForm(props) {
253
254
  var handleSubmit = function () {
254
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(e) {
255
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(e) {
255
256
  var body, res;
256
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
257
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
257
258
  while (1) {
258
259
  switch (_context.prev = _context.next) {
259
260
  case 0:
@@ -409,10 +410,10 @@ var _this$1 = undefined;
409
410
 
410
411
  var SignupForm = function SignupForm(props) {
411
412
  var handleSubmit = function () {
412
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
413
+ var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee3(e) {
413
414
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
414
415
 
415
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
416
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee3$(_context3) {
416
417
  while (1) {
417
418
  switch (_context3.prev = _context3.next) {
418
419
  case 0:
@@ -542,9 +543,9 @@ var SignupForm = function SignupForm(props) {
542
543
  setNonHealthcareOccupation = _useState8[1];
543
544
 
544
545
  var loadInitData = function () {
545
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
546
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee() {
546
547
  var healthcare_occupation, non_healthcare_occupation;
547
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
548
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
548
549
  while (1) {
549
550
  switch (_context.prev = _context.next) {
550
551
  case 0:
@@ -615,9 +616,9 @@ var SignupForm = function SignupForm(props) {
615
616
  setOccupationFields = _useState12[1];
616
617
 
617
618
  var handleOccupationChanged = function () {
618
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(e) {
619
+ var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee2(e) {
619
620
  var occupation, fields;
620
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
621
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee2$(_context2) {
621
622
  while (1) {
622
623
  switch (_context2.prev = _context2.next) {
623
624
  case 0:
@@ -787,10 +788,10 @@ var _this$2 = undefined;
787
788
 
788
789
  var SignupForm$1 = function SignupForm(props) {
789
790
  var handleSubmit = function () {
790
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(e) {
791
+ var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee3(e) {
791
792
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
792
793
 
793
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
794
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee3$(_context3) {
794
795
  while (1) {
795
796
  switch (_context3.prev = _context3.next) {
796
797
  case 0:
@@ -931,9 +932,9 @@ var SignupForm$1 = function SignupForm(props) {
931
932
  var user = props.user;
932
933
 
933
934
  var loadInitData = function () {
934
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
935
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee() {
935
936
  var healthcare_occupation, non_healthcare_occupation, foundOccupation, fields;
936
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
937
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
937
938
  while (1) {
938
939
  switch (_context.prev = _context.next) {
939
940
  case 0:
@@ -1027,9 +1028,9 @@ var SignupForm$1 = function SignupForm(props) {
1027
1028
  setOccupationFields = _useState14[1];
1028
1029
 
1029
1030
  var handleOccupationChanged = function () {
1030
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(e) {
1031
+ var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee2(e) {
1031
1032
  var occupation, fields;
1032
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
1033
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee2$(_context2) {
1033
1034
  while (1) {
1034
1035
  switch (_context2.prev = _context2.next) {
1035
1036
  case 0:
@@ -1210,213 +1211,12 @@ var SignupForm$1 = function SignupForm(props) {
1210
1211
  );
1211
1212
  };
1212
1213
 
1213
- /*!
1214
- * cookie
1215
- * Copyright(c) 2012-2014 Roman Shtylman
1216
- * Copyright(c) 2015 Douglas Christopher Wilson
1217
- * MIT Licensed
1218
- */
1219
-
1220
- /**
1221
- * Module exports.
1222
- * @public
1223
- */
1224
-
1225
- var parse_1 = parse;
1226
- var serialize_1 = serialize;
1227
-
1228
- /**
1229
- * Module variables.
1230
- * @private
1231
- */
1232
-
1233
- var decode = decodeURIComponent;
1234
- var encode = encodeURIComponent;
1235
- var pairSplitRegExp = /; */;
1236
-
1237
- /**
1238
- * RegExp to match field-content in RFC 7230 sec 3.2
1239
- *
1240
- * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
1241
- * field-vchar = VCHAR / obs-text
1242
- * obs-text = %x80-FF
1243
- */
1244
-
1245
- var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
1246
-
1247
- /**
1248
- * Parse a cookie header.
1249
- *
1250
- * Parse the given cookie header string into an object
1251
- * The object has the various cookies as keys(names) => values
1252
- *
1253
- * @param {string} str
1254
- * @param {object} [options]
1255
- * @return {object}
1256
- * @public
1257
- */
1258
-
1259
- function parse(str, options) {
1260
- if (typeof str !== 'string') {
1261
- throw new TypeError('argument str must be a string');
1262
- }
1263
-
1264
- var obj = {};
1265
- var opt = options || {};
1266
- var pairs = str.split(pairSplitRegExp);
1267
- var dec = opt.decode || decode;
1268
-
1269
- for (var i = 0; i < pairs.length; i++) {
1270
- var pair = pairs[i];
1271
- var eq_idx = pair.indexOf('=');
1272
-
1273
- // skip things that don't look like key=value
1274
- if (eq_idx < 0) {
1275
- continue;
1276
- }
1277
-
1278
- var key = pair.substr(0, eq_idx).trim();
1279
- var val = pair.substr(++eq_idx, pair.length).trim();
1280
-
1281
- // quoted values
1282
- if ('"' == val[0]) {
1283
- val = val.slice(1, -1);
1284
- }
1285
-
1286
- // only assign once
1287
- if (undefined == obj[key]) {
1288
- obj[key] = tryDecode(val, dec);
1289
- }
1290
- }
1291
-
1292
- return obj;
1293
- }
1294
-
1295
- /**
1296
- * Serialize data into a cookie header.
1297
- *
1298
- * Serialize the a name value pair into a cookie string suitable for
1299
- * http headers. An optional options object specified cookie parameters.
1300
- *
1301
- * serialize('foo', 'bar', { httpOnly: true })
1302
- * => "foo=bar; httpOnly"
1303
- *
1304
- * @param {string} name
1305
- * @param {string} val
1306
- * @param {object} [options]
1307
- * @return {string}
1308
- * @public
1309
- */
1310
-
1311
- function serialize(name, val, options) {
1312
- var opt = options || {};
1313
- var enc = opt.encode || encode;
1314
-
1315
- if (typeof enc !== 'function') {
1316
- throw new TypeError('option encode is invalid');
1317
- }
1318
-
1319
- if (!fieldContentRegExp.test(name)) {
1320
- throw new TypeError('argument name is invalid');
1321
- }
1322
-
1323
- var value = enc(val);
1324
-
1325
- if (value && !fieldContentRegExp.test(value)) {
1326
- throw new TypeError('argument val is invalid');
1327
- }
1328
-
1329
- var str = name + '=' + value;
1330
-
1331
- if (null != opt.maxAge) {
1332
- var maxAge = opt.maxAge - 0;
1333
-
1334
- if (isNaN(maxAge) || !isFinite(maxAge)) {
1335
- throw new TypeError('option maxAge is invalid')
1336
- }
1337
-
1338
- str += '; Max-Age=' + Math.floor(maxAge);
1339
- }
1340
-
1341
- if (opt.domain) {
1342
- if (!fieldContentRegExp.test(opt.domain)) {
1343
- throw new TypeError('option domain is invalid');
1344
- }
1345
-
1346
- str += '; Domain=' + opt.domain;
1347
- }
1348
-
1349
- if (opt.path) {
1350
- if (!fieldContentRegExp.test(opt.path)) {
1351
- throw new TypeError('option path is invalid');
1352
- }
1353
-
1354
- str += '; Path=' + opt.path;
1355
- }
1356
-
1357
- if (opt.expires) {
1358
- if (typeof opt.expires.toUTCString !== 'function') {
1359
- throw new TypeError('option expires is invalid');
1360
- }
1361
-
1362
- str += '; Expires=' + opt.expires.toUTCString();
1363
- }
1364
-
1365
- if (opt.httpOnly) {
1366
- str += '; HttpOnly';
1367
- }
1368
-
1369
- if (opt.secure) {
1370
- str += '; Secure';
1371
- }
1372
-
1373
- if (opt.sameSite) {
1374
- var sameSite = typeof opt.sameSite === 'string'
1375
- ? opt.sameSite.toLowerCase() : opt.sameSite;
1376
-
1377
- switch (sameSite) {
1378
- case true:
1379
- str += '; SameSite=Strict';
1380
- break;
1381
- case 'lax':
1382
- str += '; SameSite=Lax';
1383
- break;
1384
- case 'strict':
1385
- str += '; SameSite=Strict';
1386
- break;
1387
- case 'none':
1388
- str += '; SameSite=None';
1389
- break;
1390
- default:
1391
- throw new TypeError('option sameSite is invalid');
1392
- }
1393
- }
1394
-
1395
- return str;
1396
- }
1397
-
1398
- /**
1399
- * Try decoding a string using a decoding function.
1400
- *
1401
- * @param {string} str
1402
- * @param {function} decode
1403
- * @private
1404
- */
1405
-
1406
- function tryDecode(str, decode) {
1407
- try {
1408
- return decode(str);
1409
- } catch (e) {
1410
- return str;
1411
- }
1412
- }
1413
-
1414
1214
  var TOKEN_NAME = 'token';
1415
1215
  var MAX_AGE = 60 * 60 * 8; // 8 hours
1416
1216
 
1417
1217
  function setTokenCookie(res, token, eKey) {
1418
1218
  var cookies_serailized = [];
1419
- cookies_serailized.push(serialize_1(TOKEN_NAME, token, {
1219
+ cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, token, {
1420
1220
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1421
1221
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1422
1222
  //httpOnly: true,
@@ -1425,7 +1225,7 @@ function setTokenCookie(res, token, eKey) {
1425
1225
  //sameSite: 'lax',
1426
1226
  }));
1427
1227
 
1428
- cookies_serailized.push(serialize_1('eKey', eKey, {
1228
+ cookies_serailized.push(index$4.serialize_1('eKey', eKey, {
1429
1229
  //maxAge: MAX_AGE, // we want login cookie to expire when browser
1430
1230
  //expires: new Date(Date.now() + MAX_AGE * 1000),
1431
1231
  //httpOnly: true,
@@ -1439,12 +1239,12 @@ function setTokenCookie(res, token, eKey) {
1439
1239
 
1440
1240
  function removeTokenCookie(res) {
1441
1241
  var cookies_serailized = [];
1442
- cookies_serailized.push(serialize_1(TOKEN_NAME, '', {
1242
+ cookies_serailized.push(index$4.serialize_1(TOKEN_NAME, '', {
1443
1243
  maxAge: -1,
1444
1244
  expires: new Date(Date.now() - MAX_AGE * 1000),
1445
1245
  path: '/'
1446
1246
  }));
1447
- cookies_serailized.push(serialize_1('eKey', '', {
1247
+ cookies_serailized.push(index$4.serialize_1('eKey', '', {
1448
1248
  maxAge: -1,
1449
1249
  expires: new Date(Date.now() - MAX_AGE * 1000),
1450
1250
  path: '/'
@@ -1459,7 +1259,7 @@ function parseCookies(req) {
1459
1259
 
1460
1260
  // For pages we do need to parse the cookies.
1461
1261
  var cookie = req.headers ? req.headers.cookie : null;
1462
- return parse_1(cookie || '');
1262
+ return index$4.parse_1(cookie || '');
1463
1263
  }
1464
1264
 
1465
1265
  function getTokenCookie(req) {
@@ -1483,9 +1283,9 @@ function encryptSession(session) {
1483
1283
  }
1484
1284
 
1485
1285
  var getSession = function () {
1486
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(req) {
1286
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(req) {
1487
1287
  var token, buff;
1488
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
1288
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
1489
1289
  while (1) {
1490
1290
  switch (_context.prev = _context.next) {
1491
1291
  case 0:
@@ -1745,59 +1545,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1745
1545
 
1746
1546
  var defineProperties_1 = defineProperties;
1747
1547
 
1748
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1749
- var shams = function hasSymbols() {
1750
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1751
- if (typeof Symbol.iterator === 'symbol') { return true; }
1752
-
1753
- var obj = {};
1754
- var sym = Symbol('test');
1755
- var symObj = Object(sym);
1756
- if (typeof sym === 'string') { return false; }
1757
-
1758
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1759
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1760
-
1761
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1762
- // if (sym instanceof Symbol) { return false; }
1763
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1764
- // if (!(symObj instanceof Symbol)) { return false; }
1765
-
1766
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1767
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1768
-
1769
- var symVal = 42;
1770
- obj[sym] = symVal;
1771
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1772
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1773
-
1774
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1775
-
1776
- var syms = Object.getOwnPropertySymbols(obj);
1777
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1778
-
1779
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1780
-
1781
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1782
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1783
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1784
- }
1785
-
1786
- return true;
1787
- };
1788
-
1789
- var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1790
-
1791
-
1792
- var hasSymbols$1 = function hasNativeSymbols() {
1793
- if (typeof origSymbol !== 'function') { return false; }
1794
- if (typeof Symbol !== 'function') { return false; }
1795
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1796
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1797
-
1798
- return shams();
1799
- };
1800
-
1801
1548
  /* eslint no-invalid-this: 1 */
1802
1549
 
1803
1550
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
@@ -1851,15 +1598,74 @@ var implementation$1 = function bind(that) {
1851
1598
 
1852
1599
  var functionBind = Function.prototype.bind || implementation$1;
1853
1600
 
1854
- /* globals
1855
- Atomics,
1856
- SharedArrayBuffer,
1857
- */
1601
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
1602
+ var shams = function hasSymbols() {
1603
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1604
+ if (typeof Symbol.iterator === 'symbol') { return true; }
1605
+
1606
+ var obj = {};
1607
+ var sym = Symbol('test');
1608
+ var symObj = Object(sym);
1609
+ if (typeof sym === 'string') { return false; }
1610
+
1611
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1612
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1613
+
1614
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
1615
+ // if (sym instanceof Symbol) { return false; }
1616
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1617
+ // if (!(symObj instanceof Symbol)) { return false; }
1618
+
1619
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1620
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1621
+
1622
+ var symVal = 42;
1623
+ obj[sym] = symVal;
1624
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1625
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1626
+
1627
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1628
+
1629
+ var syms = Object.getOwnPropertySymbols(obj);
1630
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
1631
+
1632
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1633
+
1634
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
1635
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1636
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1637
+ }
1638
+
1639
+ return true;
1640
+ };
1641
+
1642
+ var origSymbol = _commonjsHelpers.commonjsGlobal.Symbol;
1643
+
1644
+
1645
+ var hasSymbols$1 = function hasNativeSymbols() {
1646
+ if (typeof origSymbol !== 'function') { return false; }
1647
+ if (typeof Symbol !== 'function') { return false; }
1648
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
1649
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
1650
+
1651
+ return shams();
1652
+ };
1653
+
1654
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
1858
1655
 
1859
1656
  var undefined$1;
1860
1657
 
1658
+ var $SyntaxError = SyntaxError;
1659
+ var $Function = Function;
1861
1660
  var $TypeError = TypeError;
1862
1661
 
1662
+ // eslint-disable-next-line consistent-return
1663
+ var getEvalledConstructor = function (expressionSyntax) {
1664
+ try {
1665
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1666
+ } catch (e) {}
1667
+ };
1668
+
1863
1669
  var $gOPD = Object.getOwnPropertyDescriptor;
1864
1670
  if ($gOPD) {
1865
1671
  try {
@@ -1869,7 +1675,9 @@ if ($gOPD) {
1869
1675
  }
1870
1676
  }
1871
1677
 
1872
- var throwTypeError = function () { throw new $TypeError(); };
1678
+ var throwTypeError = function () {
1679
+ throw new $TypeError();
1680
+ };
1873
1681
  var ThrowTypeError = $gOPD
1874
1682
  ? (function () {
1875
1683
  try {
@@ -1890,203 +1698,351 @@ var ThrowTypeError = $gOPD
1890
1698
  var hasSymbols$2 = hasSymbols$1();
1891
1699
 
1892
1700
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1893
- var generatorFunction = undefined$1;
1894
- var asyncFunction = undefined$1;
1895
- var asyncGenFunction = undefined$1;
1701
+
1702
+ var needsEval = {};
1896
1703
 
1897
1704
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1898
1705
 
1899
1706
  var INTRINSICS = {
1707
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1900
1708
  '%Array%': Array,
1901
1709
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1902
- '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1903
1710
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
1904
- '%ArrayPrototype%': Array.prototype,
1905
- '%ArrayProto_entries%': Array.prototype.entries,
1906
- '%ArrayProto_forEach%': Array.prototype.forEach,
1907
- '%ArrayProto_keys%': Array.prototype.keys,
1908
- '%ArrayProto_values%': Array.prototype.values,
1909
1711
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1910
- '%AsyncFunction%': asyncFunction,
1911
- '%AsyncFunctionPrototype%': undefined$1,
1912
- '%AsyncGenerator%': undefined$1,
1913
- '%AsyncGeneratorFunction%': asyncGenFunction,
1914
- '%AsyncGeneratorPrototype%': undefined$1,
1915
- '%AsyncIteratorPrototype%': undefined$1,
1712
+ '%AsyncFunction%': needsEval,
1713
+ '%AsyncGenerator%': needsEval,
1714
+ '%AsyncGeneratorFunction%': needsEval,
1715
+ '%AsyncIteratorPrototype%': needsEval,
1916
1716
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1717
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1917
1718
  '%Boolean%': Boolean,
1918
- '%BooleanPrototype%': Boolean.prototype,
1919
1719
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1920
- '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1921
1720
  '%Date%': Date,
1922
- '%DatePrototype%': Date.prototype,
1923
1721
  '%decodeURI%': decodeURI,
1924
1722
  '%decodeURIComponent%': decodeURIComponent,
1925
1723
  '%encodeURI%': encodeURI,
1926
1724
  '%encodeURIComponent%': encodeURIComponent,
1927
1725
  '%Error%': Error,
1928
- '%ErrorPrototype%': Error.prototype,
1929
1726
  '%eval%': eval, // eslint-disable-line no-eval
1930
1727
  '%EvalError%': EvalError,
1931
- '%EvalErrorPrototype%': EvalError.prototype,
1932
1728
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1933
- '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1934
1729
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1935
- '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
1936
- '%Function%': Function,
1937
- '%FunctionPrototype%': Function.prototype,
1938
- '%Generator%': undefined$1,
1939
- '%GeneratorFunction%': generatorFunction,
1940
- '%GeneratorPrototype%': undefined$1,
1730
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1731
+ '%Function%': $Function,
1732
+ '%GeneratorFunction%': needsEval,
1941
1733
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1942
- '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1943
1734
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1944
- '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1945
1735
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1946
- '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1947
1736
  '%isFinite%': isFinite,
1948
1737
  '%isNaN%': isNaN,
1949
1738
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1950
1739
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1951
- '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1952
1740
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1953
1741
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1954
- '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1955
1742
  '%Math%': Math,
1956
1743
  '%Number%': Number,
1957
- '%NumberPrototype%': Number.prototype,
1958
1744
  '%Object%': Object,
1959
- '%ObjectPrototype%': Object.prototype,
1960
- '%ObjProto_toString%': Object.prototype.toString,
1961
- '%ObjProto_valueOf%': Object.prototype.valueOf,
1962
1745
  '%parseFloat%': parseFloat,
1963
1746
  '%parseInt%': parseInt,
1964
1747
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1965
- '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
1966
- '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
1967
- '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
1968
- '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
1969
- '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1970
1748
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1971
1749
  '%RangeError%': RangeError,
1972
- '%RangeErrorPrototype%': RangeError.prototype,
1973
1750
  '%ReferenceError%': ReferenceError,
1974
- '%ReferenceErrorPrototype%': ReferenceError.prototype,
1975
1751
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1976
1752
  '%RegExp%': RegExp,
1977
- '%RegExpPrototype%': RegExp.prototype,
1978
1753
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1979
1754
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1980
- '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1981
1755
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1982
- '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1983
1756
  '%String%': String,
1984
1757
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
1985
- '%StringPrototype%': String.prototype,
1986
1758
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1987
- '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
1988
- '%SyntaxError%': SyntaxError,
1989
- '%SyntaxErrorPrototype%': SyntaxError.prototype,
1759
+ '%SyntaxError%': $SyntaxError,
1990
1760
  '%ThrowTypeError%': ThrowTypeError,
1991
1761
  '%TypedArray%': TypedArray,
1992
- '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
1993
1762
  '%TypeError%': $TypeError,
1994
- '%TypeErrorPrototype%': $TypeError.prototype,
1995
1763
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1996
- '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1997
1764
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1998
- '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1999
1765
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
2000
- '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
2001
1766
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
2002
- '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
2003
1767
  '%URIError%': URIError,
2004
- '%URIErrorPrototype%': URIError.prototype,
2005
1768
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
2006
- '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
2007
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
2008
- '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1769
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1770
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
2009
1771
  };
2010
1772
 
1773
+ var doEval = function doEval(name) {
1774
+ var value;
1775
+ if (name === '%AsyncFunction%') {
1776
+ value = getEvalledConstructor('async function () {}');
1777
+ } else if (name === '%GeneratorFunction%') {
1778
+ value = getEvalledConstructor('function* () {}');
1779
+ } else if (name === '%AsyncGeneratorFunction%') {
1780
+ value = getEvalledConstructor('async function* () {}');
1781
+ } else if (name === '%AsyncGenerator%') {
1782
+ var fn = doEval('%AsyncGeneratorFunction%');
1783
+ if (fn) {
1784
+ value = fn.prototype;
1785
+ }
1786
+ } else if (name === '%AsyncIteratorPrototype%') {
1787
+ var gen = doEval('%AsyncGenerator%');
1788
+ if (gen) {
1789
+ value = getProto(gen.prototype);
1790
+ }
1791
+ }
1792
+
1793
+ INTRINSICS[name] = value;
1794
+
1795
+ return value;
1796
+ };
2011
1797
 
1798
+ var LEGACY_ALIASES = {
1799
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1800
+ '%ArrayPrototype%': ['Array', 'prototype'],
1801
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1802
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1803
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1804
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1805
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1806
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1807
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1808
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
1809
+ '%DataViewPrototype%': ['DataView', 'prototype'],
1810
+ '%DatePrototype%': ['Date', 'prototype'],
1811
+ '%ErrorPrototype%': ['Error', 'prototype'],
1812
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1813
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1814
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1815
+ '%FunctionPrototype%': ['Function', 'prototype'],
1816
+ '%Generator%': ['GeneratorFunction', 'prototype'],
1817
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1818
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1819
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1820
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1821
+ '%JSONParse%': ['JSON', 'parse'],
1822
+ '%JSONStringify%': ['JSON', 'stringify'],
1823
+ '%MapPrototype%': ['Map', 'prototype'],
1824
+ '%NumberPrototype%': ['Number', 'prototype'],
1825
+ '%ObjectPrototype%': ['Object', 'prototype'],
1826
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1827
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1828
+ '%PromisePrototype%': ['Promise', 'prototype'],
1829
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1830
+ '%Promise_all%': ['Promise', 'all'],
1831
+ '%Promise_reject%': ['Promise', 'reject'],
1832
+ '%Promise_resolve%': ['Promise', 'resolve'],
1833
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1834
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1835
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
1836
+ '%SetPrototype%': ['Set', 'prototype'],
1837
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1838
+ '%StringPrototype%': ['String', 'prototype'],
1839
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
1840
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1841
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1842
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1843
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1844
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1845
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1846
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1847
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
1848
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1849
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
1850
+ };
1851
+
1852
+
1853
+
1854
+ var $concat = functionBind.call(Function.call, Array.prototype.concat);
1855
+ var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2012
1856
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1857
+ var $strSlice = functionBind.call(Function.call, String.prototype.slice);
2013
1858
 
2014
1859
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2015
1860
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2016
1861
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2017
1862
  var stringToPath = function stringToPath(string) {
1863
+ var first = $strSlice(string, 0, 1);
1864
+ var last = $strSlice(string, -1);
1865
+ if (first === '%' && last !== '%') {
1866
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1867
+ } else if (last === '%' && first !== '%') {
1868
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1869
+ }
2018
1870
  var result = [];
2019
1871
  $replace(string, rePropName, function (match, number, quote, subString) {
2020
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1872
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2021
1873
  });
2022
1874
  return result;
2023
1875
  };
2024
1876
  /* end adaptation */
2025
1877
 
2026
1878
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
2027
- if (!(name in INTRINSICS)) {
2028
- throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1879
+ var intrinsicName = name;
1880
+ var alias;
1881
+ if (src(LEGACY_ALIASES, intrinsicName)) {
1882
+ alias = LEGACY_ALIASES[intrinsicName];
1883
+ intrinsicName = '%' + alias[0] + '%';
2029
1884
  }
2030
1885
 
2031
- // istanbul ignore if // hopefully this is impossible to test :-)
2032
- if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
2033
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1886
+ if (src(INTRINSICS, intrinsicName)) {
1887
+ var value = INTRINSICS[intrinsicName];
1888
+ if (value === needsEval) {
1889
+ value = doEval(intrinsicName);
1890
+ }
1891
+ if (typeof value === 'undefined' && !allowMissing) {
1892
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1893
+ }
1894
+
1895
+ return {
1896
+ alias: alias,
1897
+ name: intrinsicName,
1898
+ value: value
1899
+ };
2034
1900
  }
2035
1901
 
2036
- return INTRINSICS[name];
1902
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
2037
1903
  };
2038
1904
 
2039
- var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1905
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2040
1906
  if (typeof name !== 'string' || name.length === 0) {
2041
- throw new TypeError('intrinsic name must be a non-empty string');
1907
+ throw new $TypeError('intrinsic name must be a non-empty string');
2042
1908
  }
2043
1909
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2044
- throw new TypeError('"allowMissing" argument must be a boolean');
1910
+ throw new $TypeError('"allowMissing" argument must be a boolean');
2045
1911
  }
2046
1912
 
2047
1913
  var parts = stringToPath(name);
1914
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
2048
1915
 
2049
- var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2050
- for (var i = 1; i < parts.length; i += 1) {
2051
- if (value != null) {
2052
- if ($gOPD && (i + 1) >= parts.length) {
2053
- var desc = $gOPD(value, parts[i]);
2054
- if (!allowMissing && !(parts[i] in value)) {
1916
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1917
+ var intrinsicRealName = intrinsic.name;
1918
+ var value = intrinsic.value;
1919
+ var skipFurtherCaching = false;
1920
+
1921
+ var alias = intrinsic.alias;
1922
+ if (alias) {
1923
+ intrinsicBaseName = alias[0];
1924
+ $spliceApply(parts, $concat([0, 1], alias));
1925
+ }
1926
+
1927
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1928
+ var part = parts[i];
1929
+ var first = $strSlice(part, 0, 1);
1930
+ var last = $strSlice(part, -1);
1931
+ if (
1932
+ (
1933
+ (first === '"' || first === "'" || first === '`')
1934
+ || (last === '"' || last === "'" || last === '`')
1935
+ )
1936
+ && first !== last
1937
+ ) {
1938
+ throw new $SyntaxError('property names with quotes must have matching quotes');
1939
+ }
1940
+ if (part === 'constructor' || !isOwn) {
1941
+ skipFurtherCaching = true;
1942
+ }
1943
+
1944
+ intrinsicBaseName += '.' + part;
1945
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
1946
+
1947
+ if (src(INTRINSICS, intrinsicRealName)) {
1948
+ value = INTRINSICS[intrinsicRealName];
1949
+ } else if (value != null) {
1950
+ if (!(part in value)) {
1951
+ if (!allowMissing) {
2055
1952
  throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
2056
1953
  }
2057
- value = desc ? (desc.get || desc.value) : value[parts[i]];
1954
+ return void undefined$1;
1955
+ }
1956
+ if ($gOPD && (i + 1) >= parts.length) {
1957
+ var desc = $gOPD(value, part);
1958
+ isOwn = !!desc;
1959
+
1960
+ // By convention, when a data property is converted to an accessor
1961
+ // property to emulate a data property that does not suffer from
1962
+ // the override mistake, that accessor's getter is marked with
1963
+ // an `originalValue` property. Here, when we detect this, we
1964
+ // uphold the illusion by pretending to see that original data
1965
+ // property, i.e., returning the value rather than the getter
1966
+ // itself.
1967
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1968
+ value = desc.get;
1969
+ } else {
1970
+ value = value[part];
1971
+ }
2058
1972
  } else {
2059
- value = value[parts[i]];
1973
+ isOwn = src(value, part);
1974
+ value = value[part];
1975
+ }
1976
+
1977
+ if (isOwn && !skipFurtherCaching) {
1978
+ INTRINSICS[intrinsicRealName] = value;
2060
1979
  }
2061
1980
  }
2062
1981
  }
2063
1982
  return value;
2064
1983
  };
2065
1984
 
2066
- var $Function = GetIntrinsic('%Function%');
2067
- var $apply = $Function.apply;
2068
- var $call = $Function.call;
1985
+ var callBind = _commonjsHelpers.createCommonjsModule(function (module) {
1986
+
1987
+
1988
+
1989
+
1990
+ var $apply = getIntrinsic('%Function.prototype.apply%');
1991
+ var $call = getIntrinsic('%Function.prototype.call%');
1992
+ var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1993
+
1994
+ var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1995
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1996
+ var $max = getIntrinsic('%Math.max%');
1997
+
1998
+ if ($defineProperty) {
1999
+ try {
2000
+ $defineProperty({}, 'a', { value: 1 });
2001
+ } catch (e) {
2002
+ // IE 8 has a broken defineProperty
2003
+ $defineProperty = null;
2004
+ }
2005
+ }
2069
2006
 
2070
- var callBind = function callBind() {
2071
- return functionBind.apply($call, arguments);
2007
+ module.exports = function callBind(originalFunction) {
2008
+ var func = $reflectApply(functionBind, $call, arguments);
2009
+ if ($gOPD && $defineProperty) {
2010
+ var desc = $gOPD(func, 'length');
2011
+ if (desc.configurable) {
2012
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
2013
+ $defineProperty(
2014
+ func,
2015
+ 'length',
2016
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2017
+ );
2018
+ }
2019
+ }
2020
+ return func;
2072
2021
  };
2073
2022
 
2074
- var apply = function applyBind() {
2075
- return functionBind.apply($apply, arguments);
2023
+ var applyBind = function applyBind() {
2024
+ return $reflectApply(functionBind, $apply, arguments);
2076
2025
  };
2077
- callBind.apply = apply;
2078
2026
 
2079
- var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2027
+ if ($defineProperty) {
2028
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2029
+ } else {
2030
+ module.exports.apply = applyBind;
2031
+ }
2032
+ });
2033
+ var callBind_1 = callBind.apply;
2034
+
2035
+ var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2080
2036
 
2081
2037
  var callBound = function callBoundIntrinsic(name, allowMissing) {
2082
- var intrinsic = GetIntrinsic(name, !!allowMissing);
2083
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2038
+ var intrinsic = getIntrinsic(name, !!allowMissing);
2039
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2084
2040
  return callBind(intrinsic);
2085
2041
  }
2086
2042
  return intrinsic;
2087
2043
  };
2088
2044
 
2089
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2045
+ var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2090
2046
 
2091
2047
  if ($defineProperty) {
2092
2048
  try {
@@ -2128,10 +2084,8 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2128
2084
  return true;
2129
2085
  };
2130
2086
 
2131
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2132
-
2133
- var $TypeError$1 = GetIntrinsic('%TypeError%');
2134
- var $SyntaxError = GetIntrinsic('%SyntaxError%');
2087
+ var $TypeError$1 = getIntrinsic('%TypeError%');
2088
+ var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
2135
2089
 
2136
2090
 
2137
2091
 
@@ -2168,14 +2122,14 @@ var predicates = {
2168
2122
  var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
2169
2123
  var predicate = predicates[recordType];
2170
2124
  if (typeof predicate !== 'function') {
2171
- throw new $SyntaxError('unknown record type: ' + recordType);
2125
+ throw new $SyntaxError$1('unknown record type: ' + recordType);
2172
2126
  }
2173
2127
  if (!predicate(Type, value)) {
2174
2128
  throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2175
2129
  }
2176
2130
  };
2177
2131
 
2178
- // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2132
+ // https://ecma-international.org/ecma-262/5.1/#sec-8
2179
2133
 
2180
2134
  var Type = function Type(x) {
2181
2135
  if (x === null) {
@@ -2198,16 +2152,19 @@ var Type = function Type(x) {
2198
2152
  }
2199
2153
  };
2200
2154
 
2201
- // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2155
+ // https://ecma-international.org/ecma-262/11.0/#sec-ecmascript-data-types-and-values
2202
2156
 
2203
2157
  var Type$1 = function Type$1(x) {
2204
2158
  if (typeof x === 'symbol') {
2205
2159
  return 'Symbol';
2206
2160
  }
2161
+ if (typeof x === 'bigint') {
2162
+ return 'BigInt';
2163
+ }
2207
2164
  return Type(x);
2208
2165
  };
2209
2166
 
2210
- // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2167
+ // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2211
2168
 
2212
2169
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2213
2170
  if (typeof Desc === 'undefined') {
@@ -2238,7 +2195,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2238
2195
  return obj;
2239
2196
  };
2240
2197
 
2241
- var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2198
+ var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
2242
2199
  if ($gOPD$1) {
2243
2200
  try {
2244
2201
  $gOPD$1([], 'length');
@@ -2250,65 +2207,85 @@ if ($gOPD$1) {
2250
2207
 
2251
2208
  var getOwnPropertyDescriptor = $gOPD$1;
2252
2209
 
2253
- var $Array = GetIntrinsic('%Array%');
2210
+ var $Array = getIntrinsic('%Array%');
2254
2211
 
2255
2212
  // eslint-disable-next-line global-require
2256
2213
  var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2257
2214
 
2258
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2215
+ // https://ecma-international.org/ecma-262/6.0/#sec-isarray
2259
2216
 
2260
2217
  var IsArray = $Array.isArray || function IsArray(argument) {
2261
2218
  return toStr$4(argument) === '[object Array]';
2262
2219
  };
2263
2220
 
2264
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2221
+ // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2265
2222
 
2266
2223
  var IsPropertyKey = function IsPropertyKey(argument) {
2267
2224
  return typeof argument === 'string' || typeof argument === 'symbol';
2268
2225
  };
2269
2226
 
2270
- var regexExec = RegExp.prototype.exec;
2271
- var gOPD = Object.getOwnPropertyDescriptor;
2272
-
2273
- var tryRegexExecCall = function tryRegexExec(value) {
2274
- try {
2275
- var lastIndex = value.lastIndex;
2276
- value.lastIndex = 0; // eslint-disable-line no-param-reassign
2227
+ var hasSymbols$3 = hasSymbols$1();
2228
+ var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
2229
+ var has$1;
2230
+ var $exec;
2231
+ var isRegexMarker;
2232
+ var badStringifier;
2233
+
2234
+ if (hasToStringTag) {
2235
+ has$1 = callBound('Object.prototype.hasOwnProperty');
2236
+ $exec = callBound('RegExp.prototype.exec');
2237
+ isRegexMarker = {};
2238
+
2239
+ var throwRegexMarker = function () {
2240
+ throw isRegexMarker;
2241
+ };
2242
+ badStringifier = {
2243
+ toString: throwRegexMarker,
2244
+ valueOf: throwRegexMarker
2245
+ };
2277
2246
 
2278
- regexExec.call(value);
2279
- return true;
2280
- } catch (e) {
2281
- return false;
2282
- } finally {
2283
- value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2247
+ if (typeof Symbol.toPrimitive === 'symbol') {
2248
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
2284
2249
  }
2285
- };
2286
- var toStr$5 = Object.prototype.toString;
2250
+ }
2251
+
2252
+ var $toString = callBound('Object.prototype.toString');
2253
+ var gOPD = Object.getOwnPropertyDescriptor;
2287
2254
  var regexClass = '[object RegExp]';
2288
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2289
2255
 
2290
- var isRegex = function isRegex(value) {
2291
- if (!value || typeof value !== 'object') {
2292
- return false;
2293
- }
2294
- if (!hasToStringTag) {
2295
- return toStr$5.call(value) === regexClass;
2296
- }
2256
+ var isRegex = hasToStringTag
2257
+ // eslint-disable-next-line consistent-return
2258
+ ? function isRegex(value) {
2259
+ if (!value || typeof value !== 'object') {
2260
+ return false;
2261
+ }
2297
2262
 
2298
- var descriptor = gOPD(value, 'lastIndex');
2299
- var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
2300
- if (!hasLastIndexDataProperty) {
2301
- return false;
2263
+ var descriptor = gOPD(value, 'lastIndex');
2264
+ var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
2265
+ if (!hasLastIndexDataProperty) {
2266
+ return false;
2267
+ }
2268
+
2269
+ try {
2270
+ $exec(value, badStringifier);
2271
+ } catch (e) {
2272
+ return e === isRegexMarker;
2273
+ }
2302
2274
  }
2275
+ : function isRegex(value) {
2276
+ // In older browsers, typeof regex incorrectly returns 'function'
2277
+ if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2278
+ return false;
2279
+ }
2303
2280
 
2304
- return tryRegexExecCall(value);
2305
- };
2281
+ return $toString(value) === regexClass;
2282
+ };
2306
2283
 
2307
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2284
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.2
2308
2285
 
2309
2286
  var ToBoolean = function ToBoolean(value) { return !!value; };
2310
2287
 
2311
- var $match = GetIntrinsic('%Symbol.match%', true);
2288
+ var $match = getIntrinsic('%Symbol.match%', true);
2312
2289
 
2313
2290
 
2314
2291
 
@@ -2330,6 +2307,27 @@ var IsRegExp = function IsRegExp(argument) {
2330
2307
  };
2331
2308
 
2332
2309
  var fnToStr = Function.prototype.toString;
2310
+ var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2311
+ var badArrayLike;
2312
+ var isCallableMarker;
2313
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2314
+ try {
2315
+ badArrayLike = Object.defineProperty({}, 'length', {
2316
+ get: function () {
2317
+ throw isCallableMarker;
2318
+ }
2319
+ });
2320
+ isCallableMarker = {};
2321
+ // eslint-disable-next-line no-throw-literal
2322
+ reflectApply(function () { throw 42; }, null, badArrayLike);
2323
+ } catch (_) {
2324
+ if (_ !== isCallableMarker) {
2325
+ reflectApply = null;
2326
+ }
2327
+ }
2328
+ } else {
2329
+ reflectApply = null;
2330
+ }
2333
2331
 
2334
2332
  var constructorRegex = /^\s*class\b/;
2335
2333
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2350,26 +2348,42 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2350
2348
  return false;
2351
2349
  }
2352
2350
  };
2353
- var toStr$6 = Object.prototype.toString;
2351
+ var toStr$5 = Object.prototype.toString;
2354
2352
  var fnClass = '[object Function]';
2355
2353
  var genClass = '[object GeneratorFunction]';
2356
2354
  var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2355
+ /* globals document: false */
2356
+ var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2357
+
2358
+ var isCallable = reflectApply
2359
+ ? function isCallable(value) {
2360
+ if (value === documentDotAll) { return true; }
2361
+ if (!value) { return false; }
2362
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2363
+ if (typeof value === 'function' && !value.prototype) { return true; }
2364
+ try {
2365
+ reflectApply(value, null, badArrayLike);
2366
+ } catch (e) {
2367
+ if (e !== isCallableMarker) { return false; }
2368
+ }
2369
+ return !isES6ClassFn(value);
2370
+ }
2371
+ : function isCallable(value) {
2372
+ if (value === documentDotAll) { return true; }
2373
+ if (!value) { return false; }
2374
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2375
+ if (typeof value === 'function' && !value.prototype) { return true; }
2376
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
2377
+ if (isES6ClassFn(value)) { return false; }
2378
+ var strClass = toStr$5.call(value);
2379
+ return strClass === fnClass || strClass === genClass;
2380
+ };
2357
2381
 
2358
- var isCallable = function isCallable(value) {
2359
- if (!value) { return false; }
2360
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2361
- if (typeof value === 'function' && !value.prototype) { return true; }
2362
- if (hasToStringTag$1) { return tryFunctionObject(value); }
2363
- if (isES6ClassFn(value)) { return false; }
2364
- var strClass = toStr$6.call(value);
2365
- return strClass === fnClass || strClass === genClass;
2366
- };
2367
-
2368
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2382
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.11
2369
2383
 
2370
2384
  var IsCallable = isCallable;
2371
2385
 
2372
- var $TypeError$2 = GetIntrinsic('%TypeError%');
2386
+ var $TypeError$2 = getIntrinsic('%TypeError%');
2373
2387
 
2374
2388
 
2375
2389
 
@@ -2398,7 +2412,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2398
2412
  if (src(Obj, 'get')) {
2399
2413
  var getter = Obj.get;
2400
2414
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2401
- throw new TypeError('getter must be a function');
2415
+ throw new $TypeError$2('getter must be a function');
2402
2416
  }
2403
2417
  desc['[[Get]]'] = getter;
2404
2418
  }
@@ -2416,7 +2430,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2416
2430
  return desc;
2417
2431
  };
2418
2432
 
2419
- var $TypeError$3 = GetIntrinsic('%TypeError%');
2433
+ var $TypeError$3 = getIntrinsic('%TypeError%');
2420
2434
 
2421
2435
 
2422
2436
 
@@ -2430,7 +2444,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2430
2444
 
2431
2445
 
2432
2446
 
2433
- // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2447
+ // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2434
2448
 
2435
2449
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2436
2450
  if (Type$1(O) !== 'Object') {
@@ -2456,7 +2470,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2456
2470
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2457
2471
  };
2458
2472
 
2459
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2473
+ // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2460
2474
 
2461
2475
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2462
2476
  if (typeof Desc === 'undefined') {
@@ -2476,14 +2490,14 @@ var isPrimitive = function isPrimitive(value) {
2476
2490
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2477
2491
  };
2478
2492
 
2479
- var $Object = GetIntrinsic('%Object%');
2493
+ var $Object = getIntrinsic('%Object%');
2480
2494
 
2481
2495
 
2482
2496
 
2483
2497
  var $preventExtensions = $Object.preventExtensions;
2484
2498
  var $isExtensible = $Object.isExtensible;
2485
2499
 
2486
- // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2500
+ // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2487
2501
 
2488
2502
  var IsExtensible = $preventExtensions
2489
2503
  ? function IsExtensible(obj) {
@@ -2497,7 +2511,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2497
2511
  return a !== a;
2498
2512
  };
2499
2513
 
2500
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2514
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.12
2501
2515
 
2502
2516
  var SameValue = function SameValue(x, y) {
2503
2517
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2507,7 +2521,7 @@ var SameValue = function SameValue(x, y) {
2507
2521
  return _isNaN(x) && _isNaN(y);
2508
2522
  };
2509
2523
 
2510
- var $TypeError$4 = GetIntrinsic('%TypeError%');
2524
+ var $TypeError$4 = getIntrinsic('%TypeError%');
2511
2525
 
2512
2526
 
2513
2527
 
@@ -2519,7 +2533,7 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
2519
2533
 
2520
2534
 
2521
2535
 
2522
- // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2536
+ // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2523
2537
 
2524
2538
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2525
2539
  if (Type$1(O) !== 'Object') {
@@ -2549,9 +2563,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2549
2563
  );
2550
2564
  };
2551
2565
 
2552
- var $TypeError$5 = GetIntrinsic('%TypeError%');
2566
+ var $TypeError$5 = getIntrinsic('%TypeError%');
2553
2567
 
2554
- // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2568
+ // http://ecma-international.org/ecma-262/5.1/#sec-9.10
2555
2569
 
2556
2570
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2557
2571
  if (value == null) {
@@ -2562,11 +2576,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2562
2576
 
2563
2577
  var RequireObjectCoercible = CheckObjectCoercible;
2564
2578
 
2565
- var $Object$1 = GetIntrinsic('%Object%');
2579
+ var $Object$1 = getIntrinsic('%Object%');
2566
2580
 
2567
2581
 
2568
2582
 
2569
- // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2583
+ // https://ecma-international.org/ecma-262/6.0/#sec-toobject
2570
2584
 
2571
2585
  var ToObject = function ToObject(value) {
2572
2586
  RequireObjectCoercible(value);
@@ -2576,10 +2590,10 @@ var ToObject = function ToObject(value) {
2576
2590
  var $gOPD$2 = Object.getOwnPropertyDescriptor;
2577
2591
  var $getOwnNames = Object.getOwnPropertyNames;
2578
2592
  var $getSymbols = Object.getOwnPropertySymbols;
2579
- var $concat = callBound('Array.prototype.concat');
2593
+ var $concat$1 = callBound('Array.prototype.concat');
2580
2594
  var $reduce = callBound('Array.prototype.reduce');
2581
2595
  var getAll = $getSymbols ? function (obj) {
2582
- return $concat($getOwnNames(obj), $getSymbols(obj));
2596
+ return $concat$1($getOwnNames(obj), $getSymbols(obj));
2583
2597
  } : $getOwnNames;
2584
2598
 
2585
2599
  var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
@@ -2618,13 +2632,281 @@ var shim = function shimGetOwnPropertyDescriptors() {
2618
2632
  return polyfill$1;
2619
2633
  };
2620
2634
 
2621
- defineProperties_1(implementation$2, {
2635
+ var bound = callBind(polyfill(), Object);
2636
+
2637
+ defineProperties_1(bound, {
2622
2638
  getPolyfill: polyfill,
2623
2639
  implementation: implementation$2,
2624
2640
  shim: shim
2625
2641
  });
2626
2642
 
2627
- var object_getownpropertydescriptors = implementation$2;
2643
+ var object_getownpropertydescriptors = bound;
2644
+
2645
+ /* globals
2646
+ Atomics,
2647
+ SharedArrayBuffer,
2648
+ */
2649
+
2650
+ var undefined$2;
2651
+
2652
+ var $TypeError$6 = TypeError;
2653
+
2654
+ var $gOPD$3 = Object.getOwnPropertyDescriptor;
2655
+ if ($gOPD$3) {
2656
+ try {
2657
+ $gOPD$3({}, '');
2658
+ } catch (e) {
2659
+ $gOPD$3 = null; // this is IE 8, which has a broken gOPD
2660
+ }
2661
+ }
2662
+
2663
+ var throwTypeError$1 = function () { throw new $TypeError$6(); };
2664
+ var ThrowTypeError$1 = $gOPD$3
2665
+ ? (function () {
2666
+ try {
2667
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
2668
+ arguments.callee; // IE 8 does not throw here
2669
+ return throwTypeError$1;
2670
+ } catch (calleeThrows) {
2671
+ try {
2672
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
2673
+ return $gOPD$3(arguments, 'callee').get;
2674
+ } catch (gOPDthrows) {
2675
+ return throwTypeError$1;
2676
+ }
2677
+ }
2678
+ }())
2679
+ : throwTypeError$1;
2680
+
2681
+ var hasSymbols$4 = hasSymbols$1();
2682
+
2683
+ var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
2684
+ var generatorFunction = undefined$2;
2685
+ var asyncFunction = undefined$2;
2686
+ var asyncGenFunction = undefined$2;
2687
+
2688
+ var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
2689
+
2690
+ var INTRINSICS$1 = {
2691
+ '%Array%': Array,
2692
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
2693
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
2694
+ '%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
2695
+ '%ArrayPrototype%': Array.prototype,
2696
+ '%ArrayProto_entries%': Array.prototype.entries,
2697
+ '%ArrayProto_forEach%': Array.prototype.forEach,
2698
+ '%ArrayProto_keys%': Array.prototype.keys,
2699
+ '%ArrayProto_values%': Array.prototype.values,
2700
+ '%AsyncFromSyncIteratorPrototype%': undefined$2,
2701
+ '%AsyncFunction%': asyncFunction,
2702
+ '%AsyncFunctionPrototype%': undefined$2,
2703
+ '%AsyncGenerator%': undefined$2,
2704
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2705
+ '%AsyncGeneratorPrototype%': undefined$2,
2706
+ '%AsyncIteratorPrototype%': undefined$2,
2707
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
2708
+ '%Boolean%': Boolean,
2709
+ '%BooleanPrototype%': Boolean.prototype,
2710
+ '%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
2711
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
2712
+ '%Date%': Date,
2713
+ '%DatePrototype%': Date.prototype,
2714
+ '%decodeURI%': decodeURI,
2715
+ '%decodeURIComponent%': decodeURIComponent,
2716
+ '%encodeURI%': encodeURI,
2717
+ '%encodeURIComponent%': encodeURIComponent,
2718
+ '%Error%': Error,
2719
+ '%ErrorPrototype%': Error.prototype,
2720
+ '%eval%': eval, // eslint-disable-line no-eval
2721
+ '%EvalError%': EvalError,
2722
+ '%EvalErrorPrototype%': EvalError.prototype,
2723
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
2724
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
2725
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
2726
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
2727
+ '%Function%': Function,
2728
+ '%FunctionPrototype%': Function.prototype,
2729
+ '%Generator%': undefined$2,
2730
+ '%GeneratorFunction%': generatorFunction,
2731
+ '%GeneratorPrototype%': undefined$2,
2732
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
2733
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2734
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
2735
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
2736
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
2737
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
2738
+ '%isFinite%': isFinite,
2739
+ '%isNaN%': isNaN,
2740
+ '%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
2741
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
2742
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
2743
+ '%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
2744
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
2745
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
2746
+ '%Math%': Math,
2747
+ '%Number%': Number,
2748
+ '%NumberPrototype%': Number.prototype,
2749
+ '%Object%': Object,
2750
+ '%ObjectPrototype%': Object.prototype,
2751
+ '%ObjProto_toString%': Object.prototype.toString,
2752
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
2753
+ '%parseFloat%': parseFloat,
2754
+ '%parseInt%': parseInt,
2755
+ '%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
2756
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
2757
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
2758
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
2759
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
2760
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
2761
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
2762
+ '%RangeError%': RangeError,
2763
+ '%RangeErrorPrototype%': RangeError.prototype,
2764
+ '%ReferenceError%': ReferenceError,
2765
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
2766
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
2767
+ '%RegExp%': RegExp,
2768
+ '%RegExpPrototype%': RegExp.prototype,
2769
+ '%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
2770
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
2771
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
2772
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
2773
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
2774
+ '%String%': String,
2775
+ '%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
2776
+ '%StringPrototype%': String.prototype,
2777
+ '%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
2778
+ '%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
2779
+ '%SyntaxError%': SyntaxError,
2780
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
2781
+ '%ThrowTypeError%': ThrowTypeError$1,
2782
+ '%TypedArray%': TypedArray$1,
2783
+ '%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
2784
+ '%TypeError%': $TypeError$6,
2785
+ '%TypeErrorPrototype%': $TypeError$6.prototype,
2786
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
2787
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
2788
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
2789
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
2790
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
2791
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
2792
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
2793
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
2794
+ '%URIError%': URIError,
2795
+ '%URIErrorPrototype%': URIError.prototype,
2796
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
2797
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
2798
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
2799
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
2800
+ };
2801
+
2802
+
2803
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
2804
+
2805
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
2806
+ var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
2807
+ var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
2808
+ var stringToPath$1 = function stringToPath(string) {
2809
+ var result = [];
2810
+ $replace$1(string, rePropName$1, function (match, number, quote, subString) {
2811
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
2812
+ });
2813
+ return result;
2814
+ };
2815
+ /* end adaptation */
2816
+
2817
+ var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
2818
+ if (!(name in INTRINSICS$1)) {
2819
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
2820
+ }
2821
+
2822
+ // istanbul ignore if // hopefully this is impossible to test :-)
2823
+ if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
2824
+ throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
2825
+ }
2826
+
2827
+ return INTRINSICS$1[name];
2828
+ };
2829
+
2830
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
2831
+ if (typeof name !== 'string' || name.length === 0) {
2832
+ throw new TypeError('intrinsic name must be a non-empty string');
2833
+ }
2834
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
2835
+ throw new TypeError('"allowMissing" argument must be a boolean');
2836
+ }
2837
+
2838
+ var parts = stringToPath$1(name);
2839
+
2840
+ var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2841
+ for (var i = 1; i < parts.length; i += 1) {
2842
+ if (value != null) {
2843
+ if ($gOPD$3 && (i + 1) >= parts.length) {
2844
+ var desc = $gOPD$3(value, parts[i]);
2845
+ if (!allowMissing && !(parts[i] in value)) {
2846
+ throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
2847
+ }
2848
+ // By convention, when a data property is converted to an accessor
2849
+ // property to emulate a data property that does not suffer from
2850
+ // the override mistake, that accessor's getter is marked with
2851
+ // an `originalValue` property. Here, when we detect this, we
2852
+ // uphold the illusion by pretending to see that original data
2853
+ // property, i.e., returning the value rather than the getter
2854
+ // itself.
2855
+ value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
2856
+ } else {
2857
+ value = value[parts[i]];
2858
+ }
2859
+ }
2860
+ }
2861
+ return value;
2862
+ };
2863
+
2864
+ var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
2871
+ var $call = GetIntrinsic('%Function.prototype.call%');
2872
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
2873
+
2874
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2875
+
2876
+ if ($defineProperty) {
2877
+ try {
2878
+ $defineProperty({}, 'a', { value: 1 });
2879
+ } catch (e) {
2880
+ // IE 8 has a broken defineProperty
2881
+ $defineProperty = null;
2882
+ }
2883
+ }
2884
+
2885
+ module.exports = function callBind() {
2886
+ return $reflectApply(functionBind, $call, arguments);
2887
+ };
2888
+
2889
+ var applyBind = function applyBind() {
2890
+ return $reflectApply(functionBind, $apply, arguments);
2891
+ };
2892
+
2893
+ if ($defineProperty) {
2894
+ $defineProperty(module.exports, 'apply', { value: applyBind });
2895
+ } else {
2896
+ module.exports.apply = applyBind;
2897
+ }
2898
+ });
2899
+ var callBind_1$1 = callBind$1.apply;
2900
+
2901
+ var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
2902
+
2903
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2904
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2905
+ if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
2906
+ return callBind$1(intrinsic);
2907
+ }
2908
+ return intrinsic;
2909
+ };
2628
2910
 
2629
2911
  var isES5$1 = typeof Object.defineProperty === 'function'
2630
2912
  && typeof Object.defineProperties === 'function';
@@ -2643,14 +2925,14 @@ if (typeof Promise !== 'function') {
2643
2925
 
2644
2926
 
2645
2927
 
2646
- var $slice = callBound('Array.prototype.slice');
2647
- var $concat$1 = callBound('Array.prototype.concat');
2648
- var $forEach = callBound('Array.prototype.forEach');
2928
+ var $slice = callBound$1('Array.prototype.slice');
2929
+ var $concat$2 = callBound$1('Array.prototype.concat');
2930
+ var $forEach = callBound$1('Array.prototype.forEach');
2649
2931
 
2650
- var hasSymbols$3 = hasSymbols$1();
2932
+ var hasSymbols$5 = hasSymbols$1();
2651
2933
 
2652
- var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
2653
- var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2934
+ var kCustomPromisifiedSymbol = hasSymbols$5 ? Symbol('util.promisify.custom') : null;
2935
+ var kCustomPromisifyArgsSymbol = hasSymbols$5 ? Symbol('customPromisifyArgs') : null;
2654
2936
 
2655
2937
  var implementation$3 = function promisify(orig) {
2656
2938
  if (typeof orig !== 'function') {
@@ -2660,7 +2942,7 @@ var implementation$3 = function promisify(orig) {
2660
2942
  throw error;
2661
2943
  }
2662
2944
 
2663
- if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2945
+ if (hasSymbols$5 && orig[kCustomPromisifiedSymbol]) {
2664
2946
  var customFunction = orig[kCustomPromisifiedSymbol];
2665
2947
  if (typeof customFunction !== 'function') {
2666
2948
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2682,7 +2964,7 @@ var implementation$3 = function promisify(orig) {
2682
2964
  var args = $slice(arguments);
2683
2965
  var self = this; // eslint-disable-line no-invalid-this
2684
2966
  return new Promise(function (resolve, reject) {
2685
- orig.apply(self, $concat$1(args, function (err) {
2967
+ orig.apply(self, $concat$2(args, function (err) {
2686
2968
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2687
2969
  if (err) {
2688
2970
  reject(err);
@@ -2961,7 +3243,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
2961
3243
  message = utf8.stringToBytes(message);
2962
3244
  else if (isBuffer(message))
2963
3245
  message = Array.prototype.slice.call(message, 0);
2964
- else if (!Array.isArray(message))
3246
+ else if (!Array.isArray(message) && message.constructor !== Uint8Array)
2965
3247
  message = message.toString();
2966
3248
  // else, assume byte array already
2967
3249
 
@@ -3117,10 +3399,10 @@ var config = {
3117
3399
  };
3118
3400
 
3119
3401
  var findUser = function () {
3120
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(email) {
3402
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(email) {
3121
3403
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
3122
3404
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
3123
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
3405
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
3124
3406
  while (1) {
3125
3407
  switch (_context.prev = _context.next) {
3126
3408
  case 0:
@@ -3225,9 +3507,9 @@ var findUser = function () {
3225
3507
  }();
3226
3508
 
3227
3509
  var updateUser = function () {
3228
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
3510
+ var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee2(data) {
3229
3511
  var db$1, query, res, hash, columns, i, column, occupation_name;
3230
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
3512
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee2$(_context2) {
3231
3513
  while (1) {
3232
3514
  switch (_context2.prev = _context2.next) {
3233
3515
  case 0:
@@ -3428,9 +3710,9 @@ var validateUserData = function validateUserData(data) {
3428
3710
  };
3429
3711
 
3430
3712
  var getOccupationNameById = function () {
3431
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(db, occupation_id) {
3713
+ var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee3(db, occupation_id) {
3432
3714
  var query, res;
3433
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
3715
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee3$(_context3) {
3434
3716
  while (1) {
3435
3717
  switch (_context3.prev = _context3.next) {
3436
3718
  case 0:
@@ -3465,9 +3747,9 @@ var getOccupationNameById = function () {
3465
3747
  }();
3466
3748
 
3467
3749
  var createUser = function () {
3468
- var _ref4 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee4(data) {
3750
+ var _ref4 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee4(data) {
3469
3751
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3470
- return asyncToGenerator.regenerator.wrap(function _callee4$(_context4) {
3752
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee4$(_context4) {
3471
3753
  while (1) {
3472
3754
  switch (_context4.prev = _context4.next) {
3473
3755
  case 0:
@@ -3612,9 +3894,9 @@ var createUser = function () {
3612
3894
  }();
3613
3895
 
3614
3896
  var createUser$1 = function () {
3615
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(data) {
3897
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(data) {
3616
3898
  var res;
3617
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
3899
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
3618
3900
  while (1) {
3619
3901
  switch (_context.prev = _context.next) {
3620
3902
  case 0:
@@ -3648,9 +3930,9 @@ var createUser$1 = function () {
3648
3930
  }();
3649
3931
 
3650
3932
  var updateUser$1 = function () {
3651
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(data) {
3933
+ var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee2(data) {
3652
3934
  var res;
3653
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
3935
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee2$(_context2) {
3654
3936
  while (1) {
3655
3937
  switch (_context2.prev = _context2.next) {
3656
3938
  case 0:
@@ -3684,11 +3966,11 @@ var updateUser$1 = function () {
3684
3966
  }();
3685
3967
 
3686
3968
  var findUser$1 = function () {
3687
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(_ref4) {
3969
+ var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee3(_ref4) {
3688
3970
  var email = _ref4.email,
3689
3971
  password = _ref4.password;
3690
3972
  var res;
3691
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
3973
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee3$(_context3) {
3692
3974
  while (1) {
3693
3975
  switch (_context3.prev = _context3.next) {
3694
3976
  case 0:
@@ -3755,9 +4037,9 @@ var config$1 = {
3755
4037
  };
3756
4038
 
3757
4039
  var getOccupation = function () {
3758
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(type) {
4040
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee(type) {
3759
4041
  var db$1, query, result;
3760
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
4042
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
3761
4043
  while (1) {
3762
4044
  switch (_context.prev = _context.next) {
3763
4045
  case 0:
@@ -3788,9 +4070,9 @@ var getOccupation = function () {
3788
4070
  }();
3789
4071
 
3790
4072
  var getFieldsAndOptions = function () {
3791
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(occupation) {
4073
+ var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee2(occupation) {
3792
4074
  var db$1, query, result, i, field, optionQuery, options;
3793
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
4075
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee2$(_context2) {
3794
4076
  while (1) {
3795
4077
  switch (_context2.prev = _context2.next) {
3796
4078
  case 0:
@@ -3851,9 +4133,9 @@ var getFieldsAndOptions = function () {
3851
4133
  }();
3852
4134
 
3853
4135
  var ProcessData = (function () {
3854
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(req, res) {
4136
+ var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee3(req, res) {
3855
4137
  var action, data, type, occupation;
3856
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
4138
+ return asyncToGenerator._regeneratorRuntime.wrap(function _callee3$(_context3) {
3857
4139
  while (1) {
3858
4140
  switch (_context3.prev = _context3.next) {
3859
4141
  case 0: