1 | /*! *****************************************************************************
|
---|
2 | Copyright (c) Microsoft Corporation.
|
---|
3 |
|
---|
4 | Permission to use, copy, modify, and/or distribute this software for any
|
---|
5 | purpose with or without fee is hereby granted.
|
---|
6 |
|
---|
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
---|
8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
---|
9 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
---|
10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
---|
11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
---|
12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
13 | PERFORMANCE OF THIS SOFTWARE.
|
---|
14 | ***************************************************************************** */
|
---|
15 | /* global global, define, System, Reflect, Promise */
|
---|
16 | var __extends;
|
---|
17 | var __assign;
|
---|
18 | var __rest;
|
---|
19 | var __decorate;
|
---|
20 | var __param;
|
---|
21 | var __metadata;
|
---|
22 | var __awaiter;
|
---|
23 | var __generator;
|
---|
24 | var __exportStar;
|
---|
25 | var __values;
|
---|
26 | var __read;
|
---|
27 | var __spread;
|
---|
28 | var __spreadArrays;
|
---|
29 | var __spreadArray;
|
---|
30 | var __await;
|
---|
31 | var __asyncGenerator;
|
---|
32 | var __asyncDelegator;
|
---|
33 | var __asyncValues;
|
---|
34 | var __makeTemplateObject;
|
---|
35 | var __importStar;
|
---|
36 | var __importDefault;
|
---|
37 | var __classPrivateFieldGet;
|
---|
38 | var __classPrivateFieldSet;
|
---|
39 | var __createBinding;
|
---|
40 | (function (factory) {
|
---|
41 | var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
---|
42 | if (typeof define === "function" && define.amd) {
|
---|
43 | define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); });
|
---|
44 | }
|
---|
45 | else if (typeof module === "object" && typeof module.exports === "object") {
|
---|
46 | factory(createExporter(root, createExporter(module.exports)));
|
---|
47 | }
|
---|
48 | else {
|
---|
49 | factory(createExporter(root));
|
---|
50 | }
|
---|
51 | function createExporter(exports, previous) {
|
---|
52 | if (exports !== root) {
|
---|
53 | if (typeof Object.create === "function") {
|
---|
54 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
55 | }
|
---|
56 | else {
|
---|
57 | exports.__esModule = true;
|
---|
58 | }
|
---|
59 | }
|
---|
60 | return function (id, v) { return exports[id] = previous ? previous(id, v) : v; };
|
---|
61 | }
|
---|
62 | })
|
---|
63 | (function (exporter) {
|
---|
64 | var extendStatics = Object.setPrototypeOf ||
|
---|
65 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
---|
66 | function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
---|
67 |
|
---|
68 | __extends = function (d, b) {
|
---|
69 | if (typeof b !== "function" && b !== null)
|
---|
70 | throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
---|
71 | extendStatics(d, b);
|
---|
72 | function __() { this.constructor = d; }
|
---|
73 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
---|
74 | };
|
---|
75 |
|
---|
76 | __assign = Object.assign || function (t) {
|
---|
77 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
---|
78 | s = arguments[i];
|
---|
79 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
---|
80 | }
|
---|
81 | return t;
|
---|
82 | };
|
---|
83 |
|
---|
84 | __rest = function (s, e) {
|
---|
85 | var t = {};
|
---|
86 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
---|
87 | t[p] = s[p];
|
---|
88 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
---|
89 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
---|
90 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
---|
91 | t[p[i]] = s[p[i]];
|
---|
92 | }
|
---|
93 | return t;
|
---|
94 | };
|
---|
95 |
|
---|
96 | __decorate = function (decorators, target, key, desc) {
|
---|
97 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
---|
98 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
---|
99 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
---|
100 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
---|
101 | };
|
---|
102 |
|
---|
103 | __param = function (paramIndex, decorator) {
|
---|
104 | return function (target, key) { decorator(target, key, paramIndex); }
|
---|
105 | };
|
---|
106 |
|
---|
107 | __metadata = function (metadataKey, metadataValue) {
|
---|
108 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
---|
109 | };
|
---|
110 |
|
---|
111 | __awaiter = function (thisArg, _arguments, P, generator) {
|
---|
112 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
---|
113 | return new (P || (P = Promise))(function (resolve, reject) {
|
---|
114 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
---|
115 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
---|
116 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
---|
117 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
---|
118 | });
|
---|
119 | };
|
---|
120 |
|
---|
121 | __generator = function (thisArg, body) {
|
---|
122 | var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
---|
123 | return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
---|
124 | function verb(n) { return function (v) { return step([n, v]); }; }
|
---|
125 | function step(op) {
|
---|
126 | if (f) throw new TypeError("Generator is already executing.");
|
---|
127 | while (_) try {
|
---|
128 | if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
---|
129 | if (y = 0, t) op = [op[0] & 2, t.value];
|
---|
130 | switch (op[0]) {
|
---|
131 | case 0: case 1: t = op; break;
|
---|
132 | case 4: _.label++; return { value: op[1], done: false };
|
---|
133 | case 5: _.label++; y = op[1]; op = [0]; continue;
|
---|
134 | case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
---|
135 | default:
|
---|
136 | if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
---|
137 | if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
---|
138 | if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
---|
139 | if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
---|
140 | if (t[2]) _.ops.pop();
|
---|
141 | _.trys.pop(); continue;
|
---|
142 | }
|
---|
143 | op = body.call(thisArg, _);
|
---|
144 | } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
---|
145 | if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
---|
146 | }
|
---|
147 | };
|
---|
148 |
|
---|
149 | __exportStar = function(m, o) {
|
---|
150 | for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
---|
151 | };
|
---|
152 |
|
---|
153 | __createBinding = Object.create ? (function(o, m, k, k2) {
|
---|
154 | if (k2 === undefined) k2 = k;
|
---|
155 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
---|
156 | }) : (function(o, m, k, k2) {
|
---|
157 | if (k2 === undefined) k2 = k;
|
---|
158 | o[k2] = m[k];
|
---|
159 | });
|
---|
160 |
|
---|
161 | __values = function (o) {
|
---|
162 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
---|
163 | if (m) return m.call(o);
|
---|
164 | if (o && typeof o.length === "number") return {
|
---|
165 | next: function () {
|
---|
166 | if (o && i >= o.length) o = void 0;
|
---|
167 | return { value: o && o[i++], done: !o };
|
---|
168 | }
|
---|
169 | };
|
---|
170 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
---|
171 | };
|
---|
172 |
|
---|
173 | __read = function (o, n) {
|
---|
174 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
---|
175 | if (!m) return o;
|
---|
176 | var i = m.call(o), r, ar = [], e;
|
---|
177 | try {
|
---|
178 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
---|
179 | }
|
---|
180 | catch (error) { e = { error: error }; }
|
---|
181 | finally {
|
---|
182 | try {
|
---|
183 | if (r && !r.done && (m = i["return"])) m.call(i);
|
---|
184 | }
|
---|
185 | finally { if (e) throw e.error; }
|
---|
186 | }
|
---|
187 | return ar;
|
---|
188 | };
|
---|
189 |
|
---|
190 | /** @deprecated */
|
---|
191 | __spread = function () {
|
---|
192 | for (var ar = [], i = 0; i < arguments.length; i++)
|
---|
193 | ar = ar.concat(__read(arguments[i]));
|
---|
194 | return ar;
|
---|
195 | };
|
---|
196 |
|
---|
197 | /** @deprecated */
|
---|
198 | __spreadArrays = function () {
|
---|
199 | for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
---|
200 | for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
---|
201 | for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
---|
202 | r[k] = a[j];
|
---|
203 | return r;
|
---|
204 | };
|
---|
205 |
|
---|
206 | __spreadArray = function (to, from, pack) {
|
---|
207 | if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
---|
208 | if (ar || !(i in from)) {
|
---|
209 | if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
---|
210 | ar[i] = from[i];
|
---|
211 | }
|
---|
212 | }
|
---|
213 | return to.concat(ar || Array.prototype.slice.call(from));
|
---|
214 | };
|
---|
215 |
|
---|
216 | __await = function (v) {
|
---|
217 | return this instanceof __await ? (this.v = v, this) : new __await(v);
|
---|
218 | };
|
---|
219 |
|
---|
220 | __asyncGenerator = function (thisArg, _arguments, generator) {
|
---|
221 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
---|
222 | var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
---|
223 | return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
---|
224 | function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
---|
225 | function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
---|
226 | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
---|
227 | function fulfill(value) { resume("next", value); }
|
---|
228 | function reject(value) { resume("throw", value); }
|
---|
229 | function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
---|
230 | };
|
---|
231 |
|
---|
232 | __asyncDelegator = function (o) {
|
---|
233 | var i, p;
|
---|
234 | return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
---|
235 | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
---|
236 | };
|
---|
237 |
|
---|
238 | __asyncValues = function (o) {
|
---|
239 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
---|
240 | var m = o[Symbol.asyncIterator], i;
|
---|
241 | return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
---|
242 | function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
---|
243 | function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
---|
244 | };
|
---|
245 |
|
---|
246 | __makeTemplateObject = function (cooked, raw) {
|
---|
247 | if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
---|
248 | return cooked;
|
---|
249 | };
|
---|
250 |
|
---|
251 | var __setModuleDefault = Object.create ? (function(o, v) {
|
---|
252 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
---|
253 | }) : function(o, v) {
|
---|
254 | o["default"] = v;
|
---|
255 | };
|
---|
256 |
|
---|
257 | __importStar = function (mod) {
|
---|
258 | if (mod && mod.__esModule) return mod;
|
---|
259 | var result = {};
|
---|
260 | if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
---|
261 | __setModuleDefault(result, mod);
|
---|
262 | return result;
|
---|
263 | };
|
---|
264 |
|
---|
265 | __importDefault = function (mod) {
|
---|
266 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
---|
267 | };
|
---|
268 |
|
---|
269 | __classPrivateFieldGet = function (receiver, state, kind, f) {
|
---|
270 | if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
---|
271 | if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
---|
272 | return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
---|
273 | };
|
---|
274 |
|
---|
275 | __classPrivateFieldSet = function (receiver, state, value, kind, f) {
|
---|
276 | if (kind === "m") throw new TypeError("Private method is not writable");
|
---|
277 | if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
---|
278 | if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
---|
279 | return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
---|
280 | };
|
---|
281 |
|
---|
282 | exporter("__extends", __extends);
|
---|
283 | exporter("__assign", __assign);
|
---|
284 | exporter("__rest", __rest);
|
---|
285 | exporter("__decorate", __decorate);
|
---|
286 | exporter("__param", __param);
|
---|
287 | exporter("__metadata", __metadata);
|
---|
288 | exporter("__awaiter", __awaiter);
|
---|
289 | exporter("__generator", __generator);
|
---|
290 | exporter("__exportStar", __exportStar);
|
---|
291 | exporter("__createBinding", __createBinding);
|
---|
292 | exporter("__values", __values);
|
---|
293 | exporter("__read", __read);
|
---|
294 | exporter("__spread", __spread);
|
---|
295 | exporter("__spreadArrays", __spreadArrays);
|
---|
296 | exporter("__spreadArray", __spreadArray);
|
---|
297 | exporter("__await", __await);
|
---|
298 | exporter("__asyncGenerator", __asyncGenerator);
|
---|
299 | exporter("__asyncDelegator", __asyncDelegator);
|
---|
300 | exporter("__asyncValues", __asyncValues);
|
---|
301 | exporter("__makeTemplateObject", __makeTemplateObject);
|
---|
302 | exporter("__importStar", __importStar);
|
---|
303 | exporter("__importDefault", __importDefault);
|
---|
304 | exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
---|
305 | exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
---|
306 | });
|
---|