Showing
410 changed files
with
102 additions
and
1643 deletions
.gitignore
0 → 100644
1 | +node_modules |
... | @@ -6782,6 +6782,19 @@ | ... | @@ -6782,6 +6782,19 @@ |
6782 | "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", | 6782 | "resolved": "https://registry.npmjs.org/hex-color-regex/-/hex-color-regex-1.1.0.tgz", |
6783 | "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" | 6783 | "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" |
6784 | }, | 6784 | }, |
6785 | + "history": { | ||
6786 | + "version": "4.10.1", | ||
6787 | + "resolved": "https://registry.npmjs.org/history/-/history-4.10.1.tgz", | ||
6788 | + "integrity": "sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==", | ||
6789 | + "requires": { | ||
6790 | + "@babel/runtime": "^7.1.2", | ||
6791 | + "loose-envify": "^1.2.0", | ||
6792 | + "resolve-pathname": "^3.0.0", | ||
6793 | + "tiny-invariant": "^1.0.2", | ||
6794 | + "tiny-warning": "^1.0.0", | ||
6795 | + "value-equal": "^1.0.1" | ||
6796 | + } | ||
6797 | + }, | ||
6785 | "hmac-drbg": { | 6798 | "hmac-drbg": { |
6786 | "version": "1.0.1", | 6799 | "version": "1.0.1", |
6787 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", | 6800 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", |
... | @@ -6792,6 +6805,14 @@ | ... | @@ -6792,6 +6805,14 @@ |
6792 | "minimalistic-crypto-utils": "^1.0.1" | 6805 | "minimalistic-crypto-utils": "^1.0.1" |
6793 | } | 6806 | } |
6794 | }, | 6807 | }, |
6808 | + "hoist-non-react-statics": { | ||
6809 | + "version": "3.3.2", | ||
6810 | + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", | ||
6811 | + "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", | ||
6812 | + "requires": { | ||
6813 | + "react-is": "^16.7.0" | ||
6814 | + } | ||
6815 | + }, | ||
6795 | "hosted-git-info": { | 6816 | "hosted-git-info": { |
6796 | "version": "2.8.8", | 6817 | "version": "2.8.8", |
6797 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", | 6818 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", |
... | @@ -8654,6 +8675,15 @@ | ... | @@ -8654,6 +8675,15 @@ |
8654 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz", | 8675 | "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.0.tgz", |
8655 | "integrity": "sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=" | 8676 | "integrity": "sha1-z8RcN+nsDY8KDsPdTvf3w6vjklY=" |
8656 | }, | 8677 | }, |
8678 | + "mini-create-react-context": { | ||
8679 | + "version": "0.4.0", | ||
8680 | + "resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.0.tgz", | ||
8681 | + "integrity": "sha512-b0TytUgFSbgFJGzJqXPKCFCBWigAjpjo+Fl7Vf7ZbKRDptszpppKxXH6DRXEABZ/gcEQczeb0iZ7JvL8e8jjCA==", | ||
8682 | + "requires": { | ||
8683 | + "@babel/runtime": "^7.5.5", | ||
8684 | + "tiny-warning": "^1.0.3" | ||
8685 | + } | ||
8686 | + }, | ||
8657 | "mini-css-extract-plugin": { | 8687 | "mini-css-extract-plugin": { |
8658 | "version": "0.9.0", | 8688 | "version": "0.9.0", |
8659 | "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.0.tgz", | 8689 | "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.9.0.tgz", |
... | @@ -11121,6 +11151,52 @@ | ... | @@ -11121,6 +11151,52 @@ |
11121 | "warning": "^4.0.2" | 11151 | "warning": "^4.0.2" |
11122 | } | 11152 | } |
11123 | }, | 11153 | }, |
11154 | + "react-router": { | ||
11155 | + "version": "5.2.0", | ||
11156 | + "resolved": "https://registry.npmjs.org/react-router/-/react-router-5.2.0.tgz", | ||
11157 | + "integrity": "sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==", | ||
11158 | + "requires": { | ||
11159 | + "@babel/runtime": "^7.1.2", | ||
11160 | + "history": "^4.9.0", | ||
11161 | + "hoist-non-react-statics": "^3.1.0", | ||
11162 | + "loose-envify": "^1.3.1", | ||
11163 | + "mini-create-react-context": "^0.4.0", | ||
11164 | + "path-to-regexp": "^1.7.0", | ||
11165 | + "prop-types": "^15.6.2", | ||
11166 | + "react-is": "^16.6.0", | ||
11167 | + "tiny-invariant": "^1.0.2", | ||
11168 | + "tiny-warning": "^1.0.0" | ||
11169 | + }, | ||
11170 | + "dependencies": { | ||
11171 | + "isarray": { | ||
11172 | + "version": "0.0.1", | ||
11173 | + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", | ||
11174 | + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" | ||
11175 | + }, | ||
11176 | + "path-to-regexp": { | ||
11177 | + "version": "1.8.0", | ||
11178 | + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", | ||
11179 | + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", | ||
11180 | + "requires": { | ||
11181 | + "isarray": "0.0.1" | ||
11182 | + } | ||
11183 | + } | ||
11184 | + } | ||
11185 | + }, | ||
11186 | + "react-router-dom": { | ||
11187 | + "version": "5.2.0", | ||
11188 | + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.2.0.tgz", | ||
11189 | + "integrity": "sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==", | ||
11190 | + "requires": { | ||
11191 | + "@babel/runtime": "^7.1.2", | ||
11192 | + "history": "^4.9.0", | ||
11193 | + "loose-envify": "^1.3.1", | ||
11194 | + "prop-types": "^15.6.2", | ||
11195 | + "react-router": "5.2.0", | ||
11196 | + "tiny-invariant": "^1.0.2", | ||
11197 | + "tiny-warning": "^1.0.0" | ||
11198 | + } | ||
11199 | + }, | ||
11124 | "react-scripts": { | 11200 | "react-scripts": { |
11125 | "version": "3.4.1", | 11201 | "version": "3.4.1", |
11126 | "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz", | 11202 | "resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-3.4.1.tgz", |
... | @@ -11584,6 +11660,11 @@ | ... | @@ -11584,6 +11660,11 @@ |
11584 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", | 11660 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", |
11585 | "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" | 11661 | "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=" |
11586 | }, | 11662 | }, |
11663 | + "resolve-pathname": { | ||
11664 | + "version": "3.0.0", | ||
11665 | + "resolved": "https://registry.npmjs.org/resolve-pathname/-/resolve-pathname-3.0.0.tgz", | ||
11666 | + "integrity": "sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==" | ||
11667 | + }, | ||
11587 | "resolve-url": { | 11668 | "resolve-url": { |
11588 | "version": "0.2.1", | 11669 | "version": "0.2.1", |
11589 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", | 11670 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", |
... | @@ -13044,6 +13125,16 @@ | ... | @@ -13044,6 +13125,16 @@ |
13044 | "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", | 13125 | "resolved": "https://registry.npmjs.org/timsort/-/timsort-0.3.0.tgz", |
13045 | "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" | 13126 | "integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=" |
13046 | }, | 13127 | }, |
13128 | + "tiny-invariant": { | ||
13129 | + "version": "1.1.0", | ||
13130 | + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.1.0.tgz", | ||
13131 | + "integrity": "sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw==" | ||
13132 | + }, | ||
13133 | + "tiny-warning": { | ||
13134 | + "version": "1.0.3", | ||
13135 | + "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", | ||
13136 | + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" | ||
13137 | + }, | ||
13047 | "tmp": { | 13138 | "tmp": { |
13048 | "version": "0.0.33", | 13139 | "version": "0.0.33", |
13049 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", | 13140 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", |
... | @@ -13418,6 +13509,11 @@ | ... | @@ -13418,6 +13509,11 @@ |
13418 | "spdx-expression-parse": "^3.0.0" | 13509 | "spdx-expression-parse": "^3.0.0" |
13419 | } | 13510 | } |
13420 | }, | 13511 | }, |
13512 | + "value-equal": { | ||
13513 | + "version": "1.0.1", | ||
13514 | + "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", | ||
13515 | + "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==" | ||
13516 | + }, | ||
13421 | "vary": { | 13517 | "vary": { |
13422 | "version": "1.1.2", | 13518 | "version": "1.1.2", |
13423 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | 13519 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", | ... | ... |
... | @@ -10,6 +10,7 @@ | ... | @@ -10,6 +10,7 @@ |
10 | "react": "^16.13.1", | 10 | "react": "^16.13.1", |
11 | "react-app-polyfill": "^1.0.6", | 11 | "react-app-polyfill": "^1.0.6", |
12 | "react-dom": "^16.13.1", | 12 | "react-dom": "^16.13.1", |
13 | + "react-router-dom": "^5.2.0", | ||
13 | "react-scripts": "3.4.1", | 14 | "react-scripts": "3.4.1", |
14 | "reactstrap": "^8.4.1" | 15 | "reactstrap": "^8.4.1" |
15 | }, | 16 | }, |
... | @@ -33,5 +34,6 @@ | ... | @@ -33,5 +34,6 @@ |
33 | "last 1 firefox version", | 34 | "last 1 firefox version", |
34 | "last 1 safari version" | 35 | "last 1 safari version" |
35 | ] | 36 | ] |
36 | - } | 37 | + }, |
38 | + "proxy": "http://localhost:5000/" | ||
37 | } | 39 | } | ... | ... |
... | @@ -5,8 +5,7 @@ import MenuPage from './pages/MenuPage'; | ... | @@ -5,8 +5,7 @@ import MenuPage from './pages/MenuPage'; |
5 | import { | 5 | import { |
6 | BrowserRouter as Router, | 6 | BrowserRouter as Router, |
7 | Switch, | 7 | Switch, |
8 | - Route, | 8 | + Route |
9 | - Link | ||
10 | } from "react-router-dom"; | 9 | } from "react-router-dom"; |
11 | 10 | ||
12 | 11 | ... | ... |
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import NavBar from '../components/NavBar'; | 2 | import NavBar from '../components/NavBar'; |
3 | import { Container } from 'reactstrap'; | 3 | import { Container } from 'reactstrap'; |
4 | -import { Jumbotron, Button } from 'reactstrap'; | 4 | +import { Jumbotron } from 'reactstrap'; |
5 | 5 | ||
6 | const AboutPage = (props) => { | 6 | const AboutPage = (props) => { |
7 | return ( | 7 | return ( | ... | ... |
node_modules/.bin/loose-envify
deleted
100644 → 0
1 | -#!/bin/sh | ||
2 | -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") | ||
3 | - | ||
4 | -case `uname` in | ||
5 | - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; | ||
6 | -esac | ||
7 | - | ||
8 | -if [ -x "$basedir/node" ]; then | ||
9 | - "$basedir/node" "$basedir/../loose-envify/cli.js" "$@" | ||
10 | - ret=$? | ||
11 | -else | ||
12 | - node "$basedir/../loose-envify/cli.js" "$@" | ||
13 | - ret=$? | ||
14 | -fi | ||
15 | -exit $ret |
node_modules/.bin/loose-envify.cmd
deleted
100644 → 0
1 | -@ECHO off | ||
2 | -SETLOCAL | ||
3 | -CALL :find_dp0 | ||
4 | - | ||
5 | -IF EXIST "%dp0%\node.exe" ( | ||
6 | - SET "_prog=%dp0%\node.exe" | ||
7 | -) ELSE ( | ||
8 | - SET "_prog=node" | ||
9 | - SET PATHEXT=%PATHEXT:;.JS;=;% | ||
10 | -) | ||
11 | - | ||
12 | -"%_prog%" "%dp0%\..\loose-envify\cli.js" %* | ||
13 | -ENDLOCAL | ||
14 | -EXIT /b %errorlevel% | ||
15 | -:find_dp0 | ||
16 | -SET dp0=%~dp0 | ||
17 | -EXIT /b |
node_modules/.bin/loose-envify.ps1
deleted
100644 → 0
1 | -#!/usr/bin/env pwsh | ||
2 | -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent | ||
3 | - | ||
4 | -$exe="" | ||
5 | -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { | ||
6 | - # Fix case when both the Windows and Linux builds of Node | ||
7 | - # are installed in the same directory | ||
8 | - $exe=".exe" | ||
9 | -} | ||
10 | -$ret=0 | ||
11 | -if (Test-Path "$basedir/node$exe") { | ||
12 | - & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args | ||
13 | - $ret=$LASTEXITCODE | ||
14 | -} else { | ||
15 | - & "node$exe" "$basedir/../loose-envify/cli.js" $args | ||
16 | - $ret=$LASTEXITCODE | ||
17 | -} | ||
18 | -exit $ret |
node_modules/@babel/runtime/LICENSE
deleted
100644 → 0
1 | -MIT License | ||
2 | - | ||
3 | -Copyright (c) 2014-present Sebastian McKenzie and other contributors | ||
4 | - | ||
5 | -Permission is hereby granted, free of charge, to any person obtaining | ||
6 | -a copy of this software and associated documentation files (the | ||
7 | -"Software"), to deal in the Software without restriction, including | ||
8 | -without limitation the rights to use, copy, modify, merge, publish, | ||
9 | -distribute, sublicense, and/or sell copies of the Software, and to | ||
10 | -permit persons to whom the Software is furnished to do so, subject to | ||
11 | -the following conditions: | ||
12 | - | ||
13 | -The above copyright notice and this permission notice shall be | ||
14 | -included in all copies or substantial portions of the Software. | ||
15 | - | ||
16 | -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
17 | -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
18 | -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
19 | -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
20 | -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
21 | -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
22 | -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
1 | -# @babel/runtime | ||
2 | - | ||
3 | -> babel's modular runtime helpers | ||
4 | - | ||
5 | -See our website [@babel/runtime](https://babeljs.io/docs/en/next/babel-runtime.html) for more information. | ||
6 | - | ||
7 | -## Install | ||
8 | - | ||
9 | -Using npm: | ||
10 | - | ||
11 | -```sh | ||
12 | -npm install --save @babel/runtime | ||
13 | -``` | ||
14 | - | ||
15 | -or using yarn: | ||
16 | - | ||
17 | -```sh | ||
18 | -yarn add @babel/runtime | ||
19 | -``` |
1 | -var AwaitValue = require("./AwaitValue"); | ||
2 | - | ||
3 | -function AsyncGenerator(gen) { | ||
4 | - var front, back; | ||
5 | - | ||
6 | - function send(key, arg) { | ||
7 | - return new Promise(function (resolve, reject) { | ||
8 | - var request = { | ||
9 | - key: key, | ||
10 | - arg: arg, | ||
11 | - resolve: resolve, | ||
12 | - reject: reject, | ||
13 | - next: null | ||
14 | - }; | ||
15 | - | ||
16 | - if (back) { | ||
17 | - back = back.next = request; | ||
18 | - } else { | ||
19 | - front = back = request; | ||
20 | - resume(key, arg); | ||
21 | - } | ||
22 | - }); | ||
23 | - } | ||
24 | - | ||
25 | - function resume(key, arg) { | ||
26 | - try { | ||
27 | - var result = gen[key](arg); | ||
28 | - var value = result.value; | ||
29 | - var wrappedAwait = value instanceof AwaitValue; | ||
30 | - Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { | ||
31 | - if (wrappedAwait) { | ||
32 | - resume(key === "return" ? "return" : "next", arg); | ||
33 | - return; | ||
34 | - } | ||
35 | - | ||
36 | - settle(result.done ? "return" : "normal", arg); | ||
37 | - }, function (err) { | ||
38 | - resume("throw", err); | ||
39 | - }); | ||
40 | - } catch (err) { | ||
41 | - settle("throw", err); | ||
42 | - } | ||
43 | - } | ||
44 | - | ||
45 | - function settle(type, value) { | ||
46 | - switch (type) { | ||
47 | - case "return": | ||
48 | - front.resolve({ | ||
49 | - value: value, | ||
50 | - done: true | ||
51 | - }); | ||
52 | - break; | ||
53 | - | ||
54 | - case "throw": | ||
55 | - front.reject(value); | ||
56 | - break; | ||
57 | - | ||
58 | - default: | ||
59 | - front.resolve({ | ||
60 | - value: value, | ||
61 | - done: false | ||
62 | - }); | ||
63 | - break; | ||
64 | - } | ||
65 | - | ||
66 | - front = front.next; | ||
67 | - | ||
68 | - if (front) { | ||
69 | - resume(front.key, front.arg); | ||
70 | - } else { | ||
71 | - back = null; | ||
72 | - } | ||
73 | - } | ||
74 | - | ||
75 | - this._invoke = send; | ||
76 | - | ||
77 | - if (typeof gen["return"] !== "function") { | ||
78 | - this["return"] = undefined; | ||
79 | - } | ||
80 | -} | ||
81 | - | ||
82 | -if (typeof Symbol === "function" && Symbol.asyncIterator) { | ||
83 | - AsyncGenerator.prototype[Symbol.asyncIterator] = function () { | ||
84 | - return this; | ||
85 | - }; | ||
86 | -} | ||
87 | - | ||
88 | -AsyncGenerator.prototype.next = function (arg) { | ||
89 | - return this._invoke("next", arg); | ||
90 | -}; | ||
91 | - | ||
92 | -AsyncGenerator.prototype["throw"] = function (arg) { | ||
93 | - return this._invoke("throw", arg); | ||
94 | -}; | ||
95 | - | ||
96 | -AsyncGenerator.prototype["return"] = function (arg) { | ||
97 | - return this._invoke("return", arg); | ||
98 | -}; | ||
99 | - | ||
100 | -module.exports = AsyncGenerator; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
2 | - var desc = {}; | ||
3 | - Object.keys(descriptor).forEach(function (key) { | ||
4 | - desc[key] = descriptor[key]; | ||
5 | - }); | ||
6 | - desc.enumerable = !!desc.enumerable; | ||
7 | - desc.configurable = !!desc.configurable; | ||
8 | - | ||
9 | - if ('value' in desc || desc.initializer) { | ||
10 | - desc.writable = true; | ||
11 | - } | ||
12 | - | ||
13 | - desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
14 | - return decorator(target, property, desc) || desc; | ||
15 | - }, desc); | ||
16 | - | ||
17 | - if (context && desc.initializer !== void 0) { | ||
18 | - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
19 | - desc.initializer = undefined; | ||
20 | - } | ||
21 | - | ||
22 | - if (desc.initializer === void 0) { | ||
23 | - Object.defineProperty(target, property, desc); | ||
24 | - desc = null; | ||
25 | - } | ||
26 | - | ||
27 | - return desc; | ||
28 | -} | ||
29 | - | ||
30 | -module.exports = _applyDecoratedDescriptor; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _arrayLikeToArray(arr, len) { | ||
2 | - if (len == null || len > arr.length) len = arr.length; | ||
3 | - | ||
4 | - for (var i = 0, arr2 = new Array(len); i < len; i++) { | ||
5 | - arr2[i] = arr[i]; | ||
6 | - } | ||
7 | - | ||
8 | - return arr2; | ||
9 | -} | ||
10 | - | ||
11 | -module.exports = _arrayLikeToArray; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _assertThisInitialized(self) { | ||
2 | - if (self === void 0) { | ||
3 | - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
4 | - } | ||
5 | - | ||
6 | - return self; | ||
7 | -} | ||
8 | - | ||
9 | -module.exports = _assertThisInitialized; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _asyncGeneratorDelegate(inner, awaitWrap) { | ||
2 | - var iter = {}, | ||
3 | - waiting = false; | ||
4 | - | ||
5 | - function pump(key, value) { | ||
6 | - waiting = true; | ||
7 | - value = new Promise(function (resolve) { | ||
8 | - resolve(inner[key](value)); | ||
9 | - }); | ||
10 | - return { | ||
11 | - done: false, | ||
12 | - value: awaitWrap(value) | ||
13 | - }; | ||
14 | - } | ||
15 | - | ||
16 | - ; | ||
17 | - | ||
18 | - if (typeof Symbol === "function" && Symbol.iterator) { | ||
19 | - iter[Symbol.iterator] = function () { | ||
20 | - return this; | ||
21 | - }; | ||
22 | - } | ||
23 | - | ||
24 | - iter.next = function (value) { | ||
25 | - if (waiting) { | ||
26 | - waiting = false; | ||
27 | - return value; | ||
28 | - } | ||
29 | - | ||
30 | - return pump("next", value); | ||
31 | - }; | ||
32 | - | ||
33 | - if (typeof inner["throw"] === "function") { | ||
34 | - iter["throw"] = function (value) { | ||
35 | - if (waiting) { | ||
36 | - waiting = false; | ||
37 | - throw value; | ||
38 | - } | ||
39 | - | ||
40 | - return pump("throw", value); | ||
41 | - }; | ||
42 | - } | ||
43 | - | ||
44 | - if (typeof inner["return"] === "function") { | ||
45 | - iter["return"] = function (value) { | ||
46 | - if (waiting) { | ||
47 | - waiting = false; | ||
48 | - return value; | ||
49 | - } | ||
50 | - | ||
51 | - return pump("return", value); | ||
52 | - }; | ||
53 | - } | ||
54 | - | ||
55 | - return iter; | ||
56 | -} | ||
57 | - | ||
58 | -module.exports = _asyncGeneratorDelegate; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _asyncIterator(iterable) { | ||
2 | - var method; | ||
3 | - | ||
4 | - if (typeof Symbol !== "undefined") { | ||
5 | - if (Symbol.asyncIterator) { | ||
6 | - method = iterable[Symbol.asyncIterator]; | ||
7 | - if (method != null) return method.call(iterable); | ||
8 | - } | ||
9 | - | ||
10 | - if (Symbol.iterator) { | ||
11 | - method = iterable[Symbol.iterator]; | ||
12 | - if (method != null) return method.call(iterable); | ||
13 | - } | ||
14 | - } | ||
15 | - | ||
16 | - throw new TypeError("Object is not async iterable"); | ||
17 | -} | ||
18 | - | ||
19 | -module.exports = _asyncIterator; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
2 | - try { | ||
3 | - var info = gen[key](arg); | ||
4 | - var value = info.value; | ||
5 | - } catch (error) { | ||
6 | - reject(error); | ||
7 | - return; | ||
8 | - } | ||
9 | - | ||
10 | - if (info.done) { | ||
11 | - resolve(value); | ||
12 | - } else { | ||
13 | - Promise.resolve(value).then(_next, _throw); | ||
14 | - } | ||
15 | -} | ||
16 | - | ||
17 | -function _asyncToGenerator(fn) { | ||
18 | - return function () { | ||
19 | - var self = this, | ||
20 | - args = arguments; | ||
21 | - return new Promise(function (resolve, reject) { | ||
22 | - var gen = fn.apply(self, args); | ||
23 | - | ||
24 | - function _next(value) { | ||
25 | - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
26 | - } | ||
27 | - | ||
28 | - function _throw(err) { | ||
29 | - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
30 | - } | ||
31 | - | ||
32 | - _next(undefined); | ||
33 | - }); | ||
34 | - }; | ||
35 | -} | ||
36 | - | ||
37 | -module.exports = _asyncToGenerator; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classPrivateFieldDestructureSet(receiver, privateMap) { | ||
2 | - if (!privateMap.has(receiver)) { | ||
3 | - throw new TypeError("attempted to set private field on non-instance"); | ||
4 | - } | ||
5 | - | ||
6 | - var descriptor = privateMap.get(receiver); | ||
7 | - | ||
8 | - if (descriptor.set) { | ||
9 | - if (!("__destrObj" in descriptor)) { | ||
10 | - descriptor.__destrObj = { | ||
11 | - set value(v) { | ||
12 | - descriptor.set.call(receiver, v); | ||
13 | - } | ||
14 | - | ||
15 | - }; | ||
16 | - } | ||
17 | - | ||
18 | - return descriptor.__destrObj; | ||
19 | - } else { | ||
20 | - if (!descriptor.writable) { | ||
21 | - throw new TypeError("attempted to set read only private field"); | ||
22 | - } | ||
23 | - | ||
24 | - return descriptor; | ||
25 | - } | ||
26 | -} | ||
27 | - | ||
28 | -module.exports = _classPrivateFieldDestructureSet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classPrivateFieldGet(receiver, privateMap) { | ||
2 | - var descriptor = privateMap.get(receiver); | ||
3 | - | ||
4 | - if (!descriptor) { | ||
5 | - throw new TypeError("attempted to get private field on non-instance"); | ||
6 | - } | ||
7 | - | ||
8 | - if (descriptor.get) { | ||
9 | - return descriptor.get.call(receiver); | ||
10 | - } | ||
11 | - | ||
12 | - return descriptor.value; | ||
13 | -} | ||
14 | - | ||
15 | -module.exports = _classPrivateFieldGet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classPrivateFieldBase(receiver, privateKey) { | ||
2 | - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
3 | - throw new TypeError("attempted to use private field on non-instance"); | ||
4 | - } | ||
5 | - | ||
6 | - return receiver; | ||
7 | -} | ||
8 | - | ||
9 | -module.exports = _classPrivateFieldBase; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classPrivateFieldSet(receiver, privateMap, value) { | ||
2 | - var descriptor = privateMap.get(receiver); | ||
3 | - | ||
4 | - if (!descriptor) { | ||
5 | - throw new TypeError("attempted to set private field on non-instance"); | ||
6 | - } | ||
7 | - | ||
8 | - if (descriptor.set) { | ||
9 | - descriptor.set.call(receiver, value); | ||
10 | - } else { | ||
11 | - if (!descriptor.writable) { | ||
12 | - throw new TypeError("attempted to set read only private field"); | ||
13 | - } | ||
14 | - | ||
15 | - descriptor.value = value; | ||
16 | - } | ||
17 | - | ||
18 | - return value; | ||
19 | -} | ||
20 | - | ||
21 | -module.exports = _classPrivateFieldSet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classPrivateMethodGet(receiver, privateSet, fn) { | ||
2 | - if (!privateSet.has(receiver)) { | ||
3 | - throw new TypeError("attempted to get private field on non-instance"); | ||
4 | - } | ||
5 | - | ||
6 | - return fn; | ||
7 | -} | ||
8 | - | ||
9 | -module.exports = _classPrivateMethodGet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - if (descriptor.get) { | ||
7 | - return descriptor.get.call(receiver); | ||
8 | - } | ||
9 | - | ||
10 | - return descriptor.value; | ||
11 | -} | ||
12 | - | ||
13 | -module.exports = _classStaticPrivateFieldSpecGet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - if (descriptor.set) { | ||
7 | - descriptor.set.call(receiver, value); | ||
8 | - } else { | ||
9 | - if (!descriptor.writable) { | ||
10 | - throw new TypeError("attempted to set read only private field"); | ||
11 | - } | ||
12 | - | ||
13 | - descriptor.value = value; | ||
14 | - } | ||
15 | - | ||
16 | - return value; | ||
17 | -} | ||
18 | - | ||
19 | -module.exports = _classStaticPrivateFieldSpecSet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _classStaticPrivateMethodGet(receiver, classConstructor, method) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - return method; | ||
7 | -} | ||
8 | - | ||
9 | -module.exports = _classStaticPrivateMethodGet; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -var setPrototypeOf = require("./setPrototypeOf"); | ||
2 | - | ||
3 | -var isNativeReflectConstruct = require("./isNativeReflectConstruct"); | ||
4 | - | ||
5 | -function _construct(Parent, args, Class) { | ||
6 | - if (isNativeReflectConstruct()) { | ||
7 | - module.exports = _construct = Reflect.construct; | ||
8 | - } else { | ||
9 | - module.exports = _construct = function _construct(Parent, args, Class) { | ||
10 | - var a = [null]; | ||
11 | - a.push.apply(a, args); | ||
12 | - var Constructor = Function.bind.apply(Parent, a); | ||
13 | - var instance = new Constructor(); | ||
14 | - if (Class) setPrototypeOf(instance, Class.prototype); | ||
15 | - return instance; | ||
16 | - }; | ||
17 | - } | ||
18 | - | ||
19 | - return _construct.apply(null, arguments); | ||
20 | -} | ||
21 | - | ||
22 | -module.exports = _construct; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _defineProperties(target, props) { | ||
2 | - for (var i = 0; i < props.length; i++) { | ||
3 | - var descriptor = props[i]; | ||
4 | - descriptor.enumerable = descriptor.enumerable || false; | ||
5 | - descriptor.configurable = true; | ||
6 | - if ("value" in descriptor) descriptor.writable = true; | ||
7 | - Object.defineProperty(target, descriptor.key, descriptor); | ||
8 | - } | ||
9 | -} | ||
10 | - | ||
11 | -function _createClass(Constructor, protoProps, staticProps) { | ||
12 | - if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
13 | - if (staticProps) _defineProperties(Constructor, staticProps); | ||
14 | - return Constructor; | ||
15 | -} | ||
16 | - | ||
17 | -module.exports = _createClass; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -var unsupportedIterableToArray = require("./unsupportedIterableToArray"); | ||
2 | - | ||
3 | -function _createForOfIteratorHelper(o) { | ||
4 | - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { | ||
5 | - if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) { | ||
6 | - var i = 0; | ||
7 | - | ||
8 | - var F = function F() {}; | ||
9 | - | ||
10 | - return { | ||
11 | - s: F, | ||
12 | - n: function n() { | ||
13 | - if (i >= o.length) return { | ||
14 | - done: true | ||
15 | - }; | ||
16 | - return { | ||
17 | - done: false, | ||
18 | - value: o[i++] | ||
19 | - }; | ||
20 | - }, | ||
21 | - e: function e(_e) { | ||
22 | - throw _e; | ||
23 | - }, | ||
24 | - f: F | ||
25 | - }; | ||
26 | - } | ||
27 | - | ||
28 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
29 | - } | ||
30 | - | ||
31 | - var it, | ||
32 | - normalCompletion = true, | ||
33 | - didErr = false, | ||
34 | - err; | ||
35 | - return { | ||
36 | - s: function s() { | ||
37 | - it = o[Symbol.iterator](); | ||
38 | - }, | ||
39 | - n: function n() { | ||
40 | - var step = it.next(); | ||
41 | - normalCompletion = step.done; | ||
42 | - return step; | ||
43 | - }, | ||
44 | - e: function e(_e2) { | ||
45 | - didErr = true; | ||
46 | - err = _e2; | ||
47 | - }, | ||
48 | - f: function f() { | ||
49 | - try { | ||
50 | - if (!normalCompletion && it["return"] != null) it["return"](); | ||
51 | - } finally { | ||
52 | - if (didErr) throw err; | ||
53 | - } | ||
54 | - } | ||
55 | - }; | ||
56 | -} | ||
57 | - | ||
58 | -module.exports = _createForOfIteratorHelper; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -var unsupportedIterableToArray = require("./unsupportedIterableToArray"); | ||
2 | - | ||
3 | -function _createForOfIteratorHelperLoose(o) { | ||
4 | - var i = 0; | ||
5 | - | ||
6 | - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { | ||
7 | - if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) return function () { | ||
8 | - if (i >= o.length) return { | ||
9 | - done: true | ||
10 | - }; | ||
11 | - return { | ||
12 | - done: false, | ||
13 | - value: o[i++] | ||
14 | - }; | ||
15 | - }; | ||
16 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
17 | - } | ||
18 | - | ||
19 | - i = o[Symbol.iterator](); | ||
20 | - return i.next.bind(i); | ||
21 | -} | ||
22 | - | ||
23 | -module.exports = _createForOfIteratorHelperLoose; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -var getPrototypeOf = require("./getPrototypeOf"); | ||
2 | - | ||
3 | -var isNativeReflectConstruct = require("./isNativeReflectConstruct"); | ||
4 | - | ||
5 | -var possibleConstructorReturn = require("./possibleConstructorReturn"); | ||
6 | - | ||
7 | -function _createSuper(Derived) { | ||
8 | - var hasNativeReflectConstruct = isNativeReflectConstruct(); | ||
9 | - return function () { | ||
10 | - var Super = getPrototypeOf(Derived), | ||
11 | - result; | ||
12 | - | ||
13 | - if (hasNativeReflectConstruct) { | ||
14 | - var NewTarget = getPrototypeOf(this).constructor; | ||
15 | - result = Reflect.construct(Super, arguments, NewTarget); | ||
16 | - } else { | ||
17 | - result = Super.apply(this, arguments); | ||
18 | - } | ||
19 | - | ||
20 | - return possibleConstructorReturn(this, result); | ||
21 | - }; | ||
22 | -} | ||
23 | - | ||
24 | -module.exports = _createSuper; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
1 | -function _defaults(obj, defaults) { | ||
2 | - var keys = Object.getOwnPropertyNames(defaults); | ||
3 | - | ||
4 | - for (var i = 0; i < keys.length; i++) { | ||
5 | - var key = keys[i]; | ||
6 | - var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
7 | - | ||
8 | - if (value && value.configurable && obj[key] === undefined) { | ||
9 | - Object.defineProperty(obj, key, value); | ||
10 | - } | ||
11 | - } | ||
12 | - | ||
13 | - return obj; | ||
14 | -} | ||
15 | - | ||
16 | -module.exports = _defaults; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _defineEnumerableProperties(obj, descs) { | ||
2 | - for (var key in descs) { | ||
3 | - var desc = descs[key]; | ||
4 | - desc.configurable = desc.enumerable = true; | ||
5 | - if ("value" in desc) desc.writable = true; | ||
6 | - Object.defineProperty(obj, key, desc); | ||
7 | - } | ||
8 | - | ||
9 | - if (Object.getOwnPropertySymbols) { | ||
10 | - var objectSymbols = Object.getOwnPropertySymbols(descs); | ||
11 | - | ||
12 | - for (var i = 0; i < objectSymbols.length; i++) { | ||
13 | - var sym = objectSymbols[i]; | ||
14 | - var desc = descs[sym]; | ||
15 | - desc.configurable = desc.enumerable = true; | ||
16 | - if ("value" in desc) desc.writable = true; | ||
17 | - Object.defineProperty(obj, sym, desc); | ||
18 | - } | ||
19 | - } | ||
20 | - | ||
21 | - return obj; | ||
22 | -} | ||
23 | - | ||
24 | -module.exports = _defineEnumerableProperties; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _defineProperty(obj, key, value) { | ||
2 | - if (key in obj) { | ||
3 | - Object.defineProperty(obj, key, { | ||
4 | - value: value, | ||
5 | - enumerable: true, | ||
6 | - configurable: true, | ||
7 | - writable: true | ||
8 | - }); | ||
9 | - } else { | ||
10 | - obj[key] = value; | ||
11 | - } | ||
12 | - | ||
13 | - return obj; | ||
14 | -} | ||
15 | - | ||
16 | -module.exports = _defineProperty; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import AwaitValue from "./AwaitValue"; | ||
2 | -export default function AsyncGenerator(gen) { | ||
3 | - var front, back; | ||
4 | - | ||
5 | - function send(key, arg) { | ||
6 | - return new Promise(function (resolve, reject) { | ||
7 | - var request = { | ||
8 | - key: key, | ||
9 | - arg: arg, | ||
10 | - resolve: resolve, | ||
11 | - reject: reject, | ||
12 | - next: null | ||
13 | - }; | ||
14 | - | ||
15 | - if (back) { | ||
16 | - back = back.next = request; | ||
17 | - } else { | ||
18 | - front = back = request; | ||
19 | - resume(key, arg); | ||
20 | - } | ||
21 | - }); | ||
22 | - } | ||
23 | - | ||
24 | - function resume(key, arg) { | ||
25 | - try { | ||
26 | - var result = gen[key](arg); | ||
27 | - var value = result.value; | ||
28 | - var wrappedAwait = value instanceof AwaitValue; | ||
29 | - Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { | ||
30 | - if (wrappedAwait) { | ||
31 | - resume(key === "return" ? "return" : "next", arg); | ||
32 | - return; | ||
33 | - } | ||
34 | - | ||
35 | - settle(result.done ? "return" : "normal", arg); | ||
36 | - }, function (err) { | ||
37 | - resume("throw", err); | ||
38 | - }); | ||
39 | - } catch (err) { | ||
40 | - settle("throw", err); | ||
41 | - } | ||
42 | - } | ||
43 | - | ||
44 | - function settle(type, value) { | ||
45 | - switch (type) { | ||
46 | - case "return": | ||
47 | - front.resolve({ | ||
48 | - value: value, | ||
49 | - done: true | ||
50 | - }); | ||
51 | - break; | ||
52 | - | ||
53 | - case "throw": | ||
54 | - front.reject(value); | ||
55 | - break; | ||
56 | - | ||
57 | - default: | ||
58 | - front.resolve({ | ||
59 | - value: value, | ||
60 | - done: false | ||
61 | - }); | ||
62 | - break; | ||
63 | - } | ||
64 | - | ||
65 | - front = front.next; | ||
66 | - | ||
67 | - if (front) { | ||
68 | - resume(front.key, front.arg); | ||
69 | - } else { | ||
70 | - back = null; | ||
71 | - } | ||
72 | - } | ||
73 | - | ||
74 | - this._invoke = send; | ||
75 | - | ||
76 | - if (typeof gen["return"] !== "function") { | ||
77 | - this["return"] = undefined; | ||
78 | - } | ||
79 | -} | ||
80 | - | ||
81 | -if (typeof Symbol === "function" && Symbol.asyncIterator) { | ||
82 | - AsyncGenerator.prototype[Symbol.asyncIterator] = function () { | ||
83 | - return this; | ||
84 | - }; | ||
85 | -} | ||
86 | - | ||
87 | -AsyncGenerator.prototype.next = function (arg) { | ||
88 | - return this._invoke("next", arg); | ||
89 | -}; | ||
90 | - | ||
91 | -AsyncGenerator.prototype["throw"] = function (arg) { | ||
92 | - return this._invoke("throw", arg); | ||
93 | -}; | ||
94 | - | ||
95 | -AsyncGenerator.prototype["return"] = function (arg) { | ||
96 | - return this._invoke("return", arg); | ||
97 | -}; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
2 | - var desc = {}; | ||
3 | - Object.keys(descriptor).forEach(function (key) { | ||
4 | - desc[key] = descriptor[key]; | ||
5 | - }); | ||
6 | - desc.enumerable = !!desc.enumerable; | ||
7 | - desc.configurable = !!desc.configurable; | ||
8 | - | ||
9 | - if ('value' in desc || desc.initializer) { | ||
10 | - desc.writable = true; | ||
11 | - } | ||
12 | - | ||
13 | - desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
14 | - return decorator(target, property, desc) || desc; | ||
15 | - }, desc); | ||
16 | - | ||
17 | - if (context && desc.initializer !== void 0) { | ||
18 | - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
19 | - desc.initializer = undefined; | ||
20 | - } | ||
21 | - | ||
22 | - if (desc.initializer === void 0) { | ||
23 | - Object.defineProperty(target, property, desc); | ||
24 | - desc = null; | ||
25 | - } | ||
26 | - | ||
27 | - return desc; | ||
28 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _asyncGeneratorDelegate(inner, awaitWrap) { | ||
2 | - var iter = {}, | ||
3 | - waiting = false; | ||
4 | - | ||
5 | - function pump(key, value) { | ||
6 | - waiting = true; | ||
7 | - value = new Promise(function (resolve) { | ||
8 | - resolve(inner[key](value)); | ||
9 | - }); | ||
10 | - return { | ||
11 | - done: false, | ||
12 | - value: awaitWrap(value) | ||
13 | - }; | ||
14 | - } | ||
15 | - | ||
16 | - ; | ||
17 | - | ||
18 | - if (typeof Symbol === "function" && Symbol.iterator) { | ||
19 | - iter[Symbol.iterator] = function () { | ||
20 | - return this; | ||
21 | - }; | ||
22 | - } | ||
23 | - | ||
24 | - iter.next = function (value) { | ||
25 | - if (waiting) { | ||
26 | - waiting = false; | ||
27 | - return value; | ||
28 | - } | ||
29 | - | ||
30 | - return pump("next", value); | ||
31 | - }; | ||
32 | - | ||
33 | - if (typeof inner["throw"] === "function") { | ||
34 | - iter["throw"] = function (value) { | ||
35 | - if (waiting) { | ||
36 | - waiting = false; | ||
37 | - throw value; | ||
38 | - } | ||
39 | - | ||
40 | - return pump("throw", value); | ||
41 | - }; | ||
42 | - } | ||
43 | - | ||
44 | - if (typeof inner["return"] === "function") { | ||
45 | - iter["return"] = function (value) { | ||
46 | - if (waiting) { | ||
47 | - waiting = false; | ||
48 | - return value; | ||
49 | - } | ||
50 | - | ||
51 | - return pump("return", value); | ||
52 | - }; | ||
53 | - } | ||
54 | - | ||
55 | - return iter; | ||
56 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _asyncIterator(iterable) { | ||
2 | - var method; | ||
3 | - | ||
4 | - if (typeof Symbol !== "undefined") { | ||
5 | - if (Symbol.asyncIterator) { | ||
6 | - method = iterable[Symbol.asyncIterator]; | ||
7 | - if (method != null) return method.call(iterable); | ||
8 | - } | ||
9 | - | ||
10 | - if (Symbol.iterator) { | ||
11 | - method = iterable[Symbol.iterator]; | ||
12 | - if (method != null) return method.call(iterable); | ||
13 | - } | ||
14 | - } | ||
15 | - | ||
16 | - throw new TypeError("Object is not async iterable"); | ||
17 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
2 | - try { | ||
3 | - var info = gen[key](arg); | ||
4 | - var value = info.value; | ||
5 | - } catch (error) { | ||
6 | - reject(error); | ||
7 | - return; | ||
8 | - } | ||
9 | - | ||
10 | - if (info.done) { | ||
11 | - resolve(value); | ||
12 | - } else { | ||
13 | - Promise.resolve(value).then(_next, _throw); | ||
14 | - } | ||
15 | -} | ||
16 | - | ||
17 | -export default function _asyncToGenerator(fn) { | ||
18 | - return function () { | ||
19 | - var self = this, | ||
20 | - args = arguments; | ||
21 | - return new Promise(function (resolve, reject) { | ||
22 | - var gen = fn.apply(self, args); | ||
23 | - | ||
24 | - function _next(value) { | ||
25 | - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
26 | - } | ||
27 | - | ||
28 | - function _throw(err) { | ||
29 | - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
30 | - } | ||
31 | - | ||
32 | - _next(undefined); | ||
33 | - }); | ||
34 | - }; | ||
35 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classPrivateFieldDestructureSet(receiver, privateMap) { | ||
2 | - if (!privateMap.has(receiver)) { | ||
3 | - throw new TypeError("attempted to set private field on non-instance"); | ||
4 | - } | ||
5 | - | ||
6 | - var descriptor = privateMap.get(receiver); | ||
7 | - | ||
8 | - if (descriptor.set) { | ||
9 | - if (!("__destrObj" in descriptor)) { | ||
10 | - descriptor.__destrObj = { | ||
11 | - set value(v) { | ||
12 | - descriptor.set.call(receiver, v); | ||
13 | - } | ||
14 | - | ||
15 | - }; | ||
16 | - } | ||
17 | - | ||
18 | - return descriptor.__destrObj; | ||
19 | - } else { | ||
20 | - if (!descriptor.writable) { | ||
21 | - throw new TypeError("attempted to set read only private field"); | ||
22 | - } | ||
23 | - | ||
24 | - return descriptor; | ||
25 | - } | ||
26 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classPrivateFieldGet(receiver, privateMap) { | ||
2 | - var descriptor = privateMap.get(receiver); | ||
3 | - | ||
4 | - if (!descriptor) { | ||
5 | - throw new TypeError("attempted to get private field on non-instance"); | ||
6 | - } | ||
7 | - | ||
8 | - if (descriptor.get) { | ||
9 | - return descriptor.get.call(receiver); | ||
10 | - } | ||
11 | - | ||
12 | - return descriptor.value; | ||
13 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classPrivateFieldBase(receiver, privateKey) { | ||
2 | - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
3 | - throw new TypeError("attempted to use private field on non-instance"); | ||
4 | - } | ||
5 | - | ||
6 | - return receiver; | ||
7 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classPrivateFieldSet(receiver, privateMap, value) { | ||
2 | - var descriptor = privateMap.get(receiver); | ||
3 | - | ||
4 | - if (!descriptor) { | ||
5 | - throw new TypeError("attempted to set private field on non-instance"); | ||
6 | - } | ||
7 | - | ||
8 | - if (descriptor.set) { | ||
9 | - descriptor.set.call(receiver, value); | ||
10 | - } else { | ||
11 | - if (!descriptor.writable) { | ||
12 | - throw new TypeError("attempted to set read only private field"); | ||
13 | - } | ||
14 | - | ||
15 | - descriptor.value = value; | ||
16 | - } | ||
17 | - | ||
18 | - return value; | ||
19 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - if (descriptor.get) { | ||
7 | - return descriptor.get.call(receiver); | ||
8 | - } | ||
9 | - | ||
10 | - return descriptor.value; | ||
11 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - if (descriptor.set) { | ||
7 | - descriptor.set.call(receiver, value); | ||
8 | - } else { | ||
9 | - if (!descriptor.writable) { | ||
10 | - throw new TypeError("attempted to set read only private field"); | ||
11 | - } | ||
12 | - | ||
13 | - descriptor.value = value; | ||
14 | - } | ||
15 | - | ||
16 | - return value; | ||
17 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { | ||
2 | - if (receiver !== classConstructor) { | ||
3 | - throw new TypeError("Private static access of wrong provenance"); | ||
4 | - } | ||
5 | - | ||
6 | - return method; | ||
7 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import setPrototypeOf from "./setPrototypeOf"; | ||
2 | -import isNativeReflectConstruct from "./isNativeReflectConstruct"; | ||
3 | -export default function _construct(Parent, args, Class) { | ||
4 | - if (isNativeReflectConstruct()) { | ||
5 | - _construct = Reflect.construct; | ||
6 | - } else { | ||
7 | - _construct = function _construct(Parent, args, Class) { | ||
8 | - var a = [null]; | ||
9 | - a.push.apply(a, args); | ||
10 | - var Constructor = Function.bind.apply(Parent, a); | ||
11 | - var instance = new Constructor(); | ||
12 | - if (Class) setPrototypeOf(instance, Class.prototype); | ||
13 | - return instance; | ||
14 | - }; | ||
15 | - } | ||
16 | - | ||
17 | - return _construct.apply(null, arguments); | ||
18 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -function _defineProperties(target, props) { | ||
2 | - for (var i = 0; i < props.length; i++) { | ||
3 | - var descriptor = props[i]; | ||
4 | - descriptor.enumerable = descriptor.enumerable || false; | ||
5 | - descriptor.configurable = true; | ||
6 | - if ("value" in descriptor) descriptor.writable = true; | ||
7 | - Object.defineProperty(target, descriptor.key, descriptor); | ||
8 | - } | ||
9 | -} | ||
10 | - | ||
11 | -export default function _createClass(Constructor, protoProps, staticProps) { | ||
12 | - if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
13 | - if (staticProps) _defineProperties(Constructor, staticProps); | ||
14 | - return Constructor; | ||
15 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import unsupportedIterableToArray from "./unsupportedIterableToArray"; | ||
2 | -export default function _createForOfIteratorHelper(o) { | ||
3 | - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { | ||
4 | - if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) { | ||
5 | - var i = 0; | ||
6 | - | ||
7 | - var F = function F() {}; | ||
8 | - | ||
9 | - return { | ||
10 | - s: F, | ||
11 | - n: function n() { | ||
12 | - if (i >= o.length) return { | ||
13 | - done: true | ||
14 | - }; | ||
15 | - return { | ||
16 | - done: false, | ||
17 | - value: o[i++] | ||
18 | - }; | ||
19 | - }, | ||
20 | - e: function e(_e) { | ||
21 | - throw _e; | ||
22 | - }, | ||
23 | - f: F | ||
24 | - }; | ||
25 | - } | ||
26 | - | ||
27 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
28 | - } | ||
29 | - | ||
30 | - var it, | ||
31 | - normalCompletion = true, | ||
32 | - didErr = false, | ||
33 | - err; | ||
34 | - return { | ||
35 | - s: function s() { | ||
36 | - it = o[Symbol.iterator](); | ||
37 | - }, | ||
38 | - n: function n() { | ||
39 | - var step = it.next(); | ||
40 | - normalCompletion = step.done; | ||
41 | - return step; | ||
42 | - }, | ||
43 | - e: function e(_e2) { | ||
44 | - didErr = true; | ||
45 | - err = _e2; | ||
46 | - }, | ||
47 | - f: function f() { | ||
48 | - try { | ||
49 | - if (!normalCompletion && it["return"] != null) it["return"](); | ||
50 | - } finally { | ||
51 | - if (didErr) throw err; | ||
52 | - } | ||
53 | - } | ||
54 | - }; | ||
55 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import unsupportedIterableToArray from "./unsupportedIterableToArray"; | ||
2 | -export default function _createForOfIteratorHelperLoose(o) { | ||
3 | - var i = 0; | ||
4 | - | ||
5 | - if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { | ||
6 | - if (Array.isArray(o) || (o = unsupportedIterableToArray(o))) return function () { | ||
7 | - if (i >= o.length) return { | ||
8 | - done: true | ||
9 | - }; | ||
10 | - return { | ||
11 | - done: false, | ||
12 | - value: o[i++] | ||
13 | - }; | ||
14 | - }; | ||
15 | - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
16 | - } | ||
17 | - | ||
18 | - i = o[Symbol.iterator](); | ||
19 | - return i.next.bind(i); | ||
20 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import getPrototypeOf from "./getPrototypeOf"; | ||
2 | -import isNativeReflectConstruct from "./isNativeReflectConstruct"; | ||
3 | -import possibleConstructorReturn from "./possibleConstructorReturn"; | ||
4 | -export default function _createSuper(Derived) { | ||
5 | - var hasNativeReflectConstruct = isNativeReflectConstruct(); | ||
6 | - return function () { | ||
7 | - var Super = getPrototypeOf(Derived), | ||
8 | - result; | ||
9 | - | ||
10 | - if (hasNativeReflectConstruct) { | ||
11 | - var NewTarget = getPrototypeOf(this).constructor; | ||
12 | - result = Reflect.construct(Super, arguments, NewTarget); | ||
13 | - } else { | ||
14 | - result = Super.apply(this, arguments); | ||
15 | - } | ||
16 | - | ||
17 | - return possibleConstructorReturn(this, result); | ||
18 | - }; | ||
19 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
1 | -export default function _defaults(obj, defaults) { | ||
2 | - var keys = Object.getOwnPropertyNames(defaults); | ||
3 | - | ||
4 | - for (var i = 0; i < keys.length; i++) { | ||
5 | - var key = keys[i]; | ||
6 | - var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
7 | - | ||
8 | - if (value && value.configurable && obj[key] === undefined) { | ||
9 | - Object.defineProperty(obj, key, value); | ||
10 | - } | ||
11 | - } | ||
12 | - | ||
13 | - return obj; | ||
14 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _defineEnumerableProperties(obj, descs) { | ||
2 | - for (var key in descs) { | ||
3 | - var desc = descs[key]; | ||
4 | - desc.configurable = desc.enumerable = true; | ||
5 | - if ("value" in desc) desc.writable = true; | ||
6 | - Object.defineProperty(obj, key, desc); | ||
7 | - } | ||
8 | - | ||
9 | - if (Object.getOwnPropertySymbols) { | ||
10 | - var objectSymbols = Object.getOwnPropertySymbols(descs); | ||
11 | - | ||
12 | - for (var i = 0; i < objectSymbols.length; i++) { | ||
13 | - var sym = objectSymbols[i]; | ||
14 | - var desc = descs[sym]; | ||
15 | - desc.configurable = desc.enumerable = true; | ||
16 | - if ("value" in desc) desc.writable = true; | ||
17 | - Object.defineProperty(obj, sym, desc); | ||
18 | - } | ||
19 | - } | ||
20 | - | ||
21 | - return obj; | ||
22 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _defineProperty(obj, key, value) { | ||
2 | - if (key in obj) { | ||
3 | - Object.defineProperty(obj, key, { | ||
4 | - value: value, | ||
5 | - enumerable: true, | ||
6 | - configurable: true, | ||
7 | - writable: true | ||
8 | - }); | ||
9 | - } else { | ||
10 | - obj[key] = value; | ||
11 | - } | ||
12 | - | ||
13 | - return obj; | ||
14 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _extends() { | ||
2 | - _extends = Object.assign || function (target) { | ||
3 | - for (var i = 1; i < arguments.length; i++) { | ||
4 | - var source = arguments[i]; | ||
5 | - | ||
6 | - for (var key in source) { | ||
7 | - if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
8 | - target[key] = source[key]; | ||
9 | - } | ||
10 | - } | ||
11 | - } | ||
12 | - | ||
13 | - return target; | ||
14 | - }; | ||
15 | - | ||
16 | - return _extends.apply(this, arguments); | ||
17 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import superPropBase from "./superPropBase"; | ||
2 | -export default function _get(target, property, receiver) { | ||
3 | - if (typeof Reflect !== "undefined" && Reflect.get) { | ||
4 | - _get = Reflect.get; | ||
5 | - } else { | ||
6 | - _get = function _get(target, property, receiver) { | ||
7 | - var base = superPropBase(target, property); | ||
8 | - if (!base) return; | ||
9 | - var desc = Object.getOwnPropertyDescriptor(base, property); | ||
10 | - | ||
11 | - if (desc.get) { | ||
12 | - return desc.get.call(receiver); | ||
13 | - } | ||
14 | - | ||
15 | - return desc.value; | ||
16 | - }; | ||
17 | - } | ||
18 | - | ||
19 | - return _get(target, property, receiver || target); | ||
20 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _getPrototypeOf(o) { | ||
2 | - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { | ||
3 | - return o.__proto__ || Object.getPrototypeOf(o); | ||
4 | - }; | ||
5 | - return _getPrototypeOf(o); | ||
6 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import setPrototypeOf from "./setPrototypeOf"; | ||
2 | -export default function _inherits(subClass, superClass) { | ||
3 | - if (typeof superClass !== "function" && superClass !== null) { | ||
4 | - throw new TypeError("Super expression must either be null or a function"); | ||
5 | - } | ||
6 | - | ||
7 | - subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
8 | - constructor: { | ||
9 | - value: subClass, | ||
10 | - writable: true, | ||
11 | - configurable: true | ||
12 | - } | ||
13 | - }); | ||
14 | - if (superClass) setPrototypeOf(subClass, superClass); | ||
15 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _initializerDefineProperty(target, property, descriptor, context) { | ||
2 | - if (!descriptor) return; | ||
3 | - Object.defineProperty(target, property, { | ||
4 | - enumerable: descriptor.enumerable, | ||
5 | - configurable: descriptor.configurable, | ||
6 | - writable: descriptor.writable, | ||
7 | - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 | ||
8 | - }); | ||
9 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _initializerWarningHelper(descriptor, context) { | ||
2 | - throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); | ||
3 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _instanceof(left, right) { | ||
2 | - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { | ||
3 | - return !!right[Symbol.hasInstance](left); | ||
4 | - } else { | ||
5 | - return left instanceof right; | ||
6 | - } | ||
7 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import _typeof from "../../helpers/esm/typeof"; | ||
2 | - | ||
3 | -function _getRequireWildcardCache() { | ||
4 | - if (typeof WeakMap !== "function") return null; | ||
5 | - var cache = new WeakMap(); | ||
6 | - | ||
7 | - _getRequireWildcardCache = function _getRequireWildcardCache() { | ||
8 | - return cache; | ||
9 | - }; | ||
10 | - | ||
11 | - return cache; | ||
12 | -} | ||
13 | - | ||
14 | -export default function _interopRequireWildcard(obj) { | ||
15 | - if (obj && obj.__esModule) { | ||
16 | - return obj; | ||
17 | - } | ||
18 | - | ||
19 | - if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | ||
20 | - return { | ||
21 | - "default": obj | ||
22 | - }; | ||
23 | - } | ||
24 | - | ||
25 | - var cache = _getRequireWildcardCache(); | ||
26 | - | ||
27 | - if (cache && cache.has(obj)) { | ||
28 | - return cache.get(obj); | ||
29 | - } | ||
30 | - | ||
31 | - var newObj = {}; | ||
32 | - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; | ||
33 | - | ||
34 | - for (var key in obj) { | ||
35 | - if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
36 | - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; | ||
37 | - | ||
38 | - if (desc && (desc.get || desc.set)) { | ||
39 | - Object.defineProperty(newObj, key, desc); | ||
40 | - } else { | ||
41 | - newObj[key] = obj[key]; | ||
42 | - } | ||
43 | - } | ||
44 | - } | ||
45 | - | ||
46 | - newObj["default"] = obj; | ||
47 | - | ||
48 | - if (cache) { | ||
49 | - cache.set(obj, newObj); | ||
50 | - } | ||
51 | - | ||
52 | - return newObj; | ||
53 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _isNativeReflectConstruct() { | ||
2 | - if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
3 | - if (Reflect.construct.sham) return false; | ||
4 | - if (typeof Proxy === "function") return true; | ||
5 | - | ||
6 | - try { | ||
7 | - Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
8 | - return true; | ||
9 | - } catch (e) { | ||
10 | - return false; | ||
11 | - } | ||
12 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _iterableToArrayLimit(arr, i) { | ||
2 | - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; | ||
3 | - var _arr = []; | ||
4 | - var _n = true; | ||
5 | - var _d = false; | ||
6 | - var _e = undefined; | ||
7 | - | ||
8 | - try { | ||
9 | - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { | ||
10 | - _arr.push(_s.value); | ||
11 | - | ||
12 | - if (i && _arr.length === i) break; | ||
13 | - } | ||
14 | - } catch (err) { | ||
15 | - _d = true; | ||
16 | - _e = err; | ||
17 | - } finally { | ||
18 | - try { | ||
19 | - if (!_n && _i["return"] != null) _i["return"](); | ||
20 | - } finally { | ||
21 | - if (_d) throw _e; | ||
22 | - } | ||
23 | - } | ||
24 | - | ||
25 | - return _arr; | ||
26 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _iterableToArrayLimitLoose(arr, i) { | ||
2 | - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; | ||
3 | - var _arr = []; | ||
4 | - | ||
5 | - for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) { | ||
6 | - _arr.push(_step.value); | ||
7 | - | ||
8 | - if (i && _arr.length === i) break; | ||
9 | - } | ||
10 | - | ||
11 | - return _arr; | ||
12 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -var REACT_ELEMENT_TYPE; | ||
2 | -export default function _createRawReactElement(type, props, key, children) { | ||
3 | - if (!REACT_ELEMENT_TYPE) { | ||
4 | - REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; | ||
5 | - } | ||
6 | - | ||
7 | - var defaultProps = type && type.defaultProps; | ||
8 | - var childrenLength = arguments.length - 3; | ||
9 | - | ||
10 | - if (!props && childrenLength !== 0) { | ||
11 | - props = { | ||
12 | - children: void 0 | ||
13 | - }; | ||
14 | - } | ||
15 | - | ||
16 | - if (childrenLength === 1) { | ||
17 | - props.children = children; | ||
18 | - } else if (childrenLength > 1) { | ||
19 | - var childArray = new Array(childrenLength); | ||
20 | - | ||
21 | - for (var i = 0; i < childrenLength; i++) { | ||
22 | - childArray[i] = arguments[i + 3]; | ||
23 | - } | ||
24 | - | ||
25 | - props.children = childArray; | ||
26 | - } | ||
27 | - | ||
28 | - if (props && defaultProps) { | ||
29 | - for (var propName in defaultProps) { | ||
30 | - if (props[propName] === void 0) { | ||
31 | - props[propName] = defaultProps[propName]; | ||
32 | - } | ||
33 | - } | ||
34 | - } else if (!props) { | ||
35 | - props = defaultProps || {}; | ||
36 | - } | ||
37 | - | ||
38 | - return { | ||
39 | - $$typeof: REACT_ELEMENT_TYPE, | ||
40 | - type: type, | ||
41 | - key: key === undefined ? null : '' + key, | ||
42 | - ref: null, | ||
43 | - props: props, | ||
44 | - _owner: null | ||
45 | - }; | ||
46 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import defineProperty from "./defineProperty"; | ||
2 | -export default function _objectSpread(target) { | ||
3 | - for (var i = 1; i < arguments.length; i++) { | ||
4 | - var source = arguments[i] != null ? Object(arguments[i]) : {}; | ||
5 | - var ownKeys = Object.keys(source); | ||
6 | - | ||
7 | - if (typeof Object.getOwnPropertySymbols === 'function') { | ||
8 | - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
9 | - return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
10 | - })); | ||
11 | - } | ||
12 | - | ||
13 | - ownKeys.forEach(function (key) { | ||
14 | - defineProperty(target, key, source[key]); | ||
15 | - }); | ||
16 | - } | ||
17 | - | ||
18 | - return target; | ||
19 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import defineProperty from "./defineProperty"; | ||
2 | - | ||
3 | -function ownKeys(object, enumerableOnly) { | ||
4 | - var keys = Object.keys(object); | ||
5 | - | ||
6 | - if (Object.getOwnPropertySymbols) { | ||
7 | - var symbols = Object.getOwnPropertySymbols(object); | ||
8 | - if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
9 | - return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
10 | - }); | ||
11 | - keys.push.apply(keys, symbols); | ||
12 | - } | ||
13 | - | ||
14 | - return keys; | ||
15 | -} | ||
16 | - | ||
17 | -export default function _objectSpread2(target) { | ||
18 | - for (var i = 1; i < arguments.length; i++) { | ||
19 | - var source = arguments[i] != null ? arguments[i] : {}; | ||
20 | - | ||
21 | - if (i % 2) { | ||
22 | - ownKeys(Object(source), true).forEach(function (key) { | ||
23 | - defineProperty(target, key, source[key]); | ||
24 | - }); | ||
25 | - } else if (Object.getOwnPropertyDescriptors) { | ||
26 | - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
27 | - } else { | ||
28 | - ownKeys(Object(source)).forEach(function (key) { | ||
29 | - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
30 | - }); | ||
31 | - } | ||
32 | - } | ||
33 | - | ||
34 | - return target; | ||
35 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose"; | ||
2 | -export default function _objectWithoutProperties(source, excluded) { | ||
3 | - if (source == null) return {}; | ||
4 | - var target = objectWithoutPropertiesLoose(source, excluded); | ||
5 | - var key, i; | ||
6 | - | ||
7 | - if (Object.getOwnPropertySymbols) { | ||
8 | - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
9 | - | ||
10 | - for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
11 | - key = sourceSymbolKeys[i]; | ||
12 | - if (excluded.indexOf(key) >= 0) continue; | ||
13 | - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
14 | - target[key] = source[key]; | ||
15 | - } | ||
16 | - } | ||
17 | - | ||
18 | - return target; | ||
19 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -export default function _objectWithoutPropertiesLoose(source, excluded) { | ||
2 | - if (source == null) return {}; | ||
3 | - var target = {}; | ||
4 | - var sourceKeys = Object.keys(source); | ||
5 | - var key, i; | ||
6 | - | ||
7 | - for (i = 0; i < sourceKeys.length; i++) { | ||
8 | - key = sourceKeys[i]; | ||
9 | - if (excluded.indexOf(key) >= 0) continue; | ||
10 | - target[key] = source[key]; | ||
11 | - } | ||
12 | - | ||
13 | - return target; | ||
14 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/DOMUtils.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/PathUtils.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/history/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/history/cjs/history.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/es/DOMUtils.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/es/PathUtils.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/history/esm/history.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/history/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/history/package.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/history/umd/history.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/isarray/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/isarray/build/build.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/isarray/component.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/isarray/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/isarray/package.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/js-tokens/CHANGELOG.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/js-tokens/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/js-tokens/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/js-tokens/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/js-tokens/package.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/loose-envify/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/loose-envify/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/loose-envify/cli.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/loose-envify/custom.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/loose-envify/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/loose-envify/replace.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/object-assign/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/object-assign/license
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/object-assign/readme.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/prop-types/CHANGELOG.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/prop-types/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/prop-types/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/prop-types/factory.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/prop-types/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/prop-types/package.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-is/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/react-is/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-is/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/react-is/package.json
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-router/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-router/Prompt.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/react-router/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-router/Route.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/react-router/Router.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-router/Switch.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/react-router/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/tiny-invariant/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/tiny-warning/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/tiny-warning/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/value-equal/LICENSE
deleted
100644 → 0
This diff is collapsed. Click to expand it.
node_modules/value-equal/README.md
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
node_modules/value-equal/index.js
deleted
100644 → 0
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
package.json
0 → 100644
This diff is collapsed. Click to expand it.
server.js
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment